Module: Binance::Spot::Fiat

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

Overview

Fiat endpoints

Instance Method Summary collapse

Instance Method Details

#fiat_deposit_withdraw_history(transactionType:, **kwargs) ⇒ Object

Get Fiat Deposit/Withdraw History (USER_DATA)

GET /sapi/v1/fiat/orders

Parameters:

  • transactionType (String)

    0-deposit,1-withdraw

  • kwargs (Hash)

Options Hash (**kwargs):

  • :beginTime (Integer)

    If beginTime and endTime are not sent, the recent 30-day data will be returned.

  • :endTime (Integer)

    If beginTime and endTime are not sent, the recent 30-day data will be returned.

  • :page (Integer)

    default 1

  • :rows (Integer)

    default 100, max 500

  • :recvWindow (Integer)

    The value cannot be greater than 60000

See Also:



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

def fiat_deposit_withdraw_history(transactionType:, **kwargs)
  Binance::Utils::Validation.require_param('transactionType', transactionType)

  @session.sign_request(:get, '/sapi/v1/fiat/orders', params: kwargs.merge(
    transactionType: transactionType
  ))
end

#fiat_payment_history(transactionType:, **kwargs) ⇒ Object

Get Fiat Payments History (USER_DATA)

GET /sapi/v1/fiat/payments

Parameters:

  • transactionType (String)

    0-buy,1-sell

  • kwargs (Hash)

Options Hash (**kwargs):

  • :beginTime (Integer)

    If beginTime and endTime are not sent, the recent 30-day data will be returned.

  • :endTime (Integer)

    If beginTime and endTime are not sent, the recent 30-day data will be returned.

  • :page (Integer)

    default 1

  • :rows (Integer)

    default 100, max 500

  • :recvWindow (Integer)

    The value cannot be greater than 60000

See Also:



40
41
42
43
44
45
46
# File 'lib/binance/spot/fiat.rb', line 40

def fiat_payment_history(transactionType:, **kwargs)
  Binance::Utils::Validation.require_param('transactionType', transactionType)

  @session.sign_request(:get, '/sapi/v1/fiat/payments', params: kwargs.merge(
    transactionType: transactionType
  ))
end