Binance.Staking (binance v2.0.1)
Summary
Functions
Get Personal Left Quota of Staking Product (USER_DATA)
Get Staking Product Position (USER_DATA)
Get Staking Product List (USER_DATA)
Get Staking History (USER_DATA)
Purchase Staking Product (USER_DATA)
Redeem Staking Product (USER_DATA)
Set Auto Staking (USER_DATA)
Functions
get_staking_personal_left_quota(product, productId, opts \\ [])
@spec get_staking_personal_left_quota(any(), any(), recvWindow: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Get Personal Left Quota of Staking Product (USER_DATA)
Weight(IP): 1
Details:
- METHOD: get
- URL: /sapi/v1/staking/personalLeftQuota
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
- productId -
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000
get_staking_position(product, opts \\ [])
@spec get_staking_position(any(), recvWindow: any(), size: any(), current: any(), asset: any(), productId: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Get Staking Product Position (USER_DATA)
Weight(IP): 1
Details:
- METHOD: get
- URL: /sapi/v1/staking/position
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
Optional params:
- timestamp - timestamp
- productId -
- asset -
- current - Currently querying the page. Start from 1. Default:1
- size - Default:10, Max:100
- recvWindow - The value cannot be greater than 60000
get_staking_product_list(product, opts \\ [])
@spec get_staking_product_list(any(), recvWindow: any(), size: any(), current: any(), asset: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Get Staking Product List (USER_DATA)
Get available Staking product list.
Weight(IP): 1
Details:
- METHOD: get
- URL: /sapi/v1/staking/productList
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
Optional params:
- timestamp - timestamp
- asset -
- current - Currently querying page. Start from 1. Default:1
- size - Default:10, Max:100
- recvWindow - The value cannot be greater than 60000
get_staking_staking_record(product, txnType, opts \\ [])
@spec get_staking_staking_record(any(), any(), recvWindow: any(), size: any(), current: any(), endTime: any(), startTime: any(), asset: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Get Staking History (USER_DATA)
Weight(IP): 1
Details:
- METHOD: get
- URL: /sapi/v1/staking/stakingRecord
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
- txnType -
SUBSCRIPTION
,REDEMPTION
,INTEREST
Optional params:
- timestamp - timestamp
- asset -
- startTime -
- endTime -
- current - Currently querying the page. Start from 1. Default:1
- size - Default:10, Max:100
- recvWindow - The value cannot be greater than 60000
post_staking_purchase(product, productId, amount, opts \\ [])
@spec post_staking_purchase(any(), any(), any(), recvWindow: any(), renewable: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Purchase Staking Product (USER_DATA)
Weight(IP): 1
Details:
- METHOD: post
- URL: /sapi/v1/staking/purchase
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
- productId -
- amount -
Optional params:
- timestamp - timestamp
- renewable - true or false, default false. Active if product is
STAKING
orL_DEFI
- recvWindow - The value cannot be greater than 60000
post_staking_redeem(product, productId, opts \\ [])
@spec post_staking_redeem(any(), any(), recvWindow: any(), amount: any(), positionId: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Redeem Staking Product (USER_DATA)
Redeem Staking product. Locked staking and Locked DeFI staking belong to early redemption, redeeming in advance will result in loss of interest that you have earned.
Weight(IP): 1
Details:
- METHOD: post
- URL: /sapi/v1/staking/redeem
Mandatory params:
- product - *
STAKING
- for Locked Staking
F_DEFI
- for flexible DeFi StakingL_DEFI
- for locked DeFi Staking
- productId -
Optional params:
- timestamp - timestamp
- positionId - Mandatory if product is
STAKING
orL_DEFI
- amount - Mandatory if product is
F_DEFI
- recvWindow - The value cannot be greater than 60000
post_staking_set_auto_staking(product, positionId, renewable, opts \\ [])
@spec post_staking_set_auto_staking(any(), any(), any(), recvWindow: any(), timestamp: any() ) :: {:ok, any()} | {:error, any()}
Set Auto Staking (USER_DATA)
Set auto staking on Locked Staking or Locked DeFi Staking
Weight(IP): 1
Details:
- METHOD: post
- URL: /sapi/v1/staking/setAutoStaking
Mandatory params:
- product - *
STAKING
- for Locked Staking
L_DEFI
- for locked DeFi Staking
- positionId -
- renewable - true or false
Optional params:
- timestamp - timestamp
- recvWindow - The value cannot be greater than 60000