Skip to main content

Download Crypto Currency Data from different exchanges.

Project description

PyPI - Python Version https://img.shields.io/pypi/v/dccd.svg https://img.shields.io/pypi/status/dccd.svg?colorB=blue https://travis-ci.org/ArthurBernard/Download_Crypto_Currencies_Data.svg?branch=master https://img.shields.io/github/license/ArthurBernard/Download_Crypto_Currencies_Data.svg https://pepy.tech/badge/dccd Documentation Status Language grade: Python

This is the starting point of a python package [*] to automatically download data and update database with crypto-currency data (bitcoin, ether, litecoin, etc.) from different API exchanges (allow only Binance, Bitmex, Bitfinex, GDAX, Kraken and Poloniex for the moment).

Presentation:

The dccd package allow you two main methods to download data. The first one is recommended to download data at high frequency (minutely or tick by tick), and the second one is recommended to download data at a lower frequency (hourly or daily):

  • Continuous Downloader dccd.continuous_dl:

    Download and update continuously data (orderbook, trades tick by tick, ohlc, etc) and save it in a database. Currently only support Bitfinex and Bitmex exchanges.

  • Historical Downloader dccd.histo_dl:

    Download historical data (ohlc, trades, etc.) and save it. Currently only support Binance, GDax, Kraken and Poloniex exchanges.

Historical Downloader:

The ‘dccd.histo_dl’ module contains a main class and four classes to download and update data for each exchange, and a module ‘date_time’ to manage specific time format needed for each API.

The four classes to download historical data are FromBinance, FromGDax, FromKraken and FromPoloniex. All have the same methods and almost the same parameters:

  • __init__(path, crypto, span, fiat(optional), form(optional)) initialisation with path is the path where save the data (string), crypto is a crypto currency (string) and span is the interval time between each observation in seconds (integer) or can be a string as ‘hourly’, ‘daily’, etc. (see details on the doc string). The optional parameters are fiat the second currency (default is ‘USD’ and ‘USDT’ for poloniex and binance) and form the format to save the data (default is ‘xlsx’).

  • import_data(start, end) download data with start and end the timestamp (integer) or the date and time (string as ‘yyyy-mm-dd hh:mm:ss’), respectively of the first observation and the last observation (default are special parameters start=’last’ allow the last data saved and end=’now’ allow the last observation available). Exclusion: Kraken don’t allow the end parameter and provide only the thousand last observations.

  • save(form(optional), by(optional)) save the data with form the format of the saved data (default is ‘xlsx’) and by is the “size” of each saved file (default is ‘Y’ as an entire year). Exclusion: This optional parameters are in progress, let the default parameter for the moment, other are not allow.

  • get_data() returns the data frame without any parameter.

Method chaining is available.

Installation:

Install the library from pip:

$ pip install dccd

Install the library from source:

$ git clone https://github.com/ArthurBernard/Download_Crypto_Currencies_Data

$ cd Download_Crypto_Currencies_Data

$ python setup.py install –user

Requirements:

  • numpy>=1.14.1

  • pandas>=0.22.0

  • requests>=2.18.4

  • xlrd>=1.1.0

  • xlsxwriter>=1.0.2

  • websockets>=7.0.0

  • scipy>=1.2.0

  • SQLAlchemy>=1.3.0

Supported exchanges:

  • Binance.

  • Bitfinex.

  • Bitmex.

  • GDAX.

  • Kraken.

  • Poloniex.

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

dccd-2.0.0.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dccd-2.0.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file dccd-2.0.0.tar.gz.

File metadata

  • Download URL: dccd-2.0.0.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dccd-2.0.0.tar.gz
Algorithm Hash digest
SHA256 6218c37fe021f243940aadd4ab1851f5508568b923900a968d65f87b44b34f39
MD5 af0d78f964c652f72cbf9e9503b03579
BLAKE2b-256 954eb6e247183ad0c6f221882a59aaf4bd8a36bd193e7bc91f38725eecedd843

See more details on using hashes here.

Provenance

The following attestation bundles were made for dccd-2.0.0.tar.gz:

Publisher: release.yml on ArthurBernard/Download_Crypto_Currencies_Data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dccd-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: dccd-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 47.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for dccd-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 771c6b943ac3849727c626bee07a88450a596159ff8c2f1e3efee9372433eaca
MD5 7b578a369df2c98bb5927a51bc5492a9
BLAKE2b-256 46255b98cc45965f1c77d2df4f838f9f5d88e254aaa3dc3396e63337f9ac0160

See more details on using hashes here.

Provenance

The following attestation bundles were made for dccd-2.0.0-py3-none-any.whl:

Publisher: release.yml on ArthurBernard/Download_Crypto_Currencies_Data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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