module Binance::Spot::Blvt

BLVT endpoints @see binance-docs.github.io/apidocs/spot/en/#blvt-endpoints

Public Instance Methods

get_redeem_record(**kwargs) click to toggle source

Query Redemption Record (USER_DATA)

GET /sapi/v1/blvt/redeem/record

@param kwargs [Hash] @option kwargs [String] :tokenName @option kwargs [Integer] :id @option kwargs [Integer] :startTime @option kwargs [Integer] :endTime @option kwargs [Integer] :limit @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#query-redemption-record-user_data

# File lib/binance/spot/blvt.rb, line 87
def get_redeem_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/redeem/record', params: kwargs)
end
get_subscribe_record(**kwargs) click to toggle source

Query Subscription Record (USER_DATA)

GET /sapi/v1/blvt/subscribe/record

@param kwargs [Hash] @option kwargs [String] :tokenName @option kwargs [Integer] :id @option kwargs [Integer] :startTime @option kwargs [Integer] :endTime @option kwargs [Integer] :limit @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#query-subscription-record-user_data

# File lib/binance/spot/blvt.rb, line 52
def get_subscribe_record(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/subscribe/record', params: kwargs)
end
redeem(tokenName:, amount:, **kwargs) click to toggle source

Redeem BLVT (USER_DATA)

POST /sapi/v1/blvt/redeem

@param tokenName [String] @param amount [Float] @param kwargs [Hash] @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#redeem-blvt-user_data

# File lib/binance/spot/blvt.rb, line 65
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
subscribe(tokenName:, cost:, **kwargs) click to toggle source

Subscribe BLVT (USER_DATA)

POST /sapi/v1/blvt/subscribe

@param tokenName [String] @param cost [Float] @param kwargs [Hash] @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#subscribe-blvt-user_data

# File lib/binance/spot/blvt.rb, line 30
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
token_info(tokenName: nil) click to toggle source

Get BLVT Info (MARKET_DATA)

GET /sapi/v1/blvt/tokenInfo

@param tokenName [String] @see binance-docs.github.io/apidocs/spot/en/#get-blvt-info-market_data

# File lib/binance/spot/blvt.rb, line 14
def token_info(tokenName: nil)
  @session.public_request(
    path: '/sapi/v1/blvt/tokenInfo',
    params: { tokenName: tokenName }
  )
end
user_limit(**kwargs) click to toggle source

Get BLVT User Limit Info (USER_DATA)

GET /sapi/v1/blvt/userLimit

@param kwargs [Hash] @option kwargs [String] :tokenName @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#get-blvt-user-limit-info-user_data

# File lib/binance/spot/blvt.rb, line 99
def user_limit(**kwargs)
  @session.sign_request(:get, '/sapi/v1/blvt/userLimit', params: kwargs)
end