Getting Started¶
Generate an API Key¶
To use signed account methods you are required to create an API Key.
Note Qryptos and Quoinex have different API Keys.
Initialise the client¶
Pass your API Token Id and Secret
Import the client you want to use, the methods available are the same.
from quoine.client import Quoinex, Qryptos
quoinex_client = Quoinex(quoinex_api_token_id, quoinex_api_secret)
qryptos_client = Qryptos(qryptos_api_token_id, qryptos_api_secret)
# optionally pass a language parameter
# ie en, en-us
qryptos_client = Qryptos(api_token_id, api_secret, language='zh')
# optionally pass a vendor id if applicable
qryptos_client = Qryptos(api_token_id, api_secret, vendor_id='vendor_id')
API Rate Limit¶
API users should not make more than 300 requests per 5 minute.
Requests that go beyond the limit will return with a 429 status
Pagination¶
Some API requesting lists will be paginated with the following format:
{
"models": [ "<json objects>" ],
"current_page": "<current page>",
"total_pages": "<number of pages>"
}
The default number of items returned is 20. To get more, you can specify parameter limit. Note that the maximum number of items that can be returned at a time is 1000
To get the next page use the page parameter.