JKorf / Binance.Net

A C# .netstandard client library for the Binance REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Binance.Net/
MIT License
1.02k stars 420 forks source link

Incorrect URl for flexible product positions list #1305

Open headshote opened 9 months ago

headshote commented 9 months ago

https://github.com/JKorf/Binance.Net/blob/3cb3db58404533e4c4a0183204f8dd5ca70175b0/Binance.Net/Clients/GeneralApi/BinanceRestClientGeneralApiSavings.cs#L27C5-L27C5

According to https://binance-docs.github.io/apidocs/spot/en/#get-flexible-product-position-user_data the endpoint should be "/sapi/v1/simple-earn/flexible/position"

A bunch of other flexible earn product endpoints are incorrect as well, they all are under "simple-earn/flexible", like: simple-earn/flexible/subscribe simple-earn/flexible/redeem etc.

NOT under "lending/daily/" which was removed according to https://binance-docs.github.io/apidocs/spot/en/#change-log: 2023-06-22 New endpoints for Simple Earn. Delete endpoint for Lending: GET /sapi/v1/lending/daily/product/list GET /sapi/v1/lending/daily/userLeftQuota POST /sapi/v1/lending/daily/purchase GET /sapi/v1/lending/daily/userRedemptionQuota POST /sapi/v1/lending/daily/redeem GET /sapi/v1/lending/daily/token/position GET /sapi/v1/lending/union/account GET /sapi/v1/lending/union/purchaseRecord GET /sapi/v1/lending/union/redemptionRecord GET /sapi/v1/lending/union/interestHistory

Would have been nice to have a way to override these urls in my code, because your wrapper lib is very convenient otherwise, but resorting to reflection to fix some strings isn't nice :(.

JozefGula commented 4 months ago

I have the same problem with this endpoint. Binance returns this error:

Message: "This endpoint has been deprecated, please remove as soon as possible.", Code: "405"