Skip to main content

crypto_history is a python package for extracting history of crypto-currencies from various exchanges and presenting them ivn a data-format of choice

Project description

https://img.shields.io/pypi/v/crypto-history.svg https://img.shields.io/pypi/l/crypto-history.svg https://img.shields.io/pypi/wheel/crypto-history.svg https://img.shields.io/pypi/pyversions/crypto-history.svg Documentation Status crypto-history download status per week crypto-history coveralls coverage

This is a wrapper on binance and other exchange APIs to aggregate historical information in structured tabular formats (such as xarray.DataArray)

Source code

https://github.com/vikramaditya91/crypto-history

Documentation

https://crypto-history.readthedocs.io/en/latest/

Features

  • Fetches information about all tickers available on Binance asynchronously

  • Delays requests if it is close to the limit prescribed by Binance

  • Retries when the requests have exceeded the performance limit of the machine

  • Obtains the history of each/all tickers in the xarray.DataArray format

  • Easily extendable to other exchanges and other data formats

  • It does not require an API key from Binance

Quick Start

pip install crypto-history

See examples/binance_basic.py for a working example

exchange_factory = class_builders.get("market").get("binance")()
data_container_factory = class_builders.get("data").get("xarray")()

coin_history_obtainer = await data_container_factory.create_coin_history_obtainer(exchange_factory,
                                                                                  interval="1d",
                                                                                  start_str="1 January 2020",
                                                                                  end_str="4 June 2020",
                                                                                  limit=1000
                                                                                  )
data_operations = await data_container_factory.create_data_container_operations(coin_history_obtainer)
data_container = await data_operations.get_filled_container()
pprint(data_container)

For more check out the documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crypto_history-1.1a3.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

crypto_history-1.1a3-py3-none-any.whl (14.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page