Module: MaxExchangeApi::PrivateV2::DepositApi
- Included in:
- MaxExchangeApi::PrivateV2Api
- Defined in:
- lib/max_exchange_api/private_v2/deposit_api.rb
Instance Method Summary collapse
- #create_deposit_addresses!(currency) ⇒ Object
- #deposit(transaction_id) ⇒ Object
- #deposit_addresses(currency: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object
- #deposits(currency, from: nil, to: nil, state: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object
- #max_rewards_yesterday ⇒ Object
- #rewards(reward_type: nil, currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object
- #yields(currency: nil, from: nil, to: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object
Instance Method Details
#create_deposit_addresses!(currency) ⇒ Object
37 38 39 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 37 def create_deposit_addresses!(currency) send_request(:post, '/deposit_addresses', currency: currency) end |
#deposit(transaction_id) ⇒ Object
21 22 23 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 21 def deposit(transaction_id) send_request(:get, '/deposit', txid: transaction_id) end |
#deposit_addresses(currency: nil, pagination: nil, page: 1, limit: 50, offset: 0) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 25 def deposit_addresses(currency: nil, pagination: nil, page: 1, limit: 50, offset: 0) send_request( :get, '/deposit_addresses', currency: currency, pagination: pagination, page: page, limit: limit, offset: offset, ) end |
#deposits(currency, from: nil, to: nil, state: 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/deposit_api.rb', line 6 def deposits(currency, from: nil, to: nil, state: nil, pagination: nil, page: 1, limit: 50, offset: 0) send_request( :get, '/deposits', currency: currency, from: from, to: to, state: state, pagination: pagination, page: page, limit: limit, offset: offset, ) end |
#max_rewards_yesterday ⇒ Object
70 71 72 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 70 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
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 41 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
56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/max_exchange_api/private_v2/deposit_api.rb', line 56 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 |