CRIX.io official client
This official client of CRIX.io crypto exchange. Supports both synchronous and asynchronous approach
Environment requirements:
- python 3.6+
- requests 2.*
For several operations like create/cancel orders you should also be registered in the exchange and got BOT API token and secret.
To access historical data you should get explicit permission by exchange support.
Installation
- over pip:
pip install crix - manually (dev):
pip install git+https://github.com/blockwise/crix-client-py.git#egg=crix
Sample usage
Unauthorized (public) access
import crix
client = crix.Client(env='prod')
# get all symbols
for symbol in client.fetch_markets():
print(symbol)
# get some order book
depth = client.fetch_order_book('BTC_BCH')
print(depth)
Authorized (clients-only) access
BOT API token and secret are required
import crix
from crix.models import NewOrder
client = crix.AuthorizedClient(
env='prod',
token='xxyyzz',
secret='aabbcc'
) # replace token and secret value for your personal API credentials
# list all open orders
for order in client.fetch_open_orders('BTC_BCH'):
print(order)
# prepare order
new_order = NewOrder.market('BTC_BCH', is_buy=True, quantity=0.1) # or use NewOrder constructor
# place order
order = client.create_order(new_order)
print(order)
Metadata
Release files for crix 1.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| crix-1.8.2.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| crix-1.8.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.0 kB
Release files / crix-1.8.2.tar.gz
| Download URL | crix-1.8.2.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8420359ce58dbcc38b301e382dd3e2f0ce38f24d94a01f2de00c050688c38e0
|
|
BLAKE2b-256 checksum How to use checksums |
6a1810fdea4389eb5e90f555b33a4ab10d1944ad9aa9be3685c3d34bff06a0d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|
Release files / crix-1.8.2-py3-none-any.whl
| Download URL | crix-1.8.2-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
492bbb721d9693924d99b0d1dabc61b505f2cac5f0df026d824d259f329cfb37
|
|
BLAKE2b-256 checksum How to use checksums |
604132b88b1f98bb8c4014d705c26c8a856a55753147004bdbab2f959b8f5892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.7
|