Open Zourvan opened 2 years ago
To set the maxCapacity value in JavaScript, I did the following:
const exchange = new ccxt.binance()
exchange.throttler = new exchange.throttler.constructor({ ...exchange.tokenBucket, maxCapacity: 10_000 })
In my use case, I parallelize ~1940 exchange.fetchOrderBook() calls via Promise.all(). I would like to be able to somehow set the maxCapacity through a constructor and not a property.
I want load all OHLCV with multi connection, I did it in other framework but in CCXT I got error "throw new Error ('throttle queue is over maxCapacity (' + this.config['maxCapacity'].toString () + '), see https://github.com/ccxt/ccxt/issues/11645#issuecomment-1195695526');" how can I make multi WS connection??