@@ -25,6 +25,14 @@ import {
2525 UpdateFixedLoanBorrowingOrderRequest ,
2626 WithdrawalHistoryRequest ,
2727} from './types/rest/request/account.js' ;
28+ import {
29+ GetAffiliateCoInviterLinkListRequest ,
30+ GetAffiliateInviteeListRequest ,
31+ GetAffiliateLinkListRequest ,
32+ GetAffiliatePerformanceSummaryRequest ,
33+ GetAffiliateSubAffiliateListRequest ,
34+ GetInviteeDetailRequest ,
35+ } from './types/rest/request/affiliate.js' ;
2836import {
2937 CancelBlockQuoteRequest ,
3038 CancelBlockRFQRequest ,
@@ -133,6 +141,14 @@ import {
133141 PlaceSpreadOrderRequest ,
134142 UpdateSpreadOrderRequest ,
135143} from './types/rest/request/spread-trading.js' ;
144+ import {
145+ GetStableRewardsApyHistoryRequest ,
146+ GetStableRewardsBalanceRequest ,
147+ GetStableRewardsProductInfoRequest ,
148+ GetStableRewardsSubscribeRedeemHistoryRequest ,
149+ RequestStableRewardsQuoteRequest ,
150+ SubmitStableRewardsTradeRequest ,
151+ } from './types/rest/request/stable-rewards.js' ;
136152import {
137153 GetManagedSubAccountTransferHistoryRequest ,
138154 GetSubAccountMaxWithdrawalsRequest ,
@@ -196,6 +212,14 @@ import {
196212 VIPLoanOrder ,
197213 VIPLoanOrderDetail ,
198214} from './types/rest/response/private-account.js' ;
215+ import {
216+ AffiliateCoInviterLinkListItem ,
217+ AffiliateInviteeListItem ,
218+ AffiliateLinkListItem ,
219+ AffiliatePerformanceSummary ,
220+ AffiliateSubAffiliateListItem ,
221+ InviteeDetail ,
222+ } from './types/rest/response/private-affiliate.js' ;
199223import {
200224 BlockCounterParty ,
201225 BlockMakerInstrumentSettings ,
@@ -291,6 +315,14 @@ import {
291315 SpreadTrade ,
292316 UpdateSpreadOrderResponse ,
293317} from './types/rest/response/private-spread-trading.js' ;
318+ import {
319+ StableRewardsApyHistoryItem ,
320+ StableRewardsBalance ,
321+ StableRewardsProductInfo ,
322+ StableRewardsQuote ,
323+ StableRewardsSubscribeRedeemHistoryItem ,
324+ StableRewardsTradeResult ,
325+ } from './types/rest/response/private-stable-rewards.js' ;
294326import {
295327 ManagedSubAccountTransfer ,
296328 SubAccount ,
@@ -2490,6 +2522,8 @@ export class RestClient extends BaseRestClient {
24902522 ccy ?: string ;
24912523 type ?: `${ASSET_BILL_TYPE } `;
24922524 clientId ?: string ;
2525+ /** Third-party custody type. Defaults to 1 (Copper) if not specified. */
2526+ thirdPartyType ?: '1' | '2' | '5' | '6' ;
24932527 after ?: numberInString ;
24942528 before ?: numberInString ;
24952529 limit ?: numberInString ;
@@ -3014,16 +3048,96 @@ export class RestClient extends BaseRestClient {
30143048 return this . getPrivate ( '/api/v5/finance/sfp/dcd/order-history' , params ) ;
30153049 }
30163050
3051+ /**
3052+ *
3053+ * Financial product — stable rewards endpoints
3054+ * @see https://www.okx.com/docs-v5/en/ (2026-04-24 release)
3055+ *
3056+ */
3057+
3058+ getStableRewardsProductInfo (
3059+ params : GetStableRewardsProductInfoRequest ,
3060+ ) : Promise < StableRewardsProductInfo [ ] > {
3061+ return this . getPrivate (
3062+ '/api/v5/finance/stable-rewards/product-info' ,
3063+ params ,
3064+ ) ;
3065+ }
3066+
3067+ requestStableRewardsQuote (
3068+ params : RequestStableRewardsQuoteRequest ,
3069+ ) : Promise < StableRewardsQuote [ ] > {
3070+ return this . postPrivate ( '/api/v5/finance/stable-rewards/quote' , params ) ;
3071+ }
3072+
3073+ submitStableRewardsTrade (
3074+ params : SubmitStableRewardsTradeRequest ,
3075+ ) : Promise < StableRewardsTradeResult [ ] > {
3076+ return this . postPrivate ( '/api/v5/finance/stable-rewards/trade' , params ) ;
3077+ }
3078+
3079+ getStableRewardsBalance (
3080+ params ?: GetStableRewardsBalanceRequest ,
3081+ ) : Promise < StableRewardsBalance [ ] > {
3082+ return this . getPrivate ( '/api/v5/finance/stable-rewards/balance' , params ) ;
3083+ }
3084+
3085+ getStableRewardsApyHistory (
3086+ params : GetStableRewardsApyHistoryRequest ,
3087+ ) : Promise < StableRewardsApyHistoryItem [ ] > {
3088+ return this . get ( '/api/v5/finance/stable-rewards/apy-history' , params ) ;
3089+ }
3090+
3091+ getStableRewardsSubscribeRedeemHistory (
3092+ params : GetStableRewardsSubscribeRedeemHistoryRequest ,
3093+ ) : Promise < StableRewardsSubscribeRedeemHistoryItem [ ] > {
3094+ return this . getPrivate (
3095+ '/api/v5/finance/stable-rewards/subscribe-redeem-history' ,
3096+ params ,
3097+ ) ;
3098+ }
3099+
30173100 /**
30183101 *
30193102 * Affiliate endpoints
3103+ * @see https://www.okx.com/docs-v5/en/ (2026-05-08 release)
30203104 *
30213105 */
30223106
3023- getInviteeDetail ( params : { uid : string } ) : Promise < any [ ] > {
3107+ getAffiliatePerformanceSummary (
3108+ params ?: GetAffiliatePerformanceSummaryRequest ,
3109+ ) : Promise < AffiliatePerformanceSummary [ ] > {
3110+ return this . getPrivate ( '/api/v5/affiliate/performance/summary' , params ) ;
3111+ }
3112+
3113+ getInviteeDetail ( params : GetInviteeDetailRequest ) : Promise < InviteeDetail [ ] > {
30243114 return this . getPrivate ( '/api/v5/affiliate/invitee/detail' , params ) ;
30253115 }
30263116
3117+ getAffiliateInviteeList (
3118+ params ?: GetAffiliateInviteeListRequest ,
3119+ ) : Promise < AffiliateInviteeListItem [ ] > {
3120+ return this . getPrivate ( '/api/v5/affiliate/invitee/list' , params ) ;
3121+ }
3122+
3123+ getAffiliateLinkList (
3124+ params ?: GetAffiliateLinkListRequest ,
3125+ ) : Promise < AffiliateLinkListItem [ ] > {
3126+ return this . getPrivate ( '/api/v5/affiliate/link/list' , params ) ;
3127+ }
3128+
3129+ getAffiliateCoInviterLinkList (
3130+ params ?: GetAffiliateCoInviterLinkListRequest ,
3131+ ) : Promise < AffiliateCoInviterLinkListItem [ ] > {
3132+ return this . getPrivate ( '/api/v5/affiliate/co-inviter/list' , params ) ;
3133+ }
3134+
3135+ getAffiliateSubAffiliateList (
3136+ params ?: GetAffiliateSubAffiliateListRequest ,
3137+ ) : Promise < AffiliateSubAffiliateListItem [ ] > {
3138+ return this . getPrivate ( '/api/v5/affiliate/sub-affiliate/list' , params ) ;
3139+ }
3140+
30273141 getAffiliateRebateInfo ( params : { apiKey : string } ) : Promise < any [ ] > {
30283142 return this . getPrivate ( '/api/v5/users/partner/if-rebate' , params ) ;
30293143 }
0 commit comments