Generated from the current FB API OpenAPI schema. View OpenAPI

API Reference

GET /v1/orders/open

Open orders

查询当前仍处于开放状态的订单。

Base URL https://api.jd.io
Auth Bearer API Key
Group Orders

Parameters

NameLocationTypeRequiredConstraints
idquerystringnominLength: 1
marketquerystringnominLength: 1
assetIdquerystringnominLength: 1
onlyFirstPagequerytrue | falsenoenum: true, false
nextCursorquerystringnominLength: 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
curl -X GET 'https://api.jd.io/v1/orders/open?id=<ID>' \
  -H 'Authorization: Bearer <USER_API_KEY>'
200 Response
{
	"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"
			}
		]
	}
}