Skip to main content

CRIX.io official client

PyPI - License PyPI PyPI - Wheel Documentation Status

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)

Source distribution for crix 1.8.2
File Size Uploaded
crix-1.8.2.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crix 1.8.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.8.2 This release

2 release files

1.8.1

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5

2 release files

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

1.0

2 release files

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