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

A Toss order-listing query. More...

#include <algotradelib/src/brokers/tossinvest/client.hpp>

Public Attributes

std::int64_t account_sequence_ {0}
 The account (TossAccount::sequence_).
TossOrderScope scope_ {TossOrderScope::OPEN}
 Open or closed orders.
std::optional< std::string > symbol_
 Only this symbol, if set.
std::optional< Date > from_
 The first order date to include (Korean date; any scope).
std::optional< Date > to_
 The last order date to include; before from_ is refused.
std::optional< std::string > cursor_
 The cursor from a previous page (OrderPage::next_cursor_); ignored for OPEN.
std::optional< int > limit_
 The most rows to return, 1 to 100 (outside that range is refused, even for OPEN); not sent for OPEN.

Detailed Description

A Toss order-listing query.

For OPEN, Toss returns all matching open orders at once (cursor_ and limit_ are not sent). Only orders placed as limit, market or closing-auction limit orders are listed; orders of other types placed outside the API are not.

Definition at line 55 of file client.hpp.

Member Data Documentation

◆ account_sequence_

std::int64_t algotradelib::tossinvest::TossOrderQuery::account_sequence_ {0}

The account (TossAccount::sequence_).

Definition at line 57 of file client.hpp.

◆ cursor_

std::optional<std::string> algotradelib::tossinvest::TossOrderQuery::cursor_

The cursor from a previous page (OrderPage::next_cursor_); ignored for OPEN.

Definition at line 67 of file client.hpp.

◆ from_

std::optional<Date> algotradelib::tossinvest::TossOrderQuery::from_

The first order date to include (Korean date; any scope).

Definition at line 63 of file client.hpp.

◆ limit_

std::optional<int> algotradelib::tossinvest::TossOrderQuery::limit_

The most rows to return, 1 to 100 (outside that range is refused, even for OPEN); not sent for OPEN.

Definition at line 69 of file client.hpp.

◆ scope_

TossOrderScope algotradelib::tossinvest::TossOrderQuery::scope_ {TossOrderScope::OPEN}

Open or closed orders.

Definition at line 59 of file client.hpp.

◆ symbol_

std::optional<std::string> algotradelib::tossinvest::TossOrderQuery::symbol_

Only this symbol, if set.

Definition at line 61 of file client.hpp.

◆ to_

std::optional<Date> algotradelib::tossinvest::TossOrderQuery::to_

The last order date to include; before from_ is refused.

Definition at line 65 of file client.hpp.


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