Module: Binance::Spot::C2C

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

Overview

C2C endpoints

Instance Method Summary collapse

Instance Method Details

#c2c_trade_history(tradeType:, **kwargs) ⇒ Object

Get C2C Trade History (USER_DATA)

GET /sapi/v1/c2c/orderMatch/listUserOrderHistory

Parameters:

  • tradeType (String)
  • kwargs (Hash)

    a customizable set of options

Options Hash (**kwargs):

  • :startTimestamp (Integer)
  • :endTimestamp (Integer)
  • :page (Integer)
  • :rows (Integer)
  • :recvWindow (Integer)
  • :timestamp (Integer)

See Also:



20
21
22
23
24
# File 'lib/binance/spot/c2c.rb', line 20

def c2c_trade_history(tradeType:, **kwargs)
  Binance::Utils::Validation.require_param('tradeType', tradeType)

  @session.sign_request(:get, '/sapi/v1/c2c/orderMatch/listUserOrderHistory', params: kwargs.merge(tradeType: tradeType))
end