Repository navigation
feat(v3.2.5): add activate-feature endpoint for USDC order book trading - #202
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RestClient.activateFeature({ feature: "1" })forPOST /api/v5/account/activate-feature, from the OKX changelog dated 2026-09-30. Call it only when place order returns error54109, to turn on USDC order book trading. Error51773means this activation is not supported for the account. A successful response has an emptydataarray. One successful call covers the master account and its sub-accounts.instIdinstead of treated as a full snapshot. No new fields.tradeQuoteCcyandtradeQuoteCcyListwere already on the order and instrument types. SettradeQuoteCcytoUSDwhen aCrypto-USDCinstrument should still trade in USD.okx-apifrom 3.2.4 to 3.2.5. Regenerateddocs/endpointFunctionList.md,examples/apidoc/RestClient/activateFeature.js, andllms.txt.