Repository navigation
feat(v1.6.6): RPI order books, stock dual earn, CrossEx securities - #148
Merged
Merged
Conversation
TestNet REST `futuresTestnet` now uses https://api-testnet.gateapi.io/api/v4. `baseUrlKey: 'testnet'` is the same host for spot and futures. `futuresTestnet` stays as an alias. WebSocket TestNet: - spot: wss://ws-testnet.gate.com/v4/ws/spot - options: wss://ws-testnet.gate.com/v4/ws/options - USDT perpetual, BTC perpetual, and delivery hosts still match current Gate docs Changelog: - v4.106.160: updateFuturesPriceTriggeredOrder uses PUT /futures/{settle}/price_orders/amend/{order_id}; order_id stays in the body - v4.106.159: stock trade_status is pre_market | open | post_market - v4.106.158: OTC fiat and stablecoin order lists use data.lists - v4.106.148: stock trade_mode, order status, and finish_as enums - v4.106.147: futures account_book type dividend - Futures place-order requests accept tpsl_tp_bbo_type and tpsl_sl_bbo_type Skipped: - stock time_in_force GTC: docs only list day - stock client_order_id: already on CreateStockOrderReq - tpsl bbo fields on FuturesOrder responses: already present Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
Stop importing FuturesAccountBookType from request types. Response records use FuturesAccountBookRecordType. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
Changelog:
- TradFi klines JSDoc: Unix seconds, limit max 500, limit cannot be combined with begin_time and end_time (INVALID_ARGUMENT), begin_time without end_time returns Service is busy
- Public GET /spot/rpi_order_book and GET /futures/{settle}/rpi_order_book
- Stock dual earn under /earn/dual/stock/* and type call|put on dual investment plans
- CrossEx stock/ETF order notes, required tag on /crossex/rule/symbols, GET /crossex/security_positions
- Account book SECURITY_DIVIDEND and SECURITY_CORPORATE_ACTION on statement_type
- README section Why not raw ws, and how this package differs from REST-only gate-api
Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
WebSocket TestNet is useTestnet: true. Drop the baseUrlKey TestNet write-up from the README, quickstart, and option comments. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.com>
REST TestNet: useTestnet true uses https://api-testnet.gateapi.io/api/v4. An explicit baseUrl or baseUrlKey still wins. Co-authored-by: Jerko J <JJ-Cro@users.noreply.github.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.
Depends on #147 (merge that first; this branch includes its commits).
Summary
Add Gate's RPI order books, stock dual investment, and CrossEx stock/ETF support, plus TradFi kline parameter docs and a README WebSocket section.
Changelog
getSpotRpiOrderBook()(GET /spot/rpi_order_book) andgetFuturesRpiOrderBook()(GET /futures/{settle}/rpi_order_book).getDualStockInvestmentPlans,getDualStockProjectRecommend,getDualStockOrders,submitDualStockOrder,getDualStockBalance,getDualStockOrderRefundPreview,submitDualStockOrderRefund,updateDualStockOrderReinvest(/earn/dual/stock/*). Dual plans gettype(call|put).getCrossExSecurityPositions()(GET /crossex/security_positions); stock/ETF symbol format and order rules in JSDoc;CrossExSymbol.tagis required (v4.106.157);CrossExAccountBookStatementTypeaddsSECURITY_DIVIDENDandSECURITY_CORPORATE_ACTION;statement_typefilter on account book.limitmax 500, and which parameter combinations Gate rejects (checked live).docs/endpointFunctionList.md,examples/apidocandllms.txt.Checks
tag