Skip to content

feat(v3.2.5): add activate-feature endpoint for USDC order book trading - #202

Merged
tiagosiebler merged 1 commit into
sieblyio:masterfrom
JJ-Cro:update06102026
Oct 6, 2026
Merged

tiagosiebler merged 1 commit into
sieblyio:masterfrom
JJ-Cro:update06102026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add RestClient.activateFeature({ feature: "1" }) for POST /api/v5/account/activate-feature, from the OKX changelog dated 2026-09-30. Call it only when place order returns error 54109, to turn on USDC order book trading. Error 51773 means this activation is not supported for the account. A successful response has an empty data array. One successful call covers the master account and its sub-accounts.
  • Instruments channel pushes can now be incremental (only instruments whose data changed). The subscription type notes that a local cache should be merged by instId instead of treated as a full snapshot. No new fields.
  • The USD spot to USDC instrument migration does not add request fields. tradeQuoteCcy and tradeQuoteCcyList were already on the order and instrument types. Set tradeQuoteCcy to USD when a Crypto-USDC instrument should still trade in USD.
  • Bump okx-api from 3.2.4 to 3.2.5. Regenerated docs/endpointFunctionList.md, examples/apidoc/RestClient/activateFeature.js, and llms.txt.

Add RestClient.activateFeature for POST /api/v5/account/activate-feature
from the 2026-09-30 changelog. Pass feature "1" only after place order
returns error 54109. Error 51773 means this activation is not supported.
A successful call returns an empty data array and covers the master
account plus its sub-accounts.

Note on the instruments channel subscription type that pushes can be
incremental: merge a local cache by instId instead of replacing the
full instrument set. tradeQuoteCcy and tradeQuoteCcyList were already
typed for the USD spot to USDC migration, so no new order fields.

Bump the package to 3.2.5 and regenerate the endpoint list, apidoc
example, and llms.txt.

Co-authored-by: Cursor <cursoragent@cursor.com>

@tiagosiebler tiagosiebler left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@tiagosiebler
tiagosiebler merged commit 3127f11 into sieblyio:master Oct 6, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants