Generated from the current FB API OpenAPI schema. View OpenAPI

Overview

Orders

Submit market or limit orders, then query and cancel orders by ID.

Place Orders

Market buys require `amount`, market sells require `shares`, and limit orders require both `shares` and `price`.

Market buy
curl -X POST 'https://api.jd.io/v1/orders' \
	-H 'Authorization: Bearer <USER_API_KEY>' \
	-H 'Idempotency-Key: order-20260530-001' \
	-H 'Content-Type: application/json' \
	--data '{
	"tokenId": "<TOKEN_ID>",
	"action": "BUY",
	"orderType": "market",
	"amount": 10
}'
Limit order
curl -X POST 'https://api.jd.io/v1/orders' \
	-H 'Authorization: Bearer <USER_API_KEY>' \
	-H 'Content-Type: application/json' \
	--data '{
	"tokenId": "<TOKEN_ID>",
	"action": "BUY",
	"orderType": "limit",
	"shares": 5,
	"price": 0.42
}'

Query and Cancel