Class: Xtb::Http::TradesHistory
- Defined in:
- lib/xtb/http/trades_history.rb
Overview
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(end_time, start_time) ⇒ TradesHistory
constructor
A new instance of TradesHistory.
Methods inherited from Command
Constructor Details
#initialize(end_time, start_time) ⇒ TradesHistory
Returns a new instance of TradesHistory.
9 10 11 12 13 14 |
# File 'lib/xtb/http/trades_history.rb', line 9 def initialize(end_time, start_time) @end_time = end_time @start_time = start_time super() end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'lib/xtb/http/trades_history.rb', line 16 def call super.return_data.map { |record| Xtb::TradeRecord.new(**record) } end |