Files
Hogan 8e4eb3dd85 docs: add grid trading documentation (CLI, API, SDK, MCP) (#1204)
## Summary

Complete grid trading documentation for the Longbridge Developers site —
the new grid strategy orders documented across CLI, HTTP API, SDKs, and
MCP, in English / Simplified Chinese / Traditional Chinese.

## What's included

- **Grid Trading API reference** (`docs/trade/grid/`) — an overview page
plus 11 endpoint pages: submit, replace, list, list-by-IDs, detail,
trigger history, cancel, suspend, restart, questionnaire, and symbol
info. Each endpoint page carries a `<CliCommand>` example, Python /
Node.js / Java / Rust / C++ SDK tabs, request/response tables, and a `##
Schemas` section — matching the existing `trade/order` pages.
- **CLI usage page** (`cli/orders/grid.md`) — the `longbridge grid`
command group under "Orders & Trading".
- **WebSocket push** — the `GridOrderChanged` (`gridtrading_order`)
event documented in `trade-push.md`.
- **FAQ** — `qa/trade.md` updated: grid orders are now supported.
- **Changelog & CLI release notes** — a 2026-08-14 changelog entry (SDK
v4.5.0 / CLI v0.27.0 / MCP: 11 grid tools) and a CLI v0.27.0 release
note.
- **`openapi.yaml`** — the `/v1/gridtrading/*`,
`/v1/record/questionnaire`, and `/v1/orders/info` paths plus the
`GridTradeRule` schema, under a new `Grid Trading` tag.
- **`SDKLinks` component** — now supports the `grid` module and a
`hideGo` flag (the Go SDK has no grid bindings yet).

All pages are mirrored across `en` / `zh-CN` / `zh-HK`.

## Notes

- Field names, enums, and HTTP paths come from the source PRs
(longbridge/openapi#563, longbridge/longbridge-terminal#281).
- The v0.27.0 / v4.5.0 release tags go live with the 2026-08-14 release;
the release-note links resolve then.
- CI (Build Test + autocorrect) is green.

Refs: longbridge/openapi#563, longbridge/longbridge-terminal#281

---------

Co-authored-by: Jason Lee <huacnlee@gmail.com>
2026-08-21 13:42:14 +08:00

126 KiB