MultiversX Tracker is Live!

Stacking data on binance API

Binance

Cryptocoins Exchanges / Binance 200 Views

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.

https://www.reddit.com/r/binance/comments/k6b1r7/comment/gu21o15/?utm_source=share&utm_medium=web2x&context=3

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.

submitted by /u/Arensis
[link] [comments]
Get BONUS $200 for FREE!

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