catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

set_benchmark() is not working in live mode (Bitfinex)

Open avolution opened this issue 7 years ago • 1 comments

set_benchmark(symbol('btc_usd')) Is working without problems in backtest mode. But in Live-mode you will get these Error from Bitfinex:

ccxt.base.errors.ExchangeNotAvailable: bitfinex https://api.bitfinex.com/v2/candles/trade:1m:tBTCUSD/hist?sort=1&limit=527041&start=1532649480000 GET 500 Server Error: Internal Server Error for url: https://api.bitfinex.com/v2/candles/trade:1m:tBTCUSD/hist?sort=1&limit=527041&start=1532649480000 ["error",10020,"limit: invalid"]

Catalyst will fetch all data at once ---> limit=527041

But Bitfinex has an limit of 1000 per request So the data have to be requested in pages

Why is that working in backtest mode? Another datasource (ingested data?)? Maybe better to use that data also in live and only request the last recent datapoints via the api.

avolution avatar Jul 27 '18 14:07 avolution

Hi @avolution, currently catalyst does not support set_benchmark in live mode but fully supported in backtest mode. We are adding this to our backlog and hope to implement it in the future.

EmbarAlmog avatar Aug 05 '18 10:08 EmbarAlmog