Longbridge OpenAPI C++ SDK
Public Attributes | List of all members
longbridge::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< Decimal > submitted_price
 Submitted price. More...
 
std::optional< Decimal > trigger_price
 Trigger price (LIT / MIT Required) More...
 
std::optional< Decimal > limit_offset
 Limit offset amount (TSLPAMT / TSLPPCT Required) More...
 
std::optional< Decimal > trailing_amount
 Trailing amount (TSLPAMT / TSMAMT Required) More...
 
std::optional< Decimal > trailing_percent
 Trailing percent (TSLPPCT / TSMAPCT Required) More...
 
std::optional< Date > expire_date
 
std::optional< OutsideRTH > outside_rth
 Enable or disable outside regular trading hours. More...
 
std::optional< int32_t > limit_depth_level
 Limit depth level. More...
 
std::optional< int32_t > trigger_count
 Trigger count. More...
 
std::optional< Decimal > monitor_price
 Monitor price. More...
 
std::optional< std::string > remark
 Remark (Maximum 64 characters) More...
 
std::optional< std::string > client_request_id
 
std::optional< SubmitAttachedParams > attached_params
 Attached order params. More...
 
std::optional< int64_t > delayed_until
 

Detailed Description

Options for submit order request.

Member Data Documentation

◆ attached_params

std::optional<SubmitAttachedParams> longbridge::trade::SubmitOrderOptions::attached_params

Attached order params.

◆ client_request_id

std::optional<std::string> longbridge::trade::SubmitOrderOptions::client_request_id

Idempotent request ID for preventing duplicate orders. If not specified, idempotency control is skipped. The server caches this ID for 10 minutes.

◆ delayed_until

std::optional<int64_t> longbridge::trade::SubmitOrderOptions::delayed_until

Time-condition submit time (Unix timestamp in seconds). The order is held in DelayedNotReported status and only submitted at this time, which must be later than now and no more than 90 days ahead.

◆ expire_date

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

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

◆ limit_depth_level

std::optional<int32_t> longbridge::trade::SubmitOrderOptions::limit_depth_level

Limit depth level.

◆ limit_offset

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

Limit offset amount (TSLPAMT / TSLPPCT Required)

◆ monitor_price

std::optional<Decimal> longbridge::trade::SubmitOrderOptions::monitor_price

Monitor price.

◆ order_type

OrderType longbridge::trade::SubmitOrderOptions::order_type

Order type.

◆ outside_rth

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

Enable or disable outside regular trading hours.

◆ remark

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

Remark (Maximum 64 characters)

◆ side

OrderSide longbridge::trade::SubmitOrderOptions::side

Order side.

◆ submitted_price

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

Submitted price.

◆ submitted_quantity

Decimal longbridge::trade::SubmitOrderOptions::submitted_quantity

Submitted price.

◆ symbol

std::string longbridge::trade::SubmitOrderOptions::symbol

Security symbol.

◆ time_in_force

TimeInForceType longbridge::trade::SubmitOrderOptions::time_in_force

Time in force type.

◆ trailing_amount

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

Trailing amount (TSLPAMT / TSMAMT Required)

◆ trailing_percent

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

Trailing percent (TSLPPCT / TSMAPCT Required)

◆ trigger_count

std::optional<int32_t> longbridge::trade::SubmitOrderOptions::trigger_count

Trigger count.

◆ trigger_price

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

Trigger price (LIT / MIT Required)


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