-
Couldn't load subscription status.
- Fork 14
[DXFC-376] Add an example with the ability to specify from-time and to-time arguments #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| void listener(const dxf_snapshot_data_ptr_t snapshot_data, void *user_data) { | ||
| size_t i; | ||
| size_t records_count = snapshot_data->records_count; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable (records_count) is never used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| "-------------------------------------------------------------------------------\n" | ||
| "Usage: SnapshotConsoleSample <server address> <event type> <symbol>\n" | ||
| " [order_source] [" TIME_PARAM_SHORT_TAG " <DD-MM-YYYY>] " | ||
| " [order_source] [" FROM_TIME_PARAM_SHORT_TAG " <DD-MM-YYYY>] [" TO_TIME_PARAM_SHORT_TAG " <DD-MM-YYYY>]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This time format does not correspond to the format specified below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
| " " TIMEOUT_TAG " <timeout> - Sets the program timeout in seconds (default = 604800,\n" | ||
| " i.e a week)\n" | ||
| "Example: demo.dxfeed.com:7300 ORDER IBM NTV -t 01-01-1970 -o 30\n\n" | ||
| "Example: demo.dxfeed.com:7300 ORDER IBM NTV -from-time 01-01-1970T00:00:00 -o 30\n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should specify that user must don't use -from-time -to-time with "indexed only" (indexed but not time series) events (Order, Spread Order, Series).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| #define DATE_TIME_BUF_SIZE 4 | ||
| /* | ||
| * Parse date string in format 'DD-MM-YYYY' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DD-MM-YYYYTHH:mm:ss
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.