Skip to content

Commit

Permalink
examples/py/fetch-bitfinex-ohlcv-history.py error
Browse files Browse the repository at this point in the history
If we're fetching 5 min candles we have to multiply (len(ohlcvs) * minute) by 5.
  • Loading branch information
MedAymenF authored Dec 9, 2017
1 parent ab3e73f commit b8d0ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/py/fetch-bitfinex-ohlcv-history.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
last = ohlcvs[-1][0]
print('First candle epoch', first, exchange.iso8601(first))
print('Last candle epoch', last, exchange.iso8601(last))
from_timestamp += len(ohlcvs) * minute
from_timestamp += len(ohlcvs) * minute * 5
data += ohlcvs

except (ccxt.ExchangeError, ccxt.AuthenticationError, ccxt.ExchangeNotAvailable, ccxt.RequestTimeout) as error:
Expand Down

0 comments on commit b8d0ede

Please sign in to comment.