Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
realiti4 authored Oct 4, 2020
1 parent cc932bc commit 8589067
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ A useful tool to get market history and other features while respecting api limi
bitfinex.get(1000)

### Download all available history
Bitfinex limits most recent history call to 10000. If you would like get older data it is even more stricter. But you can download all history in 2 lines with this tool easily under 5-10 minutes while respecting Bitfinex's api call limits. By default it'll download the entire history and you don't need to pass 'start' and 'end'. But you can also specify any timestamp 'start=1464778000' and 'end=1564778000' etc. like below.
Bitfinex limits most recent history call to 10000. If you would like get older data it is even more stricter. But you can download all history in 2 lines with this tool easily under 5-10 minutes while respecting Bitfinex's api call limits.

df = bitfinex.get_hist('1h')
df.to_csv('bitfinex_1h.csv', index=False)

df = bitfinex.get_hist('30m', start=1464778000, end=int(time.time()))
df.to_csv('bitfinex_30m.csv', index=False)

By default it'll download the entire history and you don't need to pass 'start' and 'end'. But you can also specify any timestamp 'start=1464778000' and 'end=1564778000' etc. like above.

### Update csv file

bitfinex.update_csv('bitfinex_1h.csv', timeframes=['1h']
Expand Down

0 comments on commit 8589067

Please sign in to comment.