Skip to main content

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.

License PyPI PyPI

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

  1. Fork it (https://github.com/indiciumfund/cryptotik/fork)
  2. Study how it's implemented
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

Release files for cryptotik 0.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cryptotik 0.36
File Size Uploaded
cryptotik-0.36.tar.gz 31.0 kB Details

Release files / cryptotik-0.36.tar.gz

Download URL cryptotik-0.36.tar.gz
Size 31.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e47c61c3f0a9cc9bfc729c3eb3eeea96e880fdf84e2c6f1eeec8d65cde4988c7
BLAKE2b-256 checksum
How to use checksums
abaa7213f859e97c27206a6e33851fe62d6bb2b5d0ba69553988752edf10452d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.36 This release

1 release file

0.35.7

1 release file

0.35.6

1 release file

0.35.5

1 release file

0.35.4

1 release file

0.35.3

1 release file

0.35.1

1 release file

0.35

2 release files

0.34.4

1 release file

0.34.3

1 release file

0.34.2

1 release file

0.34.1

1 release file

0.34

1 release file

0.33.2

1 release file

0.33.1

1 release file

0.33

1 release file

0.32.1

1 release file

0.32

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.8

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page