feat(v3.1.5): update per release notes - #188
Merged
Merged
Conversation
…ds API support - Bumped version in package.json and package-lock.json to 3.1.5. - Introduced new API endpoints for affiliate and stable rewards functionalities. - Added request and response types for affiliate and stable rewards in the respective files. - Updated RestClient to include methods for the new endpoints.
- Updated `llms.txt` to reflect changes in directory structure and added new request/response types for affiliate and stable rewards. - Removed deprecated dual investment request types from `src/types/rest/request/dual-investment.ts`. - Added new request and response types for recurring buy functionality in `src/types/rest/response/private-recurring-buy.ts`. - Updated multiple example scripts to use ES6 import syntax for the RestClient. - Enhanced the API documentation in `docs/endpointFunctionList.md` to include new endpoints and examples.
- Updated WebsocketClient to handle OPENAPI_GLOBAL market. - Enhanced documentation to include OPENAPI_GLOBAL in APIMarket and RestClientOptions. - Added OPENAPI_GLOBAL base URL and WebSocket configurations. - Ensured compatibility with existing GLOBAL market functionality.
tiagosiebler
approved these changes
Jun 11, 2026
tiagosiebler
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks. FYI: Added an open issue to track the default url change when we do it with the next major release #190
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.
2026-04-24 Stable Rewards
6 new endpoints: product info, quote, trade, balance, apy history, subscribe/redeem history
New types in stable-rewards.ts and private-stable-rewards.ts
2026-04-28 Precheck set delta neutral
Added risk_unit_type to UnmatchedInfo.type
2026-05-06 Slippage + post_only state
Added slippagePct to OrderRequest and WSAPIPlaceOrderRequestV5
Added post_only to instrument state comments on Instrument and AccountInstrument
2026-05-08 Affiliate
5 new endpoints: performance summary, invitee list, link list, co-inviter list, sub-affiliate list
getInviteeDetail typed with wdAmt and totalVol
New types in affiliate.ts and private-affiliate.ts
2026-05-20 REST base URL
Default global REST URL www.okx.com → openapi.okx.com in requestUtils.ts
2026-05-22 Asset bills
Added thirdPartyType to getAssetBillsDetails()