Module: MaxExchangeApi::PrivateV2::RewardApi

Included in:
MaxExchangeApi::PrivateV2Api
Defined in:
lib/max_exchange_api/private_v2/reward_api.rb

Instance Method Summary collapse

Instance Method Details

#max_rewards_yesterdayObject



35
36
37
# File 'lib/max_exchange_api/private_v2/reward_api.rb', line 35

def max_rewards_yesterday
  send_request(:get, '/max_rewards/yesterday', {})
end

#rewards(reward_type: nil, currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/max_exchange_api/private_v2/reward_api.rb', line 6

def rewards(reward_type: nil, currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0)
  path = reward_type ? "/rewards/#{reward_type}" : '/rewards'
  send_request(
    :get,
    path,
    currency: currency,
    from: from,
    to: to,
    pagination: pagination,
    page: page,
    limit: limit,
    offset: offset,
  )
end

#yields(currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/max_exchange_api/private_v2/reward_api.rb', line 21

def yields(currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0)
  send_request(
    :get,
    '/yields',
    currency: currency,
    from: from,
    to: to,
    pagination: pagination,
    page: page,
    limit: limit,
    offset: offset,
  )
end