REST API
Public endpoints
No authentication needed. Use GET.
Market data: pairs list, pair statistics, order book, market history, depth, and candlestick (KLine) data.
Private endpoints
Authenticated with your API key. Use POST.
Trading and account: create a limit order, cancel an order, active orders, balances, order info, trade info and order history.
Authentication in short
Every private request is a POST with:
a JSON body containing
request(the endpoint path, for example/api/v1/account/balance), anonce(a 13-digit number, always increasing; use the Unix time in milliseconds) and the endpoint's parametersheaders:
X-TXC-APIKEY: your public keyX-TXC-PAYLOAD: the body, base64-encodedX-TXC-SIGNATURE:hex(HMAC_SHA512(payload, secret_key))
Do not send two private requests at the same moment with the same nonce, or one will be rejected.
Full reference
Full details and code samples:
Public endpoints | HTTPPrivate endpoints | HTTPAuthentication and API KeysLast updated