diff --git a/docs/en/docs/changelog.mdx b/docs/en/docs/changelog.mdx index 56c7cfb6..f71b8890 100644 --- a/docs/en/docs/changelog.mdx +++ b/docs/en/docs/changelog.mdx @@ -7,6 +7,27 @@ sidebar_icon: newspaper description: 'Release notes for Longbridge OpenAPI, CLI, MCP and SDKs, newest first: new commands, API endpoints, MCP tools and other changes.' --- +## 2026-11-20 + +### SDK v5.5.0 + +- **Risk assessment** — new `TradeContext.risk_assessment()` returns the risk assessment profile of the account the access token belongs to: the risk level and score of the latest assessment, the professional investor (PI) status, and the approval state of each item. Available in all six languages +- **TLS now trusts the operating system's certificate store** — behind a corporate TLS-inspecting proxy every HTTPS call previously failed with `invalid peer certificate: UnknownIssuer` even though other clients on the same machine worked. The OS store and the bundled roots are unioned, so a machine with an empty or unreadable store behaves exactly as before. **Note that this widens what the SDK trusts**: a certificate authority installed on the machine can now intercept SDK traffic +- **`history_orders()` returns every page** — the endpoint caps a response at 1000 records and reports the overflow in `has_more`, which the SDK dropped, so a caller whose window held more than 1000 orders silently got a truncated list. The return type is unchanged, so no code needs updating — but the call now issues one request per page, so a wide window is slower and consumes more of your rate limit; narrow `start_at` / `end_at` if that matters (with neither set the server defaults to 90 days) +- **Trade and asset calls accept zero-padded HK symbols** — `00700.HK`, the form the Longbridge apps display, is canonicalized to `700.HK`. Previously `/v1/asset/stock?symbol=00700.HK` answered `200` with **no** positions, so a padded symbol looked like an empty account rather than a mistake +- **Security: the OAuth callback page HTML-escapes the error text** — it was previously inserted as raw HTML, so any web page could redirect the browser to `http://localhost:/callback?error=