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 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
https://api-testnet.gateapi.io/api/v4.baseUrlKey: 'testnet'covers spot and futures.futuresTestnetis the same host, so older configs keep working. The previous futures TestNet host returns HTTP 502.updateFuturesPriceTriggeredOrdernow callsPUT /futures/{settle}/price_orders/amend/{order_id}and still sendsorder_idin the body (v4.106.160).1.6.5.Changelog
PUT /futures/{settle}/price_orders/amend/{order_id}.order_idstays 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), and historyfinish_as(0-9,13).typeincludesdividend.tpsl_tp_bbo_typeandtpsl_sl_bbo_type. ResponseFuturesOrderalready had them.Skipped
time_in_forceGTC: current stock docs only listday. An earlier changelog removedgtc.client_order_id: already optional onCreateStockOrderReq.tpsl_tp_bbo_type/tpsl_sl_bbo_typeonFuturesOrderresponses: already present.ws-testnet.gate.comvariants returned 403).docs/endpointFunctionList.mdandexamples/apidoc/RestClient/updateFuturesPriceTriggeredOrder.jsstill show the old amend path. Those files were not hand-edited.Checks
npm run build: passnpm run lint: passbaseUrl,priceOrderAmend,wsStore,public)BTC_USDTfutures contract returned 200 onapi-testnet.gateapi.io.fx-api-testnet.gateio.wsreturned 502. Spot, USDT futures, and Options TestNet WebSockets returned 101. Old Options TestNet host returned 502.