Module: Binance::Spot::Convert

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

Overview

Convert endpoints

Instance Method Summary collapse

Instance Method Details

#convert_trade_flow(startTime:, endTime:, **kwargs) ⇒ Object

Get Convert Trade History (USER_DATA)

GET /sapi/v1/convert/tradeFlow

Parameters:

  • startTime (Integer)
  • endTime (Integer)
  • kwargs (Hash)

Options Hash (**kwargs):

  • :limit (Integer)

    default 100, max 1000

  • :recvWindow (Integer)

    The value cannot be greater than 60000

See Also:



18
19
20
21
22
23
24
25
26
# File 'lib/binance/spot/convert.rb', line 18

def convert_trade_flow(startTime:, endTime:, **kwargs)
  Binance::Utils::Validation.require_param('startTime', startTime)
  Binance::Utils::Validation.require_param('endTime', endTime)

  @session.sign_request(:get, '/sapi/v1/convert/tradeFlow', params: kwargs.merge(
    startTime: startTime,
    endTime: endTime
  ))
end