Module: MaxExchangeApi::PrivateV3::WithdrawApi

Included in:
MaxExchangeApi::PrivateV3Api
Defined in:
lib/max_exchange_api/private_v3/withdraw_api.rb

Instance Method Summary collapse

Instance Method Details

#create_twd_withdraw!(amount) ⇒ Object



30
31
32
# File 'lib/max_exchange_api/private_v3/withdraw_api.rb', line 30

def create_twd_withdraw!(amount)
  send_request(:post, '/withdrawal/twd', amount: amount)
end

#create_withdraw!(withdraw_address_uuid, amount) ⇒ Object



26
27
28
# File 'lib/max_exchange_api/private_v3/withdraw_api.rb', line 26

def create_withdraw!(withdraw_address_uuid, amount)
  send_request(:post, '/withdrawal', withdraw_address_uuid: withdraw_address_uuid, amount: amount)
end

#withdraw(uuid:) ⇒ Object



22
23
24
# File 'lib/max_exchange_api/private_v3/withdraw_api.rb', line 22

def withdraw(uuid:)
  send_request(:get, '/withdrawal', uuid: uuid)
end

#withdraw_addresses(currency, limit: 50, offset: 0) ⇒ Object



6
7
8
# File 'lib/max_exchange_api/private_v3/withdraw_api.rb', line 6

def withdraw_addresses(currency, limit: 50, offset: 0)
  send_request(:get, '/withdraw_addresses', currency: currency, limit: limit, offset: offset)
end

#withdraws(currency: nil, state: nil, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/max_exchange_api/private_v3/withdraw_api.rb', line 10

def withdraws(currency: nil, state: nil, timestamp: nil, order_by: 'desc', limit: 50)
  send_request(
    :get,
    '/withdrawals',
    currency: currency,
    state: state,
    timestamp: timestamp,
    order: order_by,
    limit: limit,
  )
end