Skip to main content

Ice3x Crypto Currency Exchanage Python API

Project description

ICE3X Python Library

This ice3x library is a Python package compliant with the ICE3X APi version 2.

This package is essentially a port of the official PHP client.

Quickstart

The ICE3X API has two broad categories of resources, protected and unprotected resources.

In order to access protected resources one needs to create a private and public key under the account management section of their platform.

Sync client

from ice3x.clients.sync import IceCubedSyncClient

api_key = 'public key'
secret = 'private key'

client = IceCubedSyncClient(api_key=api_key, secret=secret)
client.get_public_trade_list()

Async client

from typing import Dict
from twisted.internet import reactor
from ice3x.clients.asynchronous import IceCubedAsyncClient


api_key = 'public key'
secret = 'private key'

client = IceCubedAsyncClient(api_key=api_key, secret=secret)

def print_data(data: Dict) -> None:
    """prints the json response from an API call"""
    print(data)

d = client.get_public_trade_list()
d.addBoth(print_data)

reactor.run()

Installation

The library can be installed from PyPi as follows.

pip install ice3x

The async client is an optional extra and may be installed as follows.

pip install ice3x[async]

To install the version on this repository follow the steps below.

git clone https://github.com/BradleyKirton/ice3x
cd ice3x
python -m venv env # virtualenv env
source env/bin/activate
pip install . #pip install .[async] for the async client

Developement

Clone the repo and install the package with it's development requirements.

git clone https://github.com/BradleyKirton/ice3x
cd ice3x
python -m venv env # virtualenv env
source env/bin/activate
pip install -e .[dev]
pytest

TODO

Note this library is still in beta.

  • Write documentation

Project details


Download files

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

Source Distribution

ice3x-0.2.4.tar.gz (5.7 kB view details)

Uploaded Source

File details

Details for the file ice3x-0.2.4.tar.gz.

File metadata

  • Download URL: ice3x-0.2.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for ice3x-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b9d1900ea07918e537c9dca12be81669f99afe18eeef047e6a91dba72d24c78a
MD5 3f90ed7a9f57a117f5246797c675f2c8
BLAKE2b-256 8041da076c26e8b212a6fe93c68e2c692ba3ddf45f3efac285e8dce4568189de

See more details on using hashes here.

Supported by

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