Get Otc Orders
Frequency limit: 20 times/1s (UID)
Description
Get Otc Orders
HTTP Request
- GET /api/v2/spot/otc/orders
Request Example
curl "https://api.cointr.com/api/v2/spot/otc/orders?startTime=1659036670000&endTime=1659076670000&limit=20" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json"
request parameter
Parameter | Type | Required | Description |
---|---|---|---|
startTime | String | No | The record start time for the query. Unix millisecond timestamp, e.g. 1690196141868. (For Managed Sub-Account, the StartTime cannot be earlier than the binding time) |
endTime | String | No | The end time of the record for the query. Unix millisecond timestamp, e.g. 1690196141868 |
idLessThan | String | No | Requests the content on the page before this ID (older data), the value input should be the orderId of the corresponding interface. |
limit | String | No | Limit number default 100 max 100 |
orderId | String | No | OrderId |
requestTime | String | No | request Time Unix millisecond timestamp |
receiveWindow | String | No | valid window period Unix millisecond timestamp Unix millisecond timestamp |
Response Example
{
"code": "00000",
"data": [
{
"userId": "*********",
"orderId": "*****************************",
"price": "0",
"baseVolume": "10000.0000000000000000",
"quoteVolume": "0",
"direction": "buy",
"fee": "0",
"status": "cancelled",
"quoteCoin": "USDT",
"baseCoin": "TRY",
"cTime": "1756175737825",
"uTime": "1756176050093"
}
],
"msg": "success",
"requestTime": 1756193697091
}
Response Parameter
Parameter | Type | Description |
---|---|---|
userId | String | User id |
orderId | String | Order ID |
price | String | Order price |
baseVolume | String | Base volume The quantity of coin consumed |
quoteVolume | String | Quote volume The quantity of coin obtained |
direction | String | Direction |
status | String | Order statusopen :unfilled;filled :filled;cancelled :cancelled; |
cTime | String | Creation time, Unix millisecond timestamp, e.g. 1690196141868 |
uTime | String | Update time, Unix millisecond timestamp, e.g. 1690196141868 |
baseCoin | String | Left coin, The coin consumed |
quoteCoin | String | Right coin, The coin obtained |
fee | String | Fee |