Skip to main content

A small package to get history, easily download all avaliable history to csv or update current csv files

Project description

tradingfeatures

A useful tool to downlaod market history from popular exchanges.

Installation

pip install tradingfeatures

or

pip install git+https://github.com/realiti4/tradingfeatures.git@master --upgrade

Example

You can use .get(), .get_history() and .update() with all avaliable apis. Currently supported:

  • Bitfinex
  • Bitstamp

Get most recent history with .get()

import pandas as pd
from tradingfeatures import bitfinex, bitstamp

bitfinex = bitfinex()

df = bitfinex.get()

This is useful to get most recent history. But limit is 10000 for Bitfinex and 1000 for Bitstamp.

Download all available history with .get_history()

The tool will download all avaliable history while respesting request per minute limits. Using it easy, and it takes couple of minutes for 1h data.

import pandas as pd
from tradingfeatures import bitfinex, bitstamp

bitstamp = bitstamp()

df = bitstamp.get_hist()
df.to_csv('bitstamp_1h.csv') 

Updating a csv file with .update()

import pandas as pd
from tradingfeatures import bitfinex, bitstamp

bitstamp = bitstamp()

bitstamp.update_csv('bitstamp.csv')    

Update takes a path variable to csv file and updates it.

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

tradingfeatures-0.4.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

tradingfeatures-0.4.0-py3-none-any.whl (9.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