Python 3 API client for Coinex trading platform. Using API spec from Coinex API
- Supports http API connection to the CoinEx trading platform
- Easy authenticated requests
- Local parameter check
- Ability to choose how parameter errors are handled
- Custom Exceptions
Many functions from the Coinex API client require authentication data. You need to obtain an Access ID and secret key for your account using the steps mentioned here .
pip install git+https://github.com/Dan-Ilie/Coinex_api_client
from Coinex_api_client import coinex
cnx = coinex.Coinex()
Alternatively you can also specify a few configs when initializing. These configs will be applied to all future requests to the API. Example:
cnx = coinex.Coinex(
access_id = 'my access id that I got from coinex.com',
secret_key = 'my secret key that I got from coinex.com'
)
Configs can be modified like this:
cnx.config(
access_id = 'a new access id'
secret_key = 'a new secret key'
)
And now, finally call a Coinex API endpoint like this:
response = cnx.acquire_asset_config("BTC")
print(response)
For a full list of endpoints check the wiki.