Module: MaxExchangeApi::PrivateV2::TradeApi
- Included in:
- MaxExchangeApi::PrivateV2Api
- Defined in:
- lib/max_exchange_api/private_v2/trade_api.rb
Instance Method Summary collapse
- #my_trades(market, timestamp: nil, from: nil, to: nil, order_by: 'desc', pagination: true, page: 1, limit: 50, offset: 0) ⇒ Object
- #my_trades_of_order(order_id, use_client_id: false) ⇒ Object
Instance Method Details
#my_trades(market, timestamp: nil, from: nil, to: nil, order_by: 'desc', pagination: true, page: 1, limit: 50, offset: 0) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/max_exchange_api/private_v2/trade_api.rb', line 11 def my_trades(market, timestamp: nil, from: nil, to: nil, order_by: 'desc', pagination: true, page: 1, limit: 50, offset: 0) send_request( :get, '/trades/my', market: market, timestamp: , from: from, to: to, order_by: order_by, pagination: pagination, page: page, limit: limit, offset: offset, ) end |
#my_trades_of_order(order_id, use_client_id: false) ⇒ Object
6 7 8 9 |
# File 'lib/max_exchange_api/private_v2/trade_api.rb', line 6 def my_trades_of_order(order_id, use_client_id: false) id_params_key = use_client_id ? :client_oid : :id send_request(:get, '/trades/my/of_order', id_params_key => order_id) end |