Module: MaxExchangeApi::PrivateV3::MWalletApi
- Included in:
- MaxExchangeApi::PrivateV3Api
- Defined in:
- lib/max_exchange_api/private_v3/m_wallet_api.rb
Instance Method Summary collapse
- #m_wallet_ad_ratio ⇒ Object
- #m_wallet_interests(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
- #m_wallet_liquidation(sn) ⇒ Object
- #m_wallet_liquidations(timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
- #m_wallet_loan!(amount, currency) ⇒ Object
- #m_wallet_loans(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
- #m_wallet_repay!(amount, currency) ⇒ Object
- #m_wallet_repayments(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
Instance Method Details
#m_wallet_ad_ratio ⇒ Object
6 7 8 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 6 def m_wallet_ad_ratio send_request(:get, '/wallet/m/ad_ratio', {}) end |
#m_wallet_interests(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
64 65 66 67 68 69 70 71 72 73 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 64 def m_wallet_interests(currency, timestamp: nil, order_by: 'desc', limit: 50) send_request( :get, '/wallet/m/interests', currency: currency, timestamp: , order: order_by, limit: limit, ) end |
#m_wallet_liquidation(sn) ⇒ Object
60 61 62 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 60 def m_wallet_liquidation(sn) send_request(:get, '/wallet/m/liquidation', sn: sn) end |
#m_wallet_liquidations(timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
50 51 52 53 54 55 56 57 58 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 50 def m_wallet_liquidations(timestamp: nil, order_by: 'desc', limit: 50) send_request( :get, '/wallet/m/liquidations', timestamp: , order: order_by, limit: limit, ) end |
#m_wallet_loan!(amount, currency) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 10 def m_wallet_loan!(amount, currency) send_request( :post, '/wallet/m/loan', currency: currency, amount: amount, ) end |
#m_wallet_loans(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 28 def m_wallet_loans(currency, timestamp: nil, order_by: 'desc', limit: 50) send_request( :get, '/wallet/m/loans', currency: currency, timestamp: , order: order_by, limit: limit, ) end |
#m_wallet_repay!(amount, currency) ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 19 def m_wallet_repay!(amount, currency) send_request( :post, '/wallet/m/repayment', currency: currency, amount: amount, ) end |
#m_wallet_repayments(currency, timestamp: nil, order_by: 'desc', limit: 50) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/max_exchange_api/private_v3/m_wallet_api.rb', line 39 def m_wallet_repayments(currency, timestamp: nil, order_by: 'desc', limit: 50) send_request( :get, '/wallet/m/repayments', currency: currency, timestamp: , order: order_by, limit: limit, ) end |