bitfinexget
A small package to get history, easily download all avaliable history to csv or update current csv files
Installation
pip install bitfinexget
Example
To get current history(max 10000)
from bitfinexget import bitfinex
bitfinex = bitfinex()
bitfinex.get(1000)
Download history
Bitfinex limits latest history call to 10000. If you would like get older data it is more stricter. But you can specify a start and finish timestamp like below and get all 1h data 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'
df = bitfinex.get_hist(['1h', 60])
df.to_csv('data/bitfinex_1h_downloaded.csv', index=False)
df = bitfinex.get_hist(['30m', 30], start=1464778000, end=int(time.time()))
df.to_csv('data/bitfinex_30m_downloaded.csv', index=False)
Select the gap (5m, 15m, 30m, 1h, 3h, 6h, 12h) etc. and don't remember to change minutes equivalent, like ['15m', 15], ['3h', 240]
By default it will try to download all avaliable history up to current date. You can also specify any timestamp with 'start=1464778000' and 'end=1564778000'
Update csv file
bitfinex.update_csv('data/bitfinex_1h_downloaded.csv', times_to_get=[['1h', 60]]
bitfinex.update_csv('data/bitfinex_5m_downloaded.csv', times_to_get=[['5m', 5]]
Metadata
Release files for bitfinexget 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bitfinexget-0.3.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bitfinexget-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / bitfinexget-0.3.0.tar.gz
| Download URL | bitfinexget-0.3.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e67f133fa2b0a6b2481a498d6ad2a1ded09f26dc03370be9891f9b9b473f340
|
|
BLAKE2b-256 checksum How to use checksums |
f8f9694562ced319a53cdd59ba7a1abc890880a9ce9e7739522763b0110d4bef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|
Release files / bitfinexget-0.3.0-py3-none-any.whl
| Download URL | bitfinexget-0.3.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ee6f643c5a11223ac37455f7478de2c3b83cbda5f14803e19e1ac8a650a5d4e
|
|
BLAKE2b-256 checksum How to use checksums |
7af8e57088f63cf28a659c739053d555da73aa0096d1bb6875567854c86314a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5
|