question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
Ricardus312commented, Feb 20, 2021

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.

1reaction
kroitorcommented, Feb 20, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found