Module: Binance::Spot::Loan

Included in:
Binance::Spot
Defined in:
lib/binance/spot/loan.rb

Overview

all loan endpoints

Instance Method Summary collapse

Instance Method Details

#get_loan_history(asset:, **kwargs) ⇒ Object

Get Crypto Loans Income History (USER_DATA)

GET /sapi/v1/loan/income

Parameters:

  • asset (String)
  • kwargs (Hash)

    a customizable set of options

Options Hash (**kwargs):

  • :type (String)
  • :startTime (Integer)
  • :endTime (Integer)
  • :limit (Integer)

    default 20, max 100

  • :recvWindow (Integer)

    The value cannot be greater than 60000

See Also:



19
20
21
22
23
# 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