Live trading bitfinex request timeout crashes code


#1

Hi,
I am trying to live test a low volatility coin on bitfinex and seem to be getting timeout errors with the bitfinex api which then crash my algorithm. The end of the trace is

File “/home/ian/anaconda3/envs/catalyst/lib/python3.6/site-packages/ccxt/base/exchange.py”, line 288, in raise_error
raise exception_type(output)
ccxt.base.errors.RequestTimeout: bitfinex GET https://api.bitfinex.com/v2/candles/trade:1m:tMTNBTC/hist?sort=1&limit=150&start=1528018140000 HTTPSConnectionPool(hos
t=‘api.bitfinex.com’, port=443): Read timed out. (read timeout=10)

I have run the same code with ETH_BTC and don’t get the error. Wondering if it is due to zero trade minutes. Any way to prevent this error crashing the code?
Thoughts?
Cheers,