API Documentation
___________________________________________________________________________________
General Info
General API Information
Some endpoints will require an API Key.
The base endpoint is: //Exchange_Domain
All endpoints return either a JSON object or array.
Data is returned in descending order. Oldest last, newest first.
General Information of Endpoints
For
GET
endpoints, parameters must be sent as aquery string.
For
POST
,PUT
, andDELETE
endpoints, the parameters may be sent as aquery string
or in therequest body
with content typeapplication/x-www-form-urlencoded or application/json
. You may mix parameters between both thequery string
andrequest body
if you wish to do so.Parameters may be sent in any order.
_______________________________________________________________________________________________________
Market Data Endpoints
Test Connectivity
Test Connectivity
GET
/api/ping
Pair Listing
Exchange Pair Listing
GET
/api/orders/v1/order/user/pair_list
Kline/Candlestick Data
Kline/Candlestick Data
GET
/api/orders/v1/order/kline/history
Query Parameters
interval*
String
pairName*
String
fromDate*
Miliseconds
toDate*
Miliseconds
Websocket Market Stream
The baseurl for websocket is wss://domain_name
All symbols for streams are lowercase
A single connection is only valid for 24 hours; expect to be disconnected at the 24 hour mark
Considering the possible data latency from RESTful endpoints during an extremely volatile market, it is highly recommended to get the order status, position, etc from the Websocket user data stream.
Live Connect/Disconnect to Stream
The following data can be sent through the websocket instance in order to connect/disconnect from streams. Examples can be seen below.
Connect to a stream
Disconnect to a stream
Trade Stream
Order Book Stream
New and Update Buy Order
New and Update Sell Order
Remove Buy/Sell Order
Ticker Info
Mark Price and Index Price and Funding Countdown
User Active Orders
User Active Positions & PNL
Last updated