As I call the fetch_balance method from kucoinfutures in ccxt, it only returns BTC, not any other assets. Shouldn’t there be other assets like USDT or ETH too? Here’s the python code: Here’s what I get from print(balance): Am I missing something? Answer It seems like fetchBalance only returns one currency at a time. To get USDT as the asset
Tag: ccxt
How to get the price of a crypto at a given time in the past?
Is there any way I can use ccxt to extract the price of a crypto currency at a given time in the past? Example: get price of BTC on binance at time 2018-01-24 11:20:01 Answer You can use the fetch_ohlcv method on the binance class in CCXT def fetch_ohlcv(self, symbol, timeframe=’1m’, since=None, limit=None, params={}): You’ll need the date as a