fetch_ohlcv candle size
See original GitHub issueATTENTION!!!
MUST READ THIS BEFORE SUBMITTING ISSUES:
https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue
- Ubuntu:
- Python:
- 1.18.400:
- Bitmex:
- fetch_ohlcv:
Hi why I can’t fetch OHLCV data for 15m 30m, 4h, candles? My code:
def get_close_prices(exch, pair,candle):
ohlcv = exch.fetch_ohlcv(pair,candle)
close_prices =[]
[close_prices.append(x[4]) for x in ohlcv]
return close_prices
I get the error which look like this
'binSize': self.timeframes[timeframe],
KeyError: '4h'
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to get ohlcv data for your exchange with ccxt library?
I set the limit option 12 for 12 candles that are equivalent to an hour (the last 60 minutes).
Read more >Exchanges — ccxt 2.4.71 documentation
The exchange boolean (true/false) property named has['fetchOHLCV'] indicates whether the exchange supports candlestick data series or not. The fetchOHLCV method ...
Read more >Binance ccxt fetch ohlcv exceeding 1000 limit - python
I can't get more than 1000 candles from a single request. Tried limit=None , limit=1500 , etc. If the value is not between...
Read more >Build 6373 | freqtrade/exchange/exchange.py
1 # pragma pylint: disable=W0603
2 """ 1×
3 Cryptocurrency Exchanges support
4 """
Read more >Getting class binance-fetch-ohlcv not found? ▷ Download ccxt/ccxt ...
Download ccxt / ccxt / binance-fetch-ohlcv.py - Solve class ... low, close, volume ] index = 4 # use close price from each...
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
Maybe its will be useful for someone.
@kroitor Wow, thank you very much:))