Kaiko - Bittrex Python index
A python module that provides easier access to the Kaiko Bittrex Historical trade data. Assuming that you’ve bought the files from here, you can now use these (relativelly) simple 2 steps to process them.
Create an index.csv file. We assume that you have unziped the file and when you ls Bittrex you see the pairs e.g. 2GIVEBTC, 8BITBTC etc. Then you run: find Bittrex -type f | grep -v ".DS_Store" > index.csv and an index.csv file must have been created for you. This file has all the .csv.gz files of the archive.
When you install with pip install kaikobittrex, you can create an Index object from Python and access the content of those files like this:
#!/usr/bin/env python
from kaikobittrex import Index
idx = Index.from_file()
def process_pair(year, month, day, pair, f):
for lineno, line in enumerate(f.readlines()):
line = line.strip()
if lineno == 0:
assert line == "id,exchange,symbol,date,price,amount,sell"
else:
record = idx.parse_line(line)
print record
idx.process_all(process_pair)
There are additional process_* methods that allow you to process subset of those data. process_day(self, year, month, day, f) and process_pair(self, year, month, day, pair, f) all take the same type of callback argument f and process the subset of records you defined. The Index object also exposes the index member which has records for given date/pair, the pairs member that has all available pairs and the pairs_map member that maps pairs to coin base/quote pairs. See the test file for more details.
Notes
To release python setup.py sdist, twine upload dist/*.
Metadata
Release files for kaikobittrex 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kaikobittrex-1.0.3.tar.gz | 3.9 kB | Without provenance | Details for kaikobittrex-1.0.3.tar.gz |
Release files / kaikobittrex-1.0.3.tar.gz
| Download URL | kaikobittrex-1.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae66498c6bed913ffbae7a510180253a53433cdc5744dc91f2050c42fefc7b99
|
|
BLAKE2b-256 checksum How to use checksums |
56d4b434da1df16ed6a6fcff5e58b06796ba8b24c9672d5d999550a1fb843ee4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for kaikobittrex 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.