Skip to content

feat(v1.6.5): new TestNet host, price order amend path - #147

Open
JJ-Cro wants to merge 3 commits into
sieblyio:masterfrom
JJ-Cro:update16102026
Open

JJ-Cro wants to merge 3 commits into
sieblyio:masterfrom
JJ-Cro:update16102026

Conversation

@JJ-Cro

@JJ-Cro JJ-Cro commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Gate's futures TestNet host (fx-api-testnet.gateio.ws) now returns HTTP 502. This release repoints TestNet REST to https://api-testnet.gateapi.io/api/v4 via baseUrlKey: 'testnet' (spot and futures). futuresTestnet stays 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

  • TestNet REST: baseUrlKey: 'testnet' → https://api-testnet.gateapi.io/api/v4. futuresTestnet is the same host (backwards-compatible); the old fx-api-testnet.gateio.ws host returns 502.
  • Spot and Options WebSocket TestNet hosts updated (wss://ws-testnet.gate.com/v4/ws/spot and .../options).
  • Gate v4.106.160 (breaking): updateFuturesPriceTriggeredOrder uses PUT /futures/{settle}/price_orders/amend/{order_id}; order_id still sent in the JSON body.
  • v4.106.159: stock trade_status is pre_market | open | post_market.
  • v4.106.158: OTC fiat and stablecoin order list responses use data.lists.
  • v4.106.148: stock trade_mode (0 | 1 | 2 | 4 | 5 | 6 | 7 | 8), order status (0-8`), history `finish_as` (`0`-9, 13); futures account book typeincludesdividend` (v4.106.147).
  • Futures place-order requests accept tpsl_tp_bbo_type and tpsl_sl_bbo_type.
  • Version 1.6.5. Regenerated docs/endpointFunctionList.md, examples/apidoc and llms.txt.

cursoragent and others added 3 commits October 16, 2026 10:14
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

No deployments
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