Repository navigation
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>
This branch has not been deployed
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
Gate's futures TestNet host (
fx-api-testnet.gateio.ws) now returns HTTP 502. This release repoints TestNet REST tohttps://api-testnet.gateapi.io/api/v4viabaseUrlKey: 'testnet'(spot and futures).futuresTestnetstays as a backwards-compatible alias of the same host. Spot and Options WebSocket TestNet hosts are updated to match current Gate docs. Also applies Gate API v4.106.160's breaking amend-path change and pending type sync through v4.106.159. Version 1.6.5.Changelog
baseUrlKey: 'testnet'→https://api-testnet.gateapi.io/api/v4.futuresTestnetis the same host (backwards-compatible); the oldfx-api-testnet.gateio.wshost returns 502.wss://ws-testnet.gate.com/v4/ws/spotand.../options).updateFuturesPriceTriggeredOrderusesPUT /futures/{settle}/price_orders/amend/{order_id};order_idstill sent in the JSON body.trade_statusispre_market | open | post_market.data.lists.trade_mode(0 | 1 | 2 | 4 | 5 | 6 | 7 | 8), orderstatus(0-8`), history `finish_as` (`0`-9,13); futures account booktypeincludesdividend` (v4.106.147).tpsl_tp_bbo_typeandtpsl_sl_bbo_type.docs/endpointFunctionList.md,examples/apidocandllms.txt.