Skip to content

Commit

Permalink
minor edits to bitfinex example
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Nov 4, 2017
1 parent 87157d6 commit 11c26a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/py/fetch-bitfinex-ohlcv-history.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# -----------------------------------------------------------------------------

exchange = ccxt.bitfinex({
'rateLimit': 3000,
'rateLimit': 10000,
'enableRateLimit': True,
# 'verbose': True,
})
Expand All @@ -46,7 +46,7 @@
try:

print(exchange.milliseconds(), 'Fetching candles starting from', exchange.iso8601(from_timestamp))
ohlcvs = exchange.fetch_ohlcv('BTC/USD', '1m', from_timestamp)
ohlcvs = exchange.fetch_ohlcv('BTC/USD', '5m', from_timestamp)
print(exchange.milliseconds(), 'Fetched', len(ohlcvs), 'candles')
first = ohlcvs[0][0]
last = ohlcvs[-1][0]
Expand Down

0 comments on commit 11c26a7

Please sign in to comment.