Binance.Savings (binance v2.0.0-beta.1)

Savings Endpoints

Link to this section Summary

Functions

Get Flexible Product List (USER_DATA)

Get Flexible Product Position (USER_DATA)

Get Left Daily Purchase Quota of Flexible Product (USER_DATA)

Get Left Daily Redemption Quota of Flexible Product (USER_DATA)

Get Fixed and Activity Project List (USER_DATA)

Get Fixed/Activity Project Position (USER_DATA)

Lending Account (USER_DATA)

Purchase Fixed/Activity Project (USER_DATA)

Purchase Flexible Product (USER_DATA)

Change Fixed/Activity Position to Daily Position (USER_DATA)

Link to this section Functions

Link to this function

get_lending_daily_product_list(opts \\ [])

Specs

get_lending_daily_product_list(
  recvWindow: any(),
  size: any(),
  current: any(),
  featured: any(),
  status: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Flexible Product List (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/daily/product/list

Mandatory params:

Optional params:

  • timestamp - timestamp
  • status - Default ALL
  • featured - Default ALL
  • current - Current querying page. Start from 1. Default:1
  • size - Default:10 Max:100
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_daily_token_position(asset, opts \\ [])

Specs

get_lending_daily_token_position(any(), recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

Get Flexible Product Position (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/daily/token/position

Mandatory params:

  • asset -

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_daily_user_left_quota(productId, opts \\ [])

Specs

get_lending_daily_user_left_quota(any(), recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

Get Left Daily Purchase Quota of Flexible Product (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/daily/userLeftQuota

Mandatory params:

  • productId -

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_daily_user_redemption_quota(productId, type, opts \\ [])

Specs

get_lending_daily_user_redemption_quota(any(), any(),
  recvWindow: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Get Left Daily Redemption Quota of Flexible Product (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/daily/userRedemptionQuota

Mandatory params:

  • productId -
  • type - "FAST", "NORMAL"

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_project_list(type, opts \\ [])

Specs

get_lending_project_list(any(),
  recvWindow: any(),
  size: any(),
  current: any(),
  sortBy: any(),
  isSortAsc: any(),
  status: any(),
  asset: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Fixed and Activity Project List (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/project/list

Mandatory params:

  • type - "ACTIVITY", "CUSTOMIZED_FIXED"

Optional params:

  • timestamp - timestamp
  • asset -
  • status - Default ALL
  • isSortAsc - default "true"
  • sortBy - Default START_TIME
  • current - Current querying page. Start from 1. Default:1
  • size - Default:10 Max:100
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_project_position_list(asset, opts \\ [])

Specs

get_lending_project_position_list(any(),
  recvWindow: any(),
  status: any(),
  projectId: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Fixed/Activity Project Position (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/project/position/list

Mandatory params:

  • asset -

Optional params:

  • timestamp - timestamp
  • projectId -
  • status - Default ALL
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_union_account(opts \\ [])

Specs

get_lending_union_account(recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

Lending Account (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/union/account

Mandatory params:

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_union_interest_history(lendingType, opts \\ [])

Specs

get_lending_union_interest_history(any(),
  recvWindow: any(),
  size: any(),
  current: any(),
  endTime: any(),
  startTime: any(),
  asset: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Interest History (USER_DATA)

  • The time between startTime and endTime cannot be longer than 30 days.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/union/interestHistory

Mandatory params:

  • lendingType - * DAILY - for flexible
  • ACTIVITY - for activity
  • CUSTOMIZED_FIXED for fixed

Optional params:

  • timestamp - timestamp
  • asset -
  • startTime - UTC timestamp in ms
  • endTime - UTC timestamp in ms
  • current - Current querying page. Start from 1. Default:1
  • size - Default:10 Max:100
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_union_purchase_record(lendingType, opts \\ [])

Specs

get_lending_union_purchase_record(any(),
  recvWindow: any(),
  size: any(),
  current: any(),
  endTime: any(),
  startTime: any(),
  asset: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Purchase Record (USER_DATA)

  • The time between startTime and endTime cannot be longer than 30 days.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.

Weigh(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/union/purchaseRecord

Mandatory params:

  • lendingType - * DAILY - for flexible
  • ACTIVITY - for activity
  • CUSTOMIZED_FIXED for fixed

Optional params:

  • timestamp - timestamp
  • asset -
  • startTime - UTC timestamp in ms
  • endTime - UTC timestamp in ms
  • current - Current querying page. Start from 1. Default:1
  • size - Default:10 Max:100
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_lending_union_redemption_record(lendingType, opts \\ [])

Specs

get_lending_union_redemption_record(any(),
  recvWindow: any(),
  size: any(),
  current: any(),
  endTime: any(),
  startTime: any(),
  asset: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Redemption Record (USER_DATA)

  • The time between startTime and endTime cannot be longer than 30 days.
  • If startTime and endTime are both not sent, then the last 30 days' data will be returned.

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/lending/union/redemptionRecord

Mandatory params:

  • lendingType - * DAILY - for flexible
  • ACTIVITY - for activity
  • CUSTOMIZED_FIXED for fixed

Optional params:

  • timestamp - timestamp
  • asset -
  • startTime - UTC timestamp in ms
  • endTime - UTC timestamp in ms
  • current - Current querying page. Start from 1. Default:1
  • size - Default:10 Max:100
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_lending_customized_fixed_purchase(projectId, lot, opts \\ [])

Specs

post_lending_customized_fixed_purchase(any(), any(),
  recvWindow: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Purchase Fixed/Activity Project (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/lending/customizedFixed/purchase

Mandatory params:

  • projectId -
  • lot -

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_lending_daily_purchase(productId, amount, opts \\ [])

Specs

post_lending_daily_purchase(any(), any(), recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

Purchase Flexible Product (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/lending/daily/purchase

Mandatory params:

  • productId -
  • amount -

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_lending_daily_redeem(productId, amount, type, opts \\ [])

Specs

post_lending_daily_redeem(any(), any(), any(),
  recvWindow: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Redeem Flexible Product (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/lending/daily/redeem

Mandatory params:

  • productId -
  • amount -
  • type - "FAST", "NORMAL"

Optional params:

  • timestamp - timestamp
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_lending_position_changed(projectId, lot, opts \\ [])

Specs

post_lending_position_changed(any(), any(),
  recvWindow: any(),
  positionId: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Change Fixed/Activity Position to Daily Position (USER_DATA)

  • PositionId is mandatory parameter for fixed position.

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/lending/positionChanged

Mandatory params:

  • projectId -
  • lot -

Optional params:

  • timestamp - timestamp
  • positionId -
  • recvWindow - The value cannot be greater than 60000