API Reference
GET
/v1/orders/open Open orders
查询当前仍处于开放状态的订单。
Parameters
| Name | Location | Type | Required | Constraints |
|---|---|---|---|---|
id | query | string | no | minLength: 1 |
market | query | string | no | minLength: 1 |
assetId | query | string | no | minLength: 1 |
onlyFirstPage | query | true | false | no | enum: true, false |
nextCursor | query | string | no | minLength: 1 |
Request body
This endpoint does not accept a JSON request body.
Responses
200 OK
400 Bad Request
401 Unauthorized
404 Not Found
502 Upstream Error
Examples
curl -X GET 'https://api.jd.io/v1/orders/open?id=<ID>' \
-H 'Authorization: Bearer <USER_API_KEY>' {
"ok": true,
"data": {
"orders": [
{
"id": "<ID>",
"marketId": "<MARKET_ID>",
"assetId": "<ASSET_ID>",
"marketTitle": "<MARKET_ID>",
"marketSlug": "<MARKET_ID>",
"marketRoute": "<MARKET_ID>",
"iconUrl": "<ICONURL>",
"action": "BUY",
"side": "YES",
"type": "limit",
"price": 0.42,
"shares": 10,
"createdAt": "<CREATEDAT>",
"status": "open"
}
]
}
}