Skip to content

Current Delegation List

Address/openApi/entrust/currentList

Input Parameters

necessary

Submission Method: GET

Example

curl -d /openApi/entrust/currentList

Submission Parameters

Parameter Name Required Type Example Description
symbol No string Trading pair (mandatory for current pair, not required for all pairs)
from No int 122 Start query order_sn
direct No string prev Query direction (default prev), prev is backward, time (or ID) in descending order; next is forward, time (or ID) in ascending order. (Example of a series of numbers: 1, 2, 3, 4, 5. From=4, prev has 3, 2, 1; next only has 5)
limit No int 20 The number of results returned per page, default is 20, maximum is 100 (refer to the pagination section for details)

Return Parameters

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

result Parameter Description

Parameter Name Required Type Example Description
order_id Yes integer Order ID
order_sn Yes string Order Number
symbol Yes string Trading pair
ctime Yes string Delegate Time
type Yes int 1 Order type:1=Market,2=Limit
side Yes string buy Order direction: buy/sell
price Yes String Price: 0 when market price (type=1)
number Yes String 3.12 Order quantity: For market buy orders (type=1, side=buy), it's 0
total_price Yes String Total order amount: 0 for market sell order (type=1, side=sell)
deal_number Yes String Executed Quantity
deal_price Yes String Average transaction price
status Yes int 1 Status: 1=Pending, 2=Partial transaction, 4=Cancelling

Return Example

JSON
{
    "errno":0,
    "errmsg":"success",
    "result":[
        {
            "order_id":121,
            "order_sn":"BL123456789987523",
            "symbol":"MCO-BTC",
            "ctime":"2018-10-02 10:33:33",
            "type":"2",
            "side":"buy",
            "price":"0.123456",
            "number":"1.0000",
            "total_price":"0.123456",
            "deal_number":"0.00000",
            "deal_price":"0.00000",
            "status":1
        },
        {
            "order_id":122,
            "order_sn":"SL123456789987523",
            "symbol":"MCO-BTC",
            "ctime":"2018-10-02 10:33:33",
            "type":"2",
            "side":"sell",
            "price":"0.123456",
            "number":"1.0000",
            "total_price":"0.123456",
            "deal_number":"0.00000",
            "deal_price":"0.00000",
            "status":1
        },
        {
            "order_id":123,
            "order_sn":"BM123456789987523",
            "symbol":"MCO-BTC",
            "ctime":"2018-10-02 10:33:33",
            "type":"1",
            "side":"buy",
            "price":"0",
            "number":"0",
            "total_price":"1",
            "deal_number":"0.00000",
            "deal_price":"0.00000",
            "status":1
        },
        {
            "order_id":124,
            "order_sn":"SM123456789987523",
            "symbol":"MCO-BTC",
            "ctime":"2018-10-02 10:33:33",
            "type":"1",
            "side":"sell",
            "price":"0",
            "number":"1.0000",
            "total_price":"0",
            "deal_number":"0.00000",
            "deal_price":"0.00000",
            "status":1
        }
    ]
}