Binance.VipLoans (binance v2.0.1)

Summary

Functions

Check Locked Value of VIP Collateral Account (USER_DATA)

Get Collateral Asset Data (USER_DATA)

Get Loanable Assets Data (USER_DATA)

Get VIP Loan Ongoing Orders (USER_DATA)

Get VIP Loan Repayment History (USER_DATA)

Query Application Status (USER_DATA)

Functions

Link to this function

get_loan_vip_collateral_account(opts \\ [])

@spec get_loan_vip_collateral_account(
  recvWindow: any(),
  collateralAccountId: any(),
  orderId: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Check Locked Value of VIP Collateral Account (USER_DATA)

  • If startTime and endTime are not sent, the recent 7-day data will be returned.
  • The max interval between startTime and endTime is 30 days.

Weight(UID): 6000

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/collateral/account

Mandatory params:

Optional params:

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

get_loan_vip_collateral_data(opts \\ [])

@spec get_loan_vip_collateral_data(
  recvWindow: any(),
  collateralCoin: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Get Collateral Asset Data (USER_DATA)

Get Collateral Asset Data

Weight(IP): 400

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/collateral/data

Mandatory params:

Optional params:

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

get_loan_vip_loanable_data(opts \\ [])

@spec get_loan_vip_loanable_data(
  recvWindow: any(),
  vipLevel: any(),
  loanCoin: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Get Loanable Assets Data (USER_DATA)

Get interest rate and borrow limit of loanable assets. The borrow limit is shown in USD value.

Weight(IP): 400

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/loanable/data

Mandatory params:

Optional params:

  • timestamp - timestamp
  • loanCoin -
  • vipLevel - default:user's vip level
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_loan_vip_ongoing_orders(opts \\ [])

@spec get_loan_vip_ongoing_orders(
  recvWindow: any(),
  current: any(),
  collateralCoin: any(),
  loanCoin: any(),
  collateralAccountId: any(),
  orderId: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get VIP Loan Ongoing Orders (USER_DATA)

  • If startTime and endTime are not sent, the recent 7-day data will be returned.
  • The max interval between startTime and endTime is 30 days.

Weight(UID): 6000

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/ongoing/orders

Mandatory params:

Optional params:

  • timestamp - timestamp
  • orderId -
  • collateralAccountId -
  • loanCoin -
  • collateralCoin -
  • current - Currently querying page. Start from 1, Default:1, Max: 1000.
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_loan_vip_repay_history(opts \\ [])

@spec get_loan_vip_repay_history(
  recvWindow: any(),
  limit: any(),
  current: any(),
  endTime: any(),
  startTime: any(),
  loanCoin: any(),
  orderId: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get VIP Loan Repayment History (USER_DATA)

  • If startTime and endTime are not sent, the recent 7-day data will be returned.
  • The max interval between startTime and endTime is 30 days.

Weight(UID): 6000

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/repay/history

Mandatory params:

Optional params:

  • timestamp - timestamp
  • orderId -
  • loanCoin -
  • startTime -
  • endTime -
  • current - Currently querying page. Start from 1, Default:1, Max: 1000.
  • limit - Default: 10, Max: 100
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_loan_vip_request_data(opts \\ [])

@spec get_loan_vip_request_data(
  recvWindow: any(),
  limit: any(),
  current: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

Query Application Status (USER_DATA)

Weight(UID): 400

Details:

  • METHOD: get
  • URL: /sapi/v1/loan/vip/request/data

Mandatory params:

Optional params:

  • timestamp - timestamp
  • current - Currently querying page. Start from 1, Default:1, Max: 1000
  • limit - Default: 10, Max: 100
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_loan_vip_borrow(loanAccountId, loanCoin, loanAmount, collateralAccountId, collateralCoin, loanTerm, opts \\ [])

@spec post_loan_vip_borrow(any(), any(), any(), any(), any(), any(),
  recvWindow: any(),
  timestamp: any()
) ::
  {:ok, any()} | {:error, any()}

VIP Loan Borrow (TRADE)

VIP loan is available for VIP users only. loanAccountId refer to loan receiving account Only master account applications are supported loanAccountId and collateralAccountId under same master account

Weight(UID): 6000

Details:

  • METHOD: post
  • URL: /sapi/v1/loan/vip/borrow

Mandatory params:

  • loanAccountId -
  • loanCoin -
  • loanAmount -
  • collateralAccountId - Multiple split by ,
  • collateralCoin - Multiple split by ,
  • loanTerm - 30/60 days

Optional params:

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

post_loan_vip_renew(orderId, loanTerm, opts \\ [])

@spec post_loan_vip_renew(any(), any(), recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

VIP Loan Renew (TRADE)

VIP loan is available for VIP users only.

Weight(UID): 6000

Details:

  • METHOD: post
  • URL: /sapi/v1/loan/vip/renew

Mandatory params:

  • orderId -
  • loanTerm - 30/60 days

Optional params:

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

post_loan_vip_repay(orderId, amount, opts \\ [])

@spec post_loan_vip_repay(any(), any(), recvWindow: any(), timestamp: any()) ::
  {:ok, any()} | {:error, any()}

VIP Loan Repay (TRADE)

  • If startTime and endTime are not sent, the recent 7-day data will be returned.
  • The max interval between startTime and endTime is 30 days.

Weight(UID): 6000

Details:

  • METHOD: post
  • URL: /sapi/v1/loan/vip/repay

Mandatory params:

  • orderId -
  • amount -

Optional params:

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