I have been looking for a long time for an automated way to read how much of each coin I am stacking both flexible and locked. Until now, the only resource I found was this comment of a guy that prepared this in a moment.
This code solves the problem of checking flexible stacking, but not locked stacking. To check locked stacking you need a 'projectId' of the product you are stacking, but I didn't found a way to find what 'projectId' are available. Looking today at the API site, i saw that they included new endoints for stacking.
New endpoints for Staking:
GET /sapi/v1/staking/productListto get Staking product list
POST /sapi/v1/staking/purchaseto stake product
POST /sapi/v1/staking/redeemto redeem product
GET /sapi/v1/staking/positionto get Staking product holding position
GET /sapi/v1/staking/stakingRecordto inquiry Staking history records
POST /sapi/v1/staking/setAutoStakingto set Auto Staking function
GET /sapi/v1/staking/personalLeftQuotato inquiry Staking left quota
There is a new endpoint for adquiring info on stacking products, including the 'productId' parameter that would solve the problem of checking locked stacking balances.
https://binance-docs.github.io/apidocs/spot/en/#staking-endpoints
However, I have limited coding knowledge, and usually interact with binance with the methods on the python binance library, but these endpoints were not implemented yet. Does anybody know a good resource to learn how to interact with the API?, I couldn't find anything that could help me code a simple function to retrieve stacking product data.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments