Private Api

Rest Api : Private Api

Created by Marcin Rek, last modified by Karol Rychlicki on 01 Feb, 2018
Api is available via server endpoint: /api/{endpoint}

To send a request to Private API you have to generate a new key on the platform under the "API" tab on the exchange platform.

Each key include:

  • API-key - key to included in requests header
  • Secret-key - key used to calculate request signature using HMAC-SHA256
  • permissions - operations available for generated key

All requests need to include HTTP headers:

    • Api-key - api key generated on the platform
    • Api-nonce - long value increased with every request
    • Api-hmac - HMAC-SHA256 calculated from request body and secret key, converted to it's hexadecimal representation.

Steps to generate proper request:

Create request in JSON format and set all needed parameters.
Serialize JSON to string.
Sign JSON request using HMAC-SHA256.

hex(HMAC_SHA256(jsonRequest, key=secret-key))
Create new nonce (eg. Unix timestamp).
Put the HTTP request headers (api-key, api-nonce, api-hmac).
Send POST request to the endpoint.