> This page is for Documentation.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://okx-demo.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://okx-demo.ferndocs.com/_mcp/server.

## Trading account and WebSocket

* Added `GET /api/v5/account/position-tiers` to fetch position and leverage tier
  information per instrument family.
* The private `positions` WebSocket channel now emits `pTime` (push timestamp)
  distinct from `uTime` (data update timestamp) so consumers can measure delivery
  latency.

> **Warning**
>
> **Deprecation.** The legacy `POST /api/v5/account/set-greeks` endpoint is
> deprecated in favor of the `greeksType` parameter on
> `POST /api/v5/account/set-account-level`. The legacy endpoint will be removed in
> a future release; migrate to the account-level setting.