From d8dac9189fb11249ae912b998b4455d89a66660b Mon Sep 17 00:00:00 2001 From: Martin Pelaez <109408009+MartoMcfly@users.noreply.github.com> Date: Fri, 26 Jan 2024 19:14:40 +0100 Subject: [PATCH 1/2] Update main-client.ts Replaced some deprecated endpoints for updated flexible savings ones. (old endpoints returned "This endpoint has been deprecated, please remove as soon as possible." --- src/main-client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main-client.ts b/src/main-client.ts index 192a3998..cd92b4b2 100644 --- a/src/main-client.ts +++ b/src/main-client.ts @@ -1153,23 +1153,23 @@ export class MainClient extends BaseRestClient { getFlexibleSavingProducts( params: FlexibleSavingBasicParams, ): Promise { - return this.getPrivate(`sapi/v1/lending/daily/product/list`, params); + return this.getPrivate(`sapi/v1/simple-earn/flexible/list`, params); } purchaseFlexibleProduct( params: PurchaseFlexibleProductParams, ): Promise { - return this.postPrivate(`sapi/v1/lending/daily/purchase`, params); + return this.postPrivate(`sapi/v1/simple-earn/flexible/subscribe`, params); } redeemFlexibleProduct(params: RedeemFlexibleProductParams): Promise<{}> { - return this.postPrivate(`sapi/v1/lending/daily/redeem`, params); + return this.postPrivate(`sapi/v1/simple-earn/flexible/redeem`, params); } getFlexibleProductPosition(params: { asset?: string; }): Promise { - return this.getPrivate(`sapi/v1/lending/daily/token/position`, params); + return this.getPrivate(`sapi/v1/simple-earn/flexible/position`, params); } getLeftDailyPurchaseQuotaFlexibleProduct(params: { From 73db07644a91ef6c44c28847bfb76224e3e28180 Mon Sep 17 00:00:00 2001 From: Martin Pelaez <109408009+MartoMcfly@users.noreply.github.com> Date: Fri, 26 Jan 2024 19:59:59 +0100 Subject: [PATCH 2/2] Update package.json Added new Version for easier update :) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 083ed2af..97774c03 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "binance", - "version": "2.9.3", + "version": "2.9.4", "description": "Node.js & JavaScript SDK for Binance REST APIs & WebSockets, with TypeScript & end-to-end tests.", "main": "lib/index.js", "types": "lib/index.d.ts",