Class: BinanceClient::AllOrdersResponse
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- BinanceClient::AllOrdersResponse
- Defined in:
- lib/binance_client/responses/all_orders_response.rb
Instance Method Summary collapse
Methods inherited from BaseResponse
#body_code, #default_message, #used_weights
Instance Method Details
#orders ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/binance_client/responses/all_orders_response.rb', line 3 def orders body.map do |hash| Order.new({ symbol: hash["symbol"], executed_quantity: hash["executedQty"], cummulative_quote_quantity: hash["cummulativeQuoteQty"], order_id: hash["orderId"], side: hash["side"], }) end end |