Skip to content

Commit

Permalink
Potential fix for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
sonvister committed Feb 14, 2018
1 parent 7e9446c commit 81665e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/BinanceCodeGenerator/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private static async Task Main()
foreach (var symbol in group)
{
var orderTypes = string.Join(",", symbol.OrderTypes.Select(_ => "OrderType." + _));
lines.Insert(index++, $" public static readonly Symbol {symbol.BaseAsset}_{symbol.QuoteAsset} = new Symbol(SymbolStatus.{symbol.Status}, Asset.{symbol.BaseAsset}, Asset.{symbol.QuoteAsset}, ({symbol.Quantity.Minimum}m, {symbol.Quantity.Maximum}m, {symbol.Quantity.Increment}m), ({symbol.Price.Minimum}m, {symbol.Price.Maximum}m, {symbol.Price.Increment}m), {symbol.NotionalMinimumValue}m, {symbol.IsIcebergAllowed.ToString().ToLowerInvariant()}, new [] {{{orderTypes}}});");
lines.Insert(index++, $" public static readonly Symbol {symbol.BaseAsset}_{symbol.QuoteAsset} = new Symbol(SymbolStatus.{symbol.Status}, Asset.{symbol.BaseAsset}, Asset.{symbol.QuoteAsset}, ({symbol.Quantity.Minimum}m, {symbol.Quantity.Maximum}m, {symbol.Quantity.Increment}m), ({symbol.Price.Minimum}m, {symbol.Price.Maximum}m, {symbol.Price.Increment}m), {symbol.NotionalMinimumValue}m, {symbol.IsIcebergAllowed.ToString().ToLowerInvariant()}, new OrderType[] {{{orderTypes}}});");
}

lines.Insert(index++, string.Empty);
Expand Down

0 comments on commit 81665e0

Please sign in to comment.