Skip to content

Query Delegation Details

Address: /openApi/contract/getOrderDetail

Receiving Parameters

Required

Submission Method: get

Submission Parameters

Parameter Name Required Type Example Description
order_id Yes string BM121241631598302178LNZN11 Order ID

Return Parameters

Parameter Name Required Type Example Description
errno Yes int 0 Return status code
errmsg Yes string Success Return message
result Yes object See example Return data

result parameters

Parameter Name Required Type Example Description
order_id Yes string 11532 Order ID
ctime Yes int 1576746253 Order time
symbol Yes string EOS-USDT Trading pair
price Yes string 14 Order Price
amount Yes string 150 Order Amount
price_avg Yes string 15 Average transaction price
lever_rate Yes int 10 Leverage multiple
deal_amount Yes string 100 Completed
type Yes string buy-limit Order type
status Yes int 3 Order status (1=Pending,2=Partially Filled,3=Filled,4=Cancellation Pending,5=Partially Cancelled,6=Cancelled)
contract_type Yes int 1 Contract type (1 open position 2 close position)
profit Yes string 10 Total Profit and Loss

Return Example

JSON
{
    "errno": 0,
    "errmsg": "success",
    "result": {
        "order_id": "11532", // Order number
        "ctime": 1576746253, //Order creation time
        "symbol": "EOS-USDT", //Trading Pair
        "price": "14", //Entrust price
        "amount": "150", // Delegated amount
        "price_avg": "15", //Average Transaction Price
        "lever_rate": 10, //Leverage ratio
        "deal_amount": "100", //Completed transactions
        "type": "buy-limit", //Order type
        "status": 3, //1=Pending,2=Partially filled,3=Filled,4=Cancelling,5=Partially cancelled,6=Cancelled
        "contract_type": 1, // 1 Open position 2 Close position
        "profit": "10" //Total profit and loss
    }
}