Standardized common API for several cryptocurrency exchanges.
Project description
cryptotik
Standardized common API for several cryptocurrency exchanges. Cryptotik is python3 compatible collection of cryptocurrency exchange wrappers. Main goal of cryptotik is to deliver unified common interface to some of the most popular cryptocurrency exchanges, cryptotik accomplishes that by standardizing names of the methods and expected inputs and outputs.
Install
pip install cryptotik
or latest development version:
pip install git+git://github.com/indiciumfund/cryptotik.git
Supported Exchanges
Exchange | API | Public Methods | Private Methods | Normalized Private | Normalized Public | Tests |
---|---|---|---|---|---|---|
www.binance.com | Done | Done | Done | TODO | Done | Done |
bitkonan.com | Done | Done | TODO | TODO | TODO | TODO |
www.bitstamp.net | Done | Done | Done | TODO | Done | Done |
bittrex.com | Done | Done | Done | TODO | Done | Done |
www.cryptopia.co.nz | Done | Done | Done | TODO | Done | Done |
hitbtc.com | Done | Done | Done | TODO | Done | Done |
www.kraken.com | Done | Done | Done | TODO | Done | Done |
poloniex.com | Done | Done | Done | TODO | Done | Done |
therocktrading.com | Done | Done | Done | TODO | Done | Done |
Examples
Right now library supports: Poloniex.com, Bitstamp.com, Kraken.com Bittrex.com, Binance, TheRockTrading, HitBtc, Bitkonan with elementary support for Livecoin. Library supports other useful features like wrapper around Coinmarketcap.com's public API.
from cryptotik import Wex, Bittrex, Poloniex
You only need to learn commands once, for example get_markets
will work anywhere:
Bittrex().get_markets()
Poloniex().get_markets()
Binance().get_markets()
and will yield similar results. However parsing and interpreting them is left to user.
More examples
Poloniex().get_market_order_book("btc-nxt")
Bittrex().get_market_depth("btc-maid")
Binance().get_market_ticker('etc-eth')
Private API methods (the ones that require authentication)
Library also supports private API methods for Poloniex, Binance, Bitstamp, Kraken, TheRockExchange, Bittrex, Wex and some others. To use them you need to make class instance though with your API credentials.
polo = Poloniex(yourkey, yoursecret)
polo.get_balances()
polo.withdraw(<coin>, <amount>, <address>)
Same goes for Bittrex:
btrx = Bittrex(yourkey, yoursecret)
btrx.get_balances()
btrx.withdraw(<coin>, <amount>, <address>)
Running tests
cd test
Bittrex
pytest bittrex_test.py --apikey=<APIKEY> --secret=<APISECRET>
Poloniex
pytest poloniex_test.py --apikey=<APIKEY> --secret=<APISECRET>
Contributing
- Fork it (https://github.com/indiciumfund/cryptotik/fork)
- Study how it's implemented
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file cryptotik-0.36.tar.gz
.
File metadata
- Download URL: cryptotik-0.36.tar.gz
- Upload date:
- Size: 31.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e47c61c3f0a9cc9bfc729c3eb3eeea96e880fdf84e2c6f1eeec8d65cde4988c7 |
|
MD5 | 3c805add1caee57a66a1ef5084014aaa |
|
BLAKE2b-256 | abaa7213f859e97c27206a6e33851fe62d6bb2b5d0ba69553988752edf10452d |