module Binance::Spot::Blvt

def get_redeem_record(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#query-redemption-record-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) --
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :id (Integer) --
  • :tokenName (String) --

Parameters:
  • kwargs (Hash) --
def get_redeem_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/redeem/record', params: kwargs)
end

def get_subscribe_record(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#query-subscription-record-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :limit (Integer) --
  • :endTime (Integer) --
  • :startTime (Integer) --
  • :id (Integer) --
  • :tokenName (String) --

Parameters:
  • kwargs (Hash) --
def get_subscribe_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/subscribe/record', params: kwargs)
end

def redeem(tokenName:, amount:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#redeem-blvt-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • amount (Float) --
  • tokenName (String) --
def redeem(tokenName:, amount:, **kwargs)
  Binance::Utils::Validation.require_param('tokenName', tokenName)
  Binance::Utils::Validation.require_param('amount', amount)
  @session.sign_request(:post, '/sapi/v1/blvt/redeem', params: kwargs.merge(
    tokenName: tokenName,
    amount: amount
  ))
end

def subscribe(tokenName:, cost:, **kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#subscribe-blvt-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000

Parameters:
  • kwargs (Hash) --
  • cost (Float) --
  • tokenName (String) --
def subscribe(tokenName:, cost:, **kwargs)
  Binance::Utils::Validation.require_param('tokenName', tokenName)
  Binance::Utils::Validation.require_param('cost', cost)
  @session.sign_request(:post, '/sapi/v1/blvt/subscribe', params: kwargs.merge(
    tokenName: tokenName,
    cost: cost
  ))
end

def token_info(tokenName: nil)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#get-blvt-info-market_data -

Parameters:
  • tokenName (String) --
def token_info(tokenName: nil)
  @session.public_request(
    path: '/sapi/v1/blvt/tokenInfo',
    params: { tokenName: tokenName }
  )
end

def user_limit(**kwargs)

Other tags:
    See: https://binance-docs.github.io/apidocs/spot/en/#get-blvt-user-limit-info-user_data -

Options Hash: (**kwargs)
  • :recvWindow (Integer) -- The value cannot be greater than 60000
  • :tokenName (String) --

Parameters:
  • kwargs (Hash) --
def user_limit(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/userLimit', params: kwargs)
end