Skip to content

feat(v1.6.10): add Stock Options API and chat file pre-upload - #158

Merged
tiagosiebler merged 3 commits into
sieblyio:masterfrom
JJ-Cro:update23112026
Nov 27, 2026
Merged

tiagosiebler merged 3 commits into
sieblyio:masterfrom
JJ-Cro:update23112026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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

  • New Stock Options methods (/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 types
  • StockTradeMode is now 0 | 1 | 2 | 4 | 5 (5 = trading suspended)
  • New preUploadP2PMerchantChatFile() (POST /p2p/merchant/chat/pre_upload_chat_file); uploadP2PMerchantChatFile() marked @deprecated and otherwise unchanged
  • README: Browser/Frontend Usage rewritten with Vite/React, Next.js, Expo and standalone Webpack bundle guidance
  • Version 1.6.10

Checks

  • npm run lint, tsc --noEmit, npm run build: pass
  • Endpoint docs, examples/apidoc and llms.txt regenerated with the regex runner

JJ-Cro and others added 3 commits November 23, 2026 13:11
- 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.

@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 66aaa0c into sieblyio:master Nov 27, 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