Skip to main content

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

ParameterTypeRequiredDescription
startTimeStringNoThe 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)
endTimeStringNoThe end time of the record for the query. Unix millisecond timestamp, e.g. 1690196141868
idLessThanStringNoRequests the content on the page before this ID (older data), the value input should be the orderId of the corresponding interface.
limitStringNoLimit number default 100 max 100
orderIdStringNoOrderId
requestTimeStringNorequest Time Unix millisecond timestamp
receiveWindowStringNovalid 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

ParameterTypeDescription
userIdStringUser id
orderIdStringOrder ID
priceStringOrder price
baseVolumeStringBase volume
The quantity of coin consumed
quoteVolumeStringQuote volume
The quantity of coin obtained
directionStringDirection
statusStringOrder status
open:unfilled;
filled:filled;
cancelled:cancelled;
cTimeStringCreation time, Unix millisecond timestamp, e.g. 1690196141868
uTimeStringUpdate time, Unix millisecond timestamp, e.g. 1690196141868
baseCoinStringLeft coin, The coin consumed
quoteCoinStringRight coin, The coin obtained
feeStringFee