LUCIT-Systems-and-Development / unicorn-binance-rest-api

A Python SDK by LUCIT to use the Binance REST API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, us, tr) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-rest-api.docs.lucit.tech
Other
61 stars 17 forks source link

Add staking endpoints #50

Open TBMoonwalker opened 1 year ago

TBMoonwalker commented 1 year ago

Describe the solution you'd like.

Please add the rest api endpoints for /sapi/v1/staking/*

oliver-zehentleitner commented 1 year ago

Will be done next week!

oliver-zehentleitner commented 1 year ago

Sorry, this came in between: https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/issues/319

Will continue here after finishing that...

oliver-zehentleitner commented 4 months ago

I was just about to add it, but what you want has since been disabled again: https://binance-docs.github.io/apidocs/spot/en/#change-log

According to the announcement, Binance Earn disable the following Staking SAPI endpoints at 2024-01-09 06:00 (UTC):

GET /sapi/v1/staking/productList
POST /sapi/v1/staking/purchase
POST /sapi/v1/staking/redeem
GET /sapi/v1/staking/position
GET /sapi/v1/staking/stakingRecord
POST /sapi/v1/staking/setAutoStaking
GET /sapi/v1/staking/personalLeftQuota

In the Binance docs I find these staking endpoints, are these the ones you need?

https://binance-docs.github.io/apidocs/spot/en/#staking-endpoints https://binance-docs.github.io/apidocs/spot/en/#eth-staking-account-user_data https://binance-docs.github.io/apidocs/spot/en/#get-eth-staking-history-user_data https://binance-docs.github.io/apidocs/spot/en/#eth-staking-account-v2-user_data https://binance-docs.github.io/apidocs/spot/en/#get-current-eth-staking-quota-user_data https://binance-docs.github.io/apidocs/spot/en/#subscribe-eth-staking-v2-trade https://binance-docs.github.io/apidocs/spot/en/#subscribe-eth-staking-trade https://binance-docs.github.io/apidocs/spot/en/#redeem-eth-trade