Skip to content

Query Consolidated Market Depth

Address/openApi/contract/gears_depth

Parameters Received

Submission Method: GET

Example

curl -d /openApi/contract/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 See example Sell orders, gear (gear), price (transaction price), amount (transaction volume), sorted ascending by price
bids Yes object-array See example Buy orders, gear, price, amount, in descending order of price

result -> asks, bids Explanation

Parameter Name Required Type Example Description
price Yes string 100.3 Price
number Yes string 50 Quantity
gear Yes string 50 Gear

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"
            }
        ]
    }
}