File tree Expand file tree Collapse file tree
BinanceBot.MarketBot.Console Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public override async Task RunAsync()
137137 _marketDepth . MarketBestPairChanged += async ( s , e ) => await OnMarketBestPairChanged ( s , e ) ;
138138
139139
140- var marketDepthManager = new MarketDepthManager ( _binanceRestClient , _webSocketClient ) ;
140+ var marketDepthManager = new MarketDepthManager ( _binanceRestClient , _webSocketClient , Logger ) ;
141141
142142 // stream order book updates
143143 marketDepthManager . StreamUpdates ( _marketDepth , TimeSpan . FromMilliseconds ( 1000 ) ) ;
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ internal static class Program
1919{
2020 #region Bot Settings
2121 // WARN: set necessary token here
22- private const string Symbol = "SOLUSDT " ;
23- private static readonly TimeSpan ReceiveWindow = TimeSpan . FromMilliseconds ( 1000 ) ;
22+ private const string Symbol = "BNBUSDT " ;
23+ private static readonly TimeSpan ReceiveWindow = TimeSpan . FromMilliseconds ( 100 ) ;
2424 #endregion
2525
2626 private static readonly NLog . Logger Logger = NLog . LogManager . GetCurrentClassLogger ( ) ;
@@ -54,7 +54,8 @@ static async Task Main(string[] args)
5454 Logger . Error ( $ "{ permissionsResponse . Error ? . Message } ") ;
5555 ReadLine ( ) ;
5656 }
57- else if ( permissionsResponse . Data . IpRestrict | ! permissionsResponse . Data . EnableSpotAndMarginTrading )
57+
58+ if ( ! ( permissionsResponse . Data . IpRestrict && permissionsResponse . Data . EnableSpotAndMarginTrading ) )
5859 {
5960 Logger . Error ( "Insufficient API permissions" ) ;
6061 ReadLine ( ) ;
You can’t perform that action at this time.
0 commit comments