Binance.Futures (binance v2.0.1)

Summary

Functions

Adjust Cross-Collateral LTV History (USER_DATA)

Cross-Collateral Borrow History (USER_DATA)

Cross-Collateral Interest History (USER_DATA)

Cross-Collateral Liquidation History (USER_DATA)

Cross-Collateral Repayment History (USER_DATA)

Cross-Collateral Wallet V2 (USER_DATA)

Get Future Account Transaction History List (USER_DATA)

New Future Account Transfer (USER_DATA)

Functions

Link to this function

get_futures_loan_adjust_collateral_history(opts \\ [])

@spec get_futures_loan_adjust_collateral_history(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  collateralCoin: any(),
  loanCoin: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Adjust Cross-Collateral LTV History (USER_DATA)

Get Adjust Cross-Collateral LTV History.

Details:

  • METHOD: get
  • URL: /sapi/v1/futures/loan/adjustCollateral/history

Mandatory params:

Optional params:

  • timestamp - timestamp
  • loanCoin -
  • collateralCoin -
  • startTime -
  • endTime -
  • limit - default 500, max 1000
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_futures_loan_borrow_history(opts \\ [])

@spec get_futures_loan_borrow_history(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  coin: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Cross-Collateral Borrow History (USER_DATA)

Weight(IP): 10

Details:

  • METHOD: get
  • URL: /sapi/v1/futures/loan/borrow/history

Mandatory params:

Optional params:

  • timestamp - timestamp
  • coin -
  • startTime -
  • endTime -
  • limit - default 500, max 1000
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_futures_loan_interest_history(opts \\ [])

@spec get_futures_loan_interest_history(
  recvWindow: any(),
  limit: any(),
  current: any(),
  endTime: any(),
  startTime: any(),
  collateralCoin: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Cross-Collateral Interest History (USER_DATA)

Details:

  • METHOD: get
  • URL: /sapi/v1/futures/loan/interestHistory

Mandatory params:

Optional params:

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

get_futures_loan_liquidation_history(opts \\ [])

@spec get_futures_loan_liquidation_history(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  collateralCoin: any(),
  loanCoin: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Cross-Collateral Liquidation History (USER_DATA)

Get Cross-Collateral Liquidation History.

Details:

  • METHOD: get
  • URL: /sapi/v1/futures/loan/liquidationHistory

Mandatory params:

Optional params:

  • timestamp - timestamp
  • loanCoin -
  • collateralCoin -
  • startTime -
  • endTime -
  • limit - default 500, max 1000
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_futures_loan_repay_history(opts \\ [])

@spec get_futures_loan_repay_history(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  coin: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Cross-Collateral Repayment History (USER_DATA)

Get Cross-Collateral Repayment History.

Details:

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

Mandatory params:

Optional params:

  • timestamp - timestamp
  • coin -
  • startTime -
  • endTime -
  • limit - default 500, max 1000
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_futures_loan_wallet(opts \\ [])

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

Cross-Collateral Wallet V2 (USER_DATA)

Get Cross-Collateral Wallet V2.

Details:

  • METHOD: get
  • URL: /sapi/v2/futures/loan/wallet

Mandatory params:

Optional params:

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

get_futures_transfer(asset, startTime, opts \\ [])

@spec get_futures_transfer(any(), any(),
  recvWindow: any(),
  size: any(),
  current: any(),
  endTime: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Get Future Account Transaction History List (USER_DATA)

Weight(IP): 10

Details:

  • METHOD: get
  • URL: /sapi/v1/futures/transfer

Mandatory params:

  • asset -
  • startTime -

Optional params:

  • timestamp - timestamp
  • endTime -
  • current - Currently 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_futures_transfer(asset, amount, type, opts \\ [])

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

New Future Account Transfer (USER_DATA)

Execute transfer between spot account and futures account.

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/futures/transfer

Mandatory params:

  • asset - The asset being transferred, e.g., USDT
  • amount - The amount to be transferred
  • type - 1: transfer from spot account to USDT-Ⓜ futures account. 2: transfer from USDT-Ⓜ futures account to spot account. 3: transfer from spot account to COIN-Ⓜ futures account. 4: transfer from COIN-Ⓜ futures account to spot account.

Optional params:

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