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
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
Release history Release notifications | RSS feed
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.1.tar.gz
(5.8 kB
view details)
Built Distribution
ice3x-0.2.1-py3-none-any.whl
(8.6 kB
view details)
File details
Details for the file ice3x-0.2.1.tar.gz
.
File metadata
- Download URL: ice3x-0.2.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffa6e804165864c61d6ef5b063367e5d741d1722dc7e807fdf67433786963606 |
|
MD5 | 26b127e6a27dda6c66d89cb885e18c15 |
|
BLAKE2b-256 | 49ac37c18b6aed738f9bf2907d230f300f2cb25fa77485893d319e1ae8f32513 |
File details
Details for the file ice3x-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: ice3x-0.2.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 549f22e3542966481cfc4270a04d9f375dcd2e72646caa04388e65e6482d4976 |
|
MD5 | 9c66d8b38cd5d5b82180ab0f3538e8db |
|
BLAKE2b-256 | 1f2248e527eace81e190f441d757575d9b26efdccd3f94afaac117adb56c10cd |