# Market Interface
# Query Symbols
API
GET /openApi/spot/v1/common/symbols
Parameters
Parameters | Type | Required | Description |
---|---|---|---|
symbol | string | 否 | Trading pair, e.g., BTC-USDT |
Response
Parameters | Type | Description |
---|---|---|
symbols | array | Symbol list, refer to the table below for order fields |
Parameters | Type | Description |
---|---|---|
symbol | string | Trading pair |
tickSize | float64 | Price step |
stepSize | float64 | Quantity step |
minQty | float64 | Minimum transaction quantity |
maxQty | float64 | Maximum transaction quantity |
minNotional | float64 | Minimum transaction amount |
maxNotional | float64 | Maximum transaction amount |
status | int | 0 offline, 1 online |
{
"code":0,
"msg":"",
"data":{
"symbols":[
{
"symbol":"BTC-USDT",
"tickSize": 0.01,
"stepSize": 0.000001,
"minQty": 0.00012,
"maxQty": 1.24947,
"minNotional": 6,
"maxNotional": 50000,
"status":1
}
]
}
}
# Query transaction records
interface
GET /openApi/spot/v1/market/trades
parameter
Parameter name | Type | Required or not | Remarks |
---|---|---|---|
symbol | string | yes | symbol, eg: BTC-USDT, please use capital letters |
limit | int | no | default 100, max 100 |
response
parameter name | type | remarks |
---|---|---|
id | long | transaction id |
price | float64 | price |
qty | float64 | quantity |
time | long | time |
isBuyerMaker | boolean | Buyer or not |
{
"code": 0,
"data": [
{
"id": 43148253,
"price": 25714.71,
"qty": 1.674571,
"time": 1655085975589,
"buyerMaker": false
}
]
}
# Query depth information
interface
GET /openApi/spot/v1/market/depth
parameter
Parameter name | Type | Required or not | Remarks |
---|---|---|---|
symbol | string | yes | symbol, eg: BTC-USDT, please use capital letters |
limit | int | No | Default 20, max 100 |
response
parameter name | type | remarks |
---|---|---|
bids | array | price of the first element, quantity of the second element |
asks | array | first element price, second element quantity |
{
"code": 0,
"data": {
"bids": [
[
"25770.20",
"0.027944"
]
],
"asks": [
[
"25774.59",
"0.681418"
]
]
}
}