Skip to content

An easy API client for the Coinex trading platform.

License

Notifications You must be signed in to change notification settings

alimogh/Coinex_api_client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinex API Client

Python 3 API client for Coinex trading platform. Using API spec from Coinex API

Features

  • 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

Note

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 .

Getting Started

Installing Coinex API Client

pip install git+https://github.com/Dan-Ilie/Coinex_api_client

Importing Coinex API Client in your python project

from Coinex_api_client import coinex

Initializing Coinex API Client

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.

About

An easy API client for the Coinex trading platform.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%