File tree Expand file tree Collapse file tree
src/BinanceBot.MarketBot.Console Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77using Binance . Net . Objects ;
88using BinanceBot . Market ;
99using BinanceBot . Market . Configurations ;
10+ using BinanceBot . Market . Domain ;
1011using BinanceBot . Market . Strategies ;
1112using dotenv . net ;
1213
@@ -19,7 +20,7 @@ internal static class Program
1920{
2021 #region Bot Settings
2122 // WARN: set necessary token here
22- private const string Symbol = "BNBUSDT" ;
23+ private static readonly MarketSymbol Symbol = new MarketSymbol ( "BNB" , "USDT" , BinanceBot . Market . Domain . ContractType . Spot ) ;
2324 private static readonly TimeSpan ReceiveWindow = TimeSpan . FromMilliseconds ( 100 ) ;
2425 #endregion
2526
@@ -63,10 +64,10 @@ static async Task Main(string[] args)
6364
6465
6566 // 3. set bot strategy config
66- var exchangeInfoResult = binanceRestClient . SpotApi . ExchangeData . GetExchangeInfoAsync ( Symbol ) ;
67+ var exchangeInfoResult = binanceRestClient . SpotApi . ExchangeData . GetExchangeInfoAsync ( Symbol . FullName ) ;
6768
6869 var symbolInfo = exchangeInfoResult . Result . Data . Symbols
69- . Single ( s => s . Name . Equals ( Symbol , StringComparison . InvariantCultureIgnoreCase ) ) ;
70+ . Single ( s => s . Name . Equals ( Symbol . FullName , StringComparison . InvariantCultureIgnoreCase ) ) ;
7071
7172 if ( ! ( symbolInfo . Status == SymbolStatus . Trading && symbolInfo . OrderTypes . Contains ( SpotOrderType . Market ) ) )
7273 {
You can’t perform that action at this time.
0 commit comments