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](https://github.com/ICE3X/v2-PHP).

# 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](https://ice3x.com/account/api) section of their platform.

## Sync client

```python
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

```python
from typing import Dict
from twisted.internet import reactor
from ice3x.clients.async 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.

```bash
pip install ice3x
```

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

```bash
pip install ice3x[async]
```

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

```bash
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.

```bash
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.1.7.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

ice3x-0.1.7-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ice3x-0.1.7.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ice3x-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5cc08d889961fb8c7891fdc237fdf815a36b958fbd4f0152c5dadca4f7e82f53
MD5 745963f7b78347942702f8d13141bc2b
BLAKE2b-256 96da438c3f698cf3be79326e2687449a792e524383c0b3ce8ab91de367444a45

See more details on using hashes here.

File details

Details for the file ice3x-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for ice3x-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 94e0c0a1541d0437255c6b7e5b3ab16fda2bf80e59e342e4012f9c4a8335c76c
MD5 b09e41c74cacd5f226f237f5768ad4f6
BLAKE2b-256 9aea13224ffaa31952531c737b581710a1d2d7ee4260db054100dc6e2f69ff44

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