Skip to content

Query Merged Market Depth

Address/openApi/market/gears_depth

Receiving Parameters

Submission method: GET

Example

curl -d /openApi/market/gears_depth

Submission Parameters

Parameter Name Required Type Example Description
symbol Yes string BTC-USDT Trading Pair
depth Yes float 0.0001 Depth (0.0001,0.00001,0.000001)

Return Parameters

Parameter Name Required Type Example Description
errno Yes int 0 Status Code
errmsg Yes success success Status Message
result Yes array See example Return result

Result Description

Parameter Name Required Type Example Description
ts Yes int 1499184000 Data acquisition time
symbol Yes string BTC-USDT Trading Pair
asks Yes object-array Refer to the example sell orders, gear(level), price(transaction price), amount(transaction volume), in ascending order by price
bids Yes object-array See example Buy orders, gear, price, amount, sorted by price in descending order

Return Example

JSON
{
    "errno":0,
    "errmsg":"success",
    "result":{
        "symbol":"EOS-USDT",
        "ts":1499223904680,
        "asks":[
            {
                "gear":"1",
                "price":6322.22,
                "number":0.0041
            }
        ],
        "bids":[
            {
                "gear":"1",
                "price":6322.22,
                "number":0.0041
            }
        ]
    }
}
JSON
{
    "errno":10010,
    "errmsg":"Failed"
}