module Binance::Spot::Loan

all loan endpoints @see binance-docs.github.io/apidocs/spot/en/#crypto-loans-endpoints

Public Instance Methods

get_loan_history(asset:, **kwargs) click to toggle source

Get Crypto Loans Income History (USER_DATA)

GET /sapi/v1/loan/income

@param asset [String] @option kwargs [String] :type @option kwargs [Integer] :startTime @option kwargs [Integer] :endTime @option kwargs [Integer] :limit default 20, max 100 @option kwargs [Integer] :recvWindow The value cannot be greater than 60000 @see binance-docs.github.io/apidocs/spot/en/#get-crypto-loans-income-history-user_data

# File lib/binance/spot/loan.rb, line 19
def get_loan_history(asset:, **kwargs)
  Binance::Utils::Validation.require_param('asset', asset)

  @session.sign_request(:get, '/sapi/v1/loan/income', params: kwargs.merge(asset: asset))
end