简体   繁体   中英

Ccxt binance fetchOHLCV doesn't return last data

I am using ccxt library for binance. To calculate the sar indicator, I am using fetchOHLCV to get last last historical data but the problem is that some times data are not reflecting the last binance data. We observe some delays Can anyone help me?

exchange = ccxt.binance({"apiKey": api_key,"secret": api_secret,'enableRateLimit': True})
pair = 'ETH/USDT'
timeframe='1m'
exchange.fetch_ohlcv(coin_pair, timeframe,limit=1000)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM