> 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.

## Grid trading

* Added `POST /api/v5/tradingBot/grid/adjust-investment` to add margin or
  investment to a running spot or contract grid without stopping it.
* The grid order details endpoint `GET /api/v5/tradingBot/grid/orders-algo-details`
  now includes `annualizedRate` and `gridProfit` breakdown fields.
* New WebSocket channel `grid-orders-spot` pushes lifecycle events for spot grid
  bots on the private channel.