Binance.Blvt (binance v2.0.1)

Binance Leveraged Tokens Endpoints

Summary

Functions

Query Redemption Record (USER_DATA)

Query Subscription Record (USER_DATA)

Get BLVT Info (MARKET_DATA)

Get BLVT User Limit Info (USER_DATA)

Functions

Link to this function

get_blvt_redeem_record(opts \\ [])

@spec get_blvt_redeem_record(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  id: any(),
  tokenName: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Query Redemption Record (USER_DATA)

  • Only the data of the latest 90 days is available

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/blvt/redeem/record

Mandatory params:

Optional params:

  • timestamp - timestamp
  • tokenName - BTCDOWN, BTCUP
  • id -
  • startTime - UTC timestamp in ms
  • endTime - UTC timestamp in ms
  • limit - default 1000, max 1000
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_blvt_subscribe_record(opts \\ [])

@spec get_blvt_subscribe_record(
  recvWindow: any(),
  limit: any(),
  endTime: any(),
  startTime: any(),
  id: any(),
  tokenName: any(),
  timestamp: any()
) :: {:ok, any()} | {:error, any()}

Query Subscription Record (USER_DATA)

  • Only the data of the latest 90 days is available

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/blvt/subscribe/record

Mandatory params:

Optional params:

  • timestamp - timestamp
  • tokenName - BTCDOWN, BTCUP
  • id -
  • startTime - UTC timestamp in ms
  • endTime - UTC timestamp in ms
  • limit - Default 500; max 1000.
  • recvWindow - The value cannot be greater than 60000
Link to this function

get_blvt_token_info(opts \\ [])

@spec get_blvt_token_info([{:tokenName, any()}]) :: {:ok, any()} | {:error, any()}

Get BLVT Info (MARKET_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/blvt/tokenInfo

Mandatory params:

Optional params:

  • tokenName - BTCDOWN, BTCUP
Link to this function

get_blvt_user_limit(opts \\ [])

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

Get BLVT User Limit Info (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: get
  • URL: /sapi/v1/blvt/userLimit

Mandatory params:

Optional params:

  • timestamp - timestamp
  • tokenName - BTCDOWN, BTCUP
  • recvWindow - The value cannot be greater than 60000
Link to this function

post_blvt_redeem(tokenName, amount, opts \\ [])

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

Redeem BLVT (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/blvt/redeem

Mandatory params:

  • tokenName - BTCDOWN, BTCUP
  • amount -

Optional params:

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

post_blvt_subscribe(tokenName, cost, opts \\ [])

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

Subscribe BLVT (USER_DATA)

Weight(IP): 1

Details:

  • METHOD: post
  • URL: /sapi/v1/blvt/subscribe

Mandatory params:

  • tokenName - BTCDOWN, BTCUP
  • cost - Spot balance

Optional params:

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