Trade API
Description AuthenticationMethods
get-info trade active-orders order-info cancel-order trade-history transaction-history create-coupon redeem-couponThe main method, using which you can create orders and trade on the exchange.
To use this method, the trade key privilege is required.
Each pair has different restrictions on the minimum / maximum price, the minimal amount and the number of decimal places.
All restrictions can be obtained using the info method in Public API.
Parameters:
PARAMETER | DESCRIPTION | TAKES ON VALUE |
pair | пара | btc_usd (example) |
type | type of transaction | buy or sell |
currency_price | the rate at which you need to buy/sell | numeric |
volume | the amount you need to buy/sell | numeric |
The list of pairs can be obtained using the info method in Public API.
The example of response:
{
"success":1,
"return":{
"received":0.1,
"remains":0,
"order_id":0,
"funds":{
"btc": 13.998,
"usd": 125,
"rur": 0,
...
}
}
}
received: How much currency was bought / sold.
remains: How much currency is left to buy / sell.
order_id: It has the value 0 if the request was completely fulfilled with counter orders; otherwise it returns the ID of the created order.
funds: Balance upon request.