Last update has broken fetch_ohlcv with since parameter on Binance
See original GitHub issue- OS: Windows 10
- Programming Language version: python 3.7
- CCXT version: 1.42.8
After updating ccxt to 1.42.8 from 1.40.88 my code using fetch_ohlcv with the parameter “since” has stopped working and it returns an empty list. If I don’t use the since parameter it works.
Downgrading the library back to 1.40.88 has solved the problem
This code works:
exchange = getattr(ccxt, 'binance')()
await exchange.fetch_ohlcv('BTC/USDT', '1m')
This code doesn’t works
exchange = getattr(ccxt, 'binance')()
await exchange.fetch_ohlcv('BTC/USDT', '1m', 1613753220000)
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Exchanges — ccxt 2.4.71 documentation
JavaScript const exchange = new ccxt.binance (config) exchange. ... Some exchanges require this parameter for trading, but most of them don't.
Read more >Ccxt binance fetchOHLCV doesn't return last data
To calculate the sar indicator, I am using fetchOHLCV to get last last historical data but the problem is that some times data...
Read more >ccxt Documentation - Read the Docs
The python version of the library uses the python-requests package for underlying HTTP and supports all means of.
Read more >Error Messages, by Exakat
Message File Line
$this‑>id . ' allows limit orders only' /php/itbit.php 566
$this‑>id . ' returned ' . $this‑>json($response) /php/cex.php 1234
/php/cex.php 581
Read more >Build 6373 | freqtrade/exchange/exchange.py - Coveralls.io
1 # pragma pylint: disable=W0603
2 """ 1×
3 Cryptocurrency Exchanges support
4 """
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I understand, don’t worry, it’s just that I don’t have the time to look into this on more detail right now. I will keep working with the last version of the library that worked for me and will investigate this later.
Thank’s for your help anyway.
@Ricardus312 i can’t help you without seeing the code, unfortunately. If my snippet works and your code does not – paste your snippet, but please make it as short as mine, or close to that, so that i would not have to invent it or edit it too much, something i could copypaste and run to reproduce your problem – as you understand, without the code we are pretty much guessing. I mean, just looking at two square brackets does not help find the cause of it or resolve it.