@@ -3174,6 +3174,88 @@ def margin_stream_close(self, listenKey):
31743174 }
31753175 return self ._request_margin_api ('delete' , 'userDataStream' , signed = True , data = params )
31763176
3177+ # Lending Endpoints
3178+
3179+ def get_lending_product_list (self , ** params ):
3180+ """Query Sub-account List.
3181+
3182+ https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-list-user_data
3183+
3184+ """
3185+ return self ._request_margin_api ('get' , 'lending/daily/product/list ' , signed = True , data = params )
3186+
3187+ def get_lending_daily_quota_left (self , ** params ):
3188+ """Get Left Daily Purchase Quota of Flexible Product.
3189+
3190+ https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-purchase-quota-of-flexible-product-user_data
3191+
3192+ """
3193+ return self ._request_margin_api ('get' , 'lending/daily/userLeftQuota' , signed = True , data = params )
3194+
3195+ def purchase_lending_product (self , ** params ):
3196+ """Purchase Flexible Product
3197+
3198+ https://binance-docs.github.io/apidocs/spot/en/#purchase-flexible-product-user_data
3199+
3200+ """
3201+ return self ._request_margin_api ('post' , 'lending/daily/purchase' , signed = True , data = params )
3202+
3203+ def get_lending_daily_redemption_quota (self , ** params ):
3204+ """Get Left Daily Redemption Quota of Flexible Product
3205+
3206+ https://binance-docs.github.io/apidocs/spot/en/#get-left-daily-redemption-quota-of-flexible-product-user_data
3207+
3208+ """
3209+ return self ._request_margin_api ('get' , 'lending/daily/userRedemptionQuota' , signed = True , data = params )
3210+
3211+ def redeem_lending_product (self , ** params ):
3212+ """Redeem Flexible Product
3213+
3214+ https://binance-docs.github.io/apidocs/spot/en/#redeem-flexible-product-user_data
3215+
3216+ """
3217+ return self ._request_margin_api ('post' , 'lending/daily/redeem' , signed = True , data = params )
3218+
3219+ def get_lending_position (self , ** params ):
3220+ """Get Flexible Product Position
3221+
3222+ https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data
3223+
3224+ """
3225+ return self ._request_margin_api ('get' , 'lending/daily/token/position' , signed = True , data = params )
3226+
3227+ def get_lending_account (self , ** params ):
3228+ """Get Lending Account Details
3229+
3230+ https://binance-docs.github.io/apidocs/spot/en/#lending-account-user_data
3231+
3232+ """
3233+ return self ._request_margin_api ('get' , 'lending/union/account' , signed = True , data = params )
3234+
3235+ def get_lending_purchase_history (self , ** params ):
3236+ """Get Lending Purchase History
3237+
3238+ https://binance-docs.github.io/apidocs/spot/en/#get-purchase-record-user_data
3239+
3240+ """
3241+ return self ._request_margin_api ('get' , 'lending/union/purchaseRecord' , signed = True , data = params )
3242+
3243+ def get_lending_redemption_history (self , ** params ):
3244+ """Get Lending Redemption History
3245+
3246+ https://binance-docs.github.io/apidocs/spot/en/#get-redemption-record-user_data
3247+
3248+ """
3249+ return self ._request_margin_api ('get' , 'lending/union/redemptionRecord' , signed = True , data = params )
3250+
3251+ def get_lending_interest_history (self , ** params ):
3252+ """Get Lending Interest History
3253+
3254+ https://binance-docs.github.io/apidocs/spot/en/#get-interest-history-user_data-2
3255+
3256+ """
3257+ return self ._request_margin_api ('get' , 'lending/union/interestHistory' , signed = True , data = params )
3258+
31773259 # Sub Accounts
31783260
31793261 def get_sub_account_list (self , ** params ):
0 commit comments