Skip to content

Conventions

HTTP

  • JSON responses unless noted.
  • Timestamps are Unix milliseconds unless otherwise specified.
  • Query parameter names and JSON field names follow the OpenAPI examples (typically camelCase on trading APIs).

Authentication classes

Class When Header Signature Example
Public Market data and public metadata — No GET /openapi/v1/exchangeInfo
API key only listenKey create / keepalive / close x-ptrader-apikey No POST /openapi/v1/userDataStream
Signed HMAC Trading, account, wallet, and other private REST x-ptrader-apikey Yes (signature + usually timestamp) POST /openapi/v1/order

Market data paths

Public market-data REST paths use /openapi/quote/v1/... only.

Legacy /openapi/v1/... market aliases (and other removed aliases such as unversioned /openapi/account) have been removed and return 404. Always call the versioned paths documented here (for example /openapi/quote/v1/..., /openapi/v1/account).

Error body shape

{ "code": -1022, "msg": "Signature for this request is not valid." }

See Error codes.