Repository navigation
feat(v3.2.9): fix WS snapshot guards, withdrawal path, switch status, WS requestTime; ins-loan fields - #186
Merged
Conversation
- Recognize matching WebSocket account and position snapshots (fixes sieblyio#182) - Send UTA withdrawals to the documented withdrawal endpoint (fixes sieblyio#183) - Correct account switch statuses and expose the failure reason (fixes sieblyio#184) - Send top-level requestTime on WS API order requests so receiveWindow takes effect; can be overridden via requestFlags.requestTime (fixes sieblyio#185) - Add institutional lending client types, risk units, and Hedge risk metrics - Update REST market-order slippage documentation to support three decimal places - Bump the SDK to 3.2.9 and the Node.js pin to v24.22.3
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
Fixes for #182, #183, #184 and #185, plus UTA changelog updates from 12 Nov 2026 (slippageTolerance range, institutional lending fields).
Changelog
RestClientV3.submitWithdrawposts to/api/v3/account/withdrawal(Fixes RestClientV3.submitWithdraw uses /withdraw instead of /withdrawal #183)getUnifiedAccountSwitchStatusstatus is'process' | 'success' | 'fail', with optionalreason(Fixes getUnifiedAccountSwitchStatus declares concatenated status values #184)requestTimewhenreceiveWindowis set, so the window takes effect; it can be overridden withrequestFlags.requestTime(Fixes WebSocket V3 order requests omit requestTime required by receiveWindow #185)clientTypeon product infos,deltaThreshold/leverageThreshold(Hedge only),riskUnitListon risk unit,delta/leverageRatioon LTV convertslippageToleranceJSDoc: range [0.001, 0.05], up to 3 decimals.nvmrctov24.22.3Checks
npm run lint,npm run build, offline jest suite: passtsc --noEmit -p tsconfig.json: same 10 errors intest/ws.util.tsas on master, none from this changeexamples/apidocandllms.txtregenerated with the regex runner