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

Order. More...

#include <types.hpp>

Public Attributes

std::string order_id
 Order ID. More...
 
OrderStatus status
 Order status. More...
 
std::string stock_name
 Stock name. More...
 
Decimal quantity
 Submitted quantity. More...
 
Decimal executed_quantity
 Executed quantity. More...
 
std::optional< Decimalprice
 Submitted price. More...
 
std::optional< Decimalexecuted_price
 Executed price. More...
 
int64_t submitted_at
 Submitted time. More...
 
OrderSide side
 Order side. More...
 
std::string symbol
 Security code. More...
 
OrderType order_type
 Order type. More...
 
std::optional< Decimallast_done
 Last done. More...
 
std::optional< Decimaltrigger_price
 LIT / MIT Order Trigger Price More...
 
std::string msg
 Rejected Message or remark. More...
 
OrderTag tag
 Order tag. More...
 
TimeInForceType time_in_force
 Time in force type. More...
 
std::optional< Dateexpire_date
 Long term order expire date. More...
 
std::optional< int64_t > updated_at
 Last updated time. More...
 
std::optional< int64_t > trigger_at
 Conditional order trigger time. More...
 
std::optional< Decimaltrailing_amount
 TSMAMT / TSLPAMT order trailing amount More...
 
std::optional< Decimaltrailing_percent
 TSMPCT / TSLPPCT order trailing percent More...
 
std::optional< Decimallimit_offset
 TSLPAMT / TSLPPCT order limit offset amount More...
 
std::optional< TriggerStatustrigger_status
 Conditional order trigger status. More...
 
std::string currency
 Currency. More...
 
std::optional< OutsideRTHoutside_rth
 Enable or disable outside regular trading hours. More...
 
std::string remark
 Remark. More...
 

Detailed Description

Order.

Member Data Documentation

◆ currency

std::string longport::trade::Order::currency

Currency.

◆ executed_price

std::optional<Decimal> longport::trade::Order::executed_price

Executed price.

◆ executed_quantity

Decimal longport::trade::Order::executed_quantity

Executed quantity.

◆ expire_date

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

Long term order expire date.

◆ last_done

std::optional<Decimal> longport::trade::Order::last_done

Last done.

◆ limit_offset

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

TSLPAMT / TSLPPCT order limit offset amount

◆ msg

std::string longport::trade::Order::msg

Rejected Message or remark.

◆ order_id

std::string longport::trade::Order::order_id

Order ID.

◆ order_type

OrderType longport::trade::Order::order_type

Order type.

◆ outside_rth

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

Enable or disable outside regular trading hours.

◆ price

std::optional<Decimal> longport::trade::Order::price

Submitted price.

◆ quantity

Decimal longport::trade::Order::quantity

Submitted quantity.

◆ remark

std::string longport::trade::Order::remark

Remark.

◆ side

OrderSide longport::trade::Order::side

Order side.

◆ status

OrderStatus longport::trade::Order::status

Order status.

◆ stock_name

std::string longport::trade::Order::stock_name

Stock name.

◆ submitted_at

int64_t longport::trade::Order::submitted_at

Submitted time.

◆ symbol

std::string longport::trade::Order::symbol

Security code.

◆ tag

OrderTag longport::trade::Order::tag

Order tag.

◆ time_in_force

TimeInForceType longport::trade::Order::time_in_force

Time in force type.

◆ trailing_amount

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

TSMAMT / TSLPAMT order trailing amount

◆ trailing_percent

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

TSMPCT / TSLPPCT order trailing percent

◆ trigger_at

std::optional<int64_t> longport::trade::Order::trigger_at

Conditional order trigger time.

◆ trigger_price

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

LIT / MIT Order Trigger Price

◆ trigger_status

std::optional<TriggerStatus> longport::trade::Order::trigger_status

Conditional order trigger status.

◆ updated_at

std::optional<int64_t> longport::trade::Order::updated_at

Last updated time.


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