Skip to content

Commit

Permalink
Updated ExchangeOrderBookFactory to use lower update intervals where …
Browse files Browse the repository at this point in the history
…available
  • Loading branch information
JKorf committed Jan 13, 2025
1 parent 9f407a5 commit 481a60a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CryptoClients.Net/ExchangeOrderBookFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ public ExchangeOrderBookFactory(
{
case "Binance":
var binanceLimit = GetBookDepth(minimalDepth, true, 5, 10, 20);
return Binance.Create(symbol, opts => { opts.Limit = binanceLimit; });
return Binance.Create(symbol, opts =>
{
opts.Limit = binanceLimit;
opts.UpdateInterval = 100;
});
case "BingX":
var bingXLimit = GetBookDepth(minimalDepth, false, 5, 10, 20, 50, 100);
return BingX.Create(symbol, opts => { opts.Limit = bingXLimit; });
Expand All @@ -136,7 +140,11 @@ public ExchangeOrderBookFactory(
return CryptoCom.Create(symbol, opts => { opts.Limit = cryptoComLimit; });
case "GateIo":
var gateIoLimit = GetBookDepth(minimalDepth, true, 20, 50, 100);
return GateIo.Create(symbol, symbol.QuoteAsset, opts => { opts.Limit = gateIoLimit; });
return GateIo.Create(symbol, symbol.QuoteAsset, opts =>
{
opts.Limit = gateIoLimit;
opts.UpdateInterval = 100;
});
case "HTX":
var htxLimit = GetBookDepth(minimalDepth, true, 5, 20, 150, 400);
var htxUsdLimit = GetBookDepth(minimalDepth, true, 20, 150);
Expand Down

0 comments on commit 481a60a

Please sign in to comment.