Websocket API
Description AuthenticationMethods
trade cancelOrder orderInfo getFunds subscribeOrderbook unsubscribeOrderbookThe main method, using which you can create orders and trade on the exchange.
The example of query:
{
"method": "trade",
"params": {
"pair": "btc_usd",
"type": "buy",
"currency_price": 100,
"volume": 0.1
}
}
The example of response:
{
"success":1,
"result":{
"received":0.1,
"remains":0,
"order_id":0
}
}
received: How much currency is bought / sold.
remains: How much currency is left to buy / sell.
order_id: It is 0 if the request was completely satisfied with counter orders, otherwise returns the identifier of the created order.