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 Provenance Actions
crix-1.8.2.tar.gz 9.7 kB Without provenance Details for crix-1.8.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crix 1.8.2
File Interpreter ABI Platform Actions
crix-1.8.2-py3-none-any.whl Python 3 none any Details for crix-1.8.2-py3-none-any.whl

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

Security for crix 1.8.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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