Class: Dtn::Lookups::Historical::TickDay
- Defined in:
- lib/dtn/lookups/historical/tick_day.rb
Overview
Tick days requests
Constant Summary collapse
- TEMPLATE =
"HTD,%<symbol>s,%<days>s,%<max_datapoints>d,%<begin_filter_time>s,%<end_filter_time>s," \ "%<data_direction>d,%<id>d,%<datapoints_per_send>d"
Constants inherited from Base
Base::DEFAULT_BEGIN_FILTER_TIME, Base::DEFAULT_DATAPOINTS_PER_SEND, Base::DEFAULT_DATA_DIRECTION, Base::DEFAULT_END_FILTER_TIME, Base::DEFAULT_MAX_DATAPOINTS
Constants included from Concerns::Validation
Concerns::Validation::DATE_FORMAT, Concerns::Validation::DATE_TIME_FORMAT, Concerns::Validation::DEFAULT_INTERVAL_TYPE, Concerns::Validation::MAX_INT16
Constants inherited from Request
Request::END_OF_MESSAGE_CHARACTERS, Request::NO_DATA_CHARACTERS, Request::PORT, Request::SYNTAX_ERROR_CHARACTERS
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#call(symbol:, days:, **options) ⇒ Object
Retrieves ticks for the previous [Days] days for the specified [Symbol].
Methods inherited from Tick
Methods inherited from Request
Methods included from Concerns::Id
Instance Method Details
#call(symbol:, days:, **options) ⇒ Object
Retrieves ticks for the previous [Days] days for the specified [Symbol].
NOTE: Unfortunately I constantly get an empty response with this and
more information about this data point needed.
Example message
HTD,[Symbol],[Days],[MaxDatapoints],[BeginFilterTime],[EndFilterTime],[DataDirection],\
[RequestID],[DatapointsPerSend]<CR><LF>
23 24 25 26 27 28 29 30 |
# File 'lib/dtn/lookups/historical/tick_day.rb', line 23 def call(symbol:, days:, **) self. = defaults(**).merge({ symbol: validate_symbol(symbol), days: validate_short_int(days) }) super end |