algotradelib 0.0.0.9000
C++ header-only library for algorithmic trading
Loading...
Searching...
No Matches
algotradelib::OrderHistoryQuery Struct Reference

The filter for an order-history inquiry. More...

#include <algotradelib/src/core/types.hpp>

Public Attributes

std::optional< Date > from_
 The first date to include; required where BrokerCaps::history_requires_range.
std::optional< Date > to_
 The last date to include.
std::optional< std::string > symbol_
 Only this symbol, where the broker supports the filter.
std::optional< std::string > cursor_
 A previous page's next_cursor_, passed back unchanged.
std::optional< int > limit_
 The most rows to return, where the broker supports a limit.

Detailed Description

The filter for an order-history inquiry.

A filter the broker cannot apply is refused with ErrorCategory::INVALID_ARGUMENT before any I/O, never silently dropped.

Definition at line 2325 of file types.hpp.

Member Data Documentation

◆ cursor_

std::optional<std::string> algotradelib::OrderHistoryQuery::cursor_

A previous page's next_cursor_, passed back unchanged.

Definition at line 2333 of file types.hpp.

Referenced by algotradelib::live::SessionSource< Session, Journal, MarketData >::read_order_list().

◆ from_

std::optional<Date> algotradelib::OrderHistoryQuery::from_

The first date to include; required where BrokerCaps::history_requires_range.

Definition at line 2327 of file types.hpp.

◆ limit_

std::optional<int> algotradelib::OrderHistoryQuery::limit_

The most rows to return, where the broker supports a limit.

Definition at line 2335 of file types.hpp.

Referenced by algotradelib::live::SessionSource< Session, Journal, MarketData >::read_order_list().

◆ symbol_

std::optional<std::string> algotradelib::OrderHistoryQuery::symbol_

Only this symbol, where the broker supports the filter.

Definition at line 2331 of file types.hpp.

◆ to_

std::optional<Date> algotradelib::OrderHistoryQuery::to_

The last date to include.

Definition at line 2329 of file types.hpp.


The documentation for this struct was generated from the following file: