API staking endpoints

Methods

stakingHistory(product, txnType, optionsopt)

Get Staking History (USER_DATA)

GET /sapi/v1/staking/stakingRecord

https://binance-docs.github.io/apidocs/spot/en/#get-staking-history-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
txnTypestring

SUBSCRIPTION, REDEMPTION, INTEREST

optionsobject<optional>
Properties
NameTypeAttributesDescription
assetstring<optional>
startTimenumber<optional>
endTimenumber<optional>
currentnumber<optional>

Currently querying the page. Start from 1. Default:1

sizenumber<optional>

Default:10, Max:100

recvWindownumber<optional>

The value cannot be greater than 60000

stakingProductList(product, optionsopt)

Get Staking Product List (USER_DATA)

GET /sapi/v1/staking/productList

https://binance-docs.github.io/apidocs/spot/en/#get-staking-product-list-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
optionsobject<optional>
Properties
NameTypeAttributesDescription
assetstring<optional>
currentnumber<optional>

Currently querying page. Start from 1. Default:1

sizenumber<optional>

Default:10, Max:100

recvWindownumber<optional>

The value cannot be greater than 60000

stakingProductPosition(product, optionsopt)

Get Staking Product Position (USER_DATA)

GET /sapi/v1/staking/position

https://binance-docs.github.io/apidocs/spot/en/#get-staking-product-position-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
optionsobject<optional>
Properties
NameTypeAttributesDescription
productIdstring<optional>
assetstring<optional>
currentnumber<optional>

Currently querying the page. Start from 1. Default:1

sizenumber<optional>

Default:10, Max:100

recvWindownumber<optional>

The value cannot be greater than 60000

stakingProductQuota(product, productId, optionsopt)

Get Personal Left Quota of Staking Product (USER_DATA)

GET /sapi/v1/staking/personalLeftQuota

https://binance-docs.github.io/apidocs/spot/en/#get-personal-left-quota-of-staking-product-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
productIdstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000

stakingPurchaseProduct(product, productId, amount, optionsopt)

Purchase Staking Product (USER_DATA)

POST /sapi/v1/staking/purchase

https://binance-docs.github.io/apidocs/spot/en/#purchase-staking-product-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
productIdstring
amountnumber
optionsobject<optional>
Properties
NameTypeAttributesDescription
renewablestring<optional>

true or false, default false. Active if product is STAKING or L_DEFI

recvWindownumber<optional>

The value cannot be greater than 60000

stakingRedeemProduct(product, productId, optionsopt)

Redeem Staking Product (USER_DATA)

POST /sapi/v1/staking/redeem

https://binance-docs.github.io/apidocs/spot/en/#redeem-staking-product-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * F_DEFI - for flexible DeFi Staking, * L_DEFI - for locked DeFi Staking
productIdstring
optionsobject<optional>
Properties
NameTypeAttributesDescription
positionIdstring<optional>

Mandatory if product is STAKING or L_DEFI

amountnumber<optional>

Mandatory if product is F_DEFI

recvWindownumber<optional>

The value cannot be greater than 60000

stakingSetAutoStaking(product, positionId, renewable, optionsopt)

Set Auto Staking (USER_DATA)

POST /sapi/v1/staking/setAutoStaking

https://binance-docs.github.io/apidocs/spot/en/#set-auto-staking-user_data

Parameters:
NameTypeAttributesDescription
productstring
  • STAKING - for Locked Staking, * L_DEFI - for locked DeFi Staking
positionIdstring
renewablestring

true or false

optionsobject<optional>
Properties
NameTypeAttributesDescription
recvWindownumber<optional>

The value cannot be greater than 60000