Skip to content

Entrust Order Placement

Address/openApi/entrust/add

Receiving Parameters

Submission Method: POST(form)

Example

curl -d /openApi/entrust/add

Submission Parameters

Parameter Name Required Type Example Description
symbol Yes string BTC-USDT Trading Pair
type Yes string buy-limit Order type: buy-market: market buy, sell-market: market sell, buy-limit: limit buy, sell-limit: limit sell
amount Yes float 1.343432 For limit orders, it represents the order quantity. For market buy orders, it indicates how much money to buy (usdt). For market sell orders, it indicates how much coin to sell (btc)
price No float 32.3232145 Order price, do not pass this parameter for market orders

Return Parameters

Parameter Name Required Type Example Description
errno Yes int 0 Status Code
errmsg Yes success success Status Information
result Yes object See example List

result Parameter Description

Parameter Name Mandatory Type Example Description
order_sn Yes string Order Number
order_id Yes integer 1231 order id

Return Example

JSON
{
    "errno":0,
    "errmsg":"success",
    "result":{
        "order_sn":"BL786401542840282676"
    }
}