LongPort OpenAPI C++ SDK
Public Attributes | List of all members
longport::trade::SubmitOrderOptions Struct Reference

Options for submit order request. More...

#include <types.hpp>

Public Attributes

std::string symbol
 Security symbol. More...
 
OrderType order_type
 Order type. More...
 
OrderSide side
 Order side. More...
 
Decimal submitted_quantity
 Submitted price. More...
 
TimeInForceType time_in_force
 Time in force type. More...
 
std::optional< Decimalsubmitted_price
 Submitted price. More...
 
std::optional< Decimaltrigger_price
 Trigger price (LIT / MIT Required) More...
 
std::optional< Decimallimit_offset
 Limit offset amount (TSLPAMT / TSLPPCT Required) More...
 
std::optional< Decimaltrailing_amount
 Trailing amount (TSLPAMT / TSMAMT Required) More...
 
std::optional< Decimaltrailing_percent
 Trailing percent (TSLPPCT / TSMAPCT Required) More...
 
std::optional< Dateexpire_date
 
std::optional< OutsideRTHoutside_rth
 Enable or disable outside regular trading hours. More...
 
std::optional< std::string > remark
 Remark (Maximum 64 characters) More...
 

Detailed Description

Options for submit order request.

Member Data Documentation

◆ expire_date

std::optional<Date> longport::trade::SubmitOrderOptions::expire_date

Long term order expire date (Required when time_in_force is GoodTilDate)

◆ limit_offset

std::optional<Decimal> longport::trade::SubmitOrderOptions::limit_offset

Limit offset amount (TSLPAMT / TSLPPCT Required)

◆ order_type

OrderType longport::trade::SubmitOrderOptions::order_type

Order type.

◆ outside_rth

std::optional<OutsideRTH> longport::trade::SubmitOrderOptions::outside_rth

Enable or disable outside regular trading hours.

◆ remark

std::optional<std::string> longport::trade::SubmitOrderOptions::remark

Remark (Maximum 64 characters)

◆ side

OrderSide longport::trade::SubmitOrderOptions::side

Order side.

◆ submitted_price

std::optional<Decimal> longport::trade::SubmitOrderOptions::submitted_price

Submitted price.

◆ submitted_quantity

Decimal longport::trade::SubmitOrderOptions::submitted_quantity

Submitted price.

◆ symbol

std::string longport::trade::SubmitOrderOptions::symbol

Security symbol.

◆ time_in_force

TimeInForceType longport::trade::SubmitOrderOptions::time_in_force

Time in force type.

◆ trailing_amount

std::optional<Decimal> longport::trade::SubmitOrderOptions::trailing_amount

Trailing amount (TSLPAMT / TSMAMT Required)

◆ trailing_percent

std::optional<Decimal> longport::trade::SubmitOrderOptions::trailing_percent

Trailing percent (TSLPPCT / TSMAPCT Required)

◆ trigger_price

std::optional<Decimal> longport::trade::SubmitOrderOptions::trigger_price

Trigger price (LIT / MIT Required)


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