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

An amendment of a Toss order: a new price, and for a Korean order a new quantity. More...

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

Public Attributes

std::string order_id_
 Toss's order id.
OrderType type_ {OrderType::LIMIT}
 The order type it should have.
std::optional< Decimal64 > quantity_
 The new quantity: required for a Korean order, empty for a US one.
std::optional< Decimal64 > price_
 The new price.
bool confirm_high_value_ {false}
 Confirms a high-value order, which Toss otherwise refuses.

Detailed Description

An amendment of a Toss order: a new price, and for a Korean order a new quantity.

quantity_ is required for a Korean order and must be empty for a US order (whose quantity cannot change); it is sent as given.

Definition at line 78 of file client.hpp.

Member Data Documentation

◆ confirm_high_value_

bool algotradelib::tossinvest::TossAmendment::confirm_high_value_ {false}

Confirms a high-value order, which Toss otherwise refuses.

Definition at line 88 of file client.hpp.

◆ order_id_

std::string algotradelib::tossinvest::TossAmendment::order_id_

◆ price_

std::optional<Decimal64> algotradelib::tossinvest::TossAmendment::price_

The new price.

Definition at line 86 of file client.hpp.

◆ quantity_

std::optional<Decimal64> algotradelib::tossinvest::TossAmendment::quantity_

The new quantity: required for a Korean order, empty for a US one.

Definition at line 84 of file client.hpp.

◆ type_

OrderType algotradelib::tossinvest::TossAmendment::type_ {OrderType::LIMIT}

The order type it should have.

Definition at line 82 of file client.hpp.


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