The 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:

PARAMETERDESCRIPTIONTAKES ON VALUE
pairпараbtc_usd (example)
typetype of transactionbuy or sell
currency_pricethe rate at which you need to buy/sellnumeric
volumethe amount you need to buy/sellnumeric

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.