Repository navigation
Conversation
…ssEx, microsecond trade times)
- BREAKING: CrossExTransferCoin min_trans_amount and est_fee are now strings (GET /crossex/transfers/coin)
- rpi_taker_access on spot and futures order requests; new submitFuturesBBOOrder() (POST /futures/{settle}/bbo_orders) with rpi_taker_access; batch futures orders exclude it (single orders only)
- create_time_us on futures trades, my_trades and my_trades_timerange responses (needs the timeUnit: microsecond header)
- CrossEx: status filter on transfers, order_id/text filters on history orders, order_id filter and fx_rate on history trades, risk_limits on positions, assets[].price on accounts, REBASE attribute
- tokenized_security_info on spot currencies
- Version 1.6.11
…ders - Reject authentication waiters and clear failed login state when a Gate WS API login is rejected, so a later call can retry; skipped when authPrivateConnectionsOnConnect is enabled (automation-tracker sieblyio#19). - Add cancelAllSpotPriceTriggeredOrders() and cancelAllFuturesPriceTriggeredOrders(); deprecate the ambiguous cancelAllOpenSpotOrders()/cancelAllOpenFuturesOrders() names without changing their implementations (automation-tracker sieblyio#94). - Document trigger enums, comparison rules and timeout units on spot/futures price-triggered order types; correct the getSpotAutoOrders() summary (automation-tracker sieblyio#96). Package version remains 1.6.11.
- Reject shared authentication and pending WS API requests on login/build/send failures, including automatic on-open authentication (automation-tracker sieblyio#19). - Settle cancelled connection/authentication attempts, guard stale sockets and asynchronous work, and catch internal lifecycle rejections while preserving successful flows (automation-tracker sieblyio#19). - Add opt-in customFetch REST transport with shared response/error handling, exported structural types, and README guidance; retain axios by default (automation-tracker sieblyio#124). - Set package and lockfile release versions to 1.7.0 for the native fetch feature (automation-tracker sieblyio#124).
…tch Accept header - Redact credentials from Axios REST network errors using safe diagnostic options (automation-tracker sieblyio#66) - Align the fetch Accept default and document runtime transport headers (automation-tracker sieblyio#124)
tiagosiebler
requested changes
Dec 3, 2026
| .catch((e) => this.parseException(e, options)); | ||
| } | ||
|
|
||
| private async fetchRequest( |
Member
There was a problem hiding this comment.
method name changed again, pls name naming and contents consistent across all. Don't need 10 flavours of the same thing...
| * Axios-only network options, adapters, agents and interceptors are ignored, | ||
| * except timeout, which uses AbortSignal.timeout() when supported. | ||
| */ | ||
| customFetch?: CustomFetch; |
|
|
||
| if (!this.wsStore.getConnectionInProgressPromise(wsKey)) { | ||
| this.wsStore.createConnectionInProgressPromise(wsKey, false); | ||
| const failed = (cause: unknown) => { |
Member
There was a problem hiding this comment.
is this different from the other SDKs now? It's more readable than the proposed IIFE changes in the other SDKs, for sure. But consistency please. BaseWSClient should ideally match almost perfectly between all SDKs
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 API v4.106.183-187 updates: RPI taker access, CrossEx filters and fields, microsecond futures trade timestamps and tokenized security info. Adds an optional native fetch transport and settles pending WebSocket requests on auth failure or close. Also fixes WS login failures and price-triggered order naming and docs.
Changelog
CrossExTransferCoin.min_trans_amountandest_feeare now strings (GET /crossex/transfers/coin)rpi_taker_accesson spot and futures order requests; newsubmitFuturesBBOOrder()(POST /futures/{settle}/bbo_orders), which also takesrpi_taker_access. Batch futures orders exclude it, because Gate supports it on single orders only.create_time_uson futures trades, my trades and my trades by time range (returned only when thetimeUnit: microsecondheader is sent)statusfilter on transfers,order_id/textfilters on history orders,order_idfilter andfx_rateon history trades,risk_limitson positions,assets[].priceon accounts, REBASE attributetokenized_security_infoon spot currenciescancelAllSpotPriceTriggeredOrders()andcancelAllFuturesPriceTriggeredOrders()(same endpoints). The oldcancelAllOpenSpotOrders()/cancelAllOpenFuturesOrders()names are marked@deprecatedand unchanged, because they cancel price-triggered orders, not open ordersprice_type,strategy_typeand expiration units;getSpotAutoOrders()summary correctedspot.login/futures.loginnow rejects the waiting WS API requests and clears the login state so a later call can retry, including withauthPrivateConnectionsOnConnect(the failure is caught and emitted asexception)Errorwhen authentication is rejected, when the connection closes or terminates, and whenclose()/closeAll()is called during connect or auth. A socket that opens after its attempt was cancelled is closed without emittingopen/reconnected. Internal automatic auth/reconnect failures are emitted onexceptioninstead of becoming unhandled rejections. Successful flows are unchanged, and the existing rejection reasons for requests in flight on a socket close are keptcustomFetchFnREST client option (with exportedCustomFetch,CustomFetchRequestInitandCustomFetchResponsetypes). When set, REST requests go through that fetch function (e.g.fetchor a Cloudflare Workers fetcher) instead of axios, with the same signing, response handling and error shapes; errors thrown by the fetch function come back unchanged. Default stays axios. README section "Edge runtimes / native fetch". Binary/multipart bodies reject locally in this modeChecks
npm run lint,tsc --noEmit,npm run build: passexamples/apidocandllms.txtregenerated with the regex runnerInternal tracker: #94, #96, #19, #124