Skip to main content

CRIX.IO official client

Project description

CRIX.io official client

PyPI - License PyPI PyPI - Wheel Documentation Status

This official client of CRIX.io crypto exchange.

Environment requirements:

  • python 3.5+
  • 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: 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crix-1.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file crix-1.3-py3-none-any.whl.

File metadata

  • Download URL: crix-1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using 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.2

File hashes

Hashes for crix-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7fda18d28783815c4e0792182526c354d64af1fb5a38fb29b0d7c87d1ffd7f7e
MD5 1b5dd1de26538df588ea63ed0487b4be
BLAKE2b-256 a54df7a68691422aa95cbba3de486080796209e20547c231eac6ec49853a0c25

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page