Repository navigation
feat(v1.6.10): add Stock Options API and chat file pre-upload - #158
Merged
Merged
Conversation
- Restrict StockTradeMode to 0, 1, 2, 4, and 5 per Gate v4.106.182. - Add typed authenticated P2P chat pre-upload and deprecate the legacy upload method without changing its signature or body. - Rewrite browser usage with verified framework guides and current standalone bundle details. - Bump package and lockfile versions to 1.6.10. - Leave Stock Options APIs out because their request, response, and authentication reference could not be fetched or verified.
- Add all six public Stock Options market-data endpoints. - Add authenticated position queries and position closing. - Add authenticated order creation, queries, amendment, cancellation, bulk cancellation, and history. - Export named request and response types with decimal-string prices, quantities, and order IDs. - Match the saved official Stock Options documentation for fields, authentication, and query/body placement.
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
Stock Options API, updated stock trade modes and the P2P chat file pre-upload endpoint from the Gate API v4 changelog, plus the new Browser/Frontend Usage README section.
Changelog
/stock_options/*): fee rate, underlyings, contracts, expirations, option chain, order book, positions and close position, and order create/list/get/update/cancel/cancel-all/history, with request/response typesStockTradeModeis now0 | 1 | 2 | 4 | 5(5 = trading suspended)preUploadP2PMerchantChatFile()(POST /p2p/merchant/chat/pre_upload_chat_file);uploadP2PMerchantChatFile()marked@deprecatedand otherwise unchangedChecks
npm run lint,tsc --noEmit,npm run build: passexamples/apidocandllms.txtregenerated with the regex runner