Longbridge OpenAPI C++ SDK
Public Attributes | List of all members
longbridge::grid::GridOrderDetail Struct Reference

Detail of a grid trading order. More...

#include <types.hpp>

Public Attributes

std::string order_id
 Grid master order ID. More...
 
std::string symbol
 Security symbol (e.g. 700.HK) More...
 
std::string stock_name
 Stock name. More...
 
std::string status
 Order status. More...
 
std::string grid_status
 Grid running status. More...
 
std::string suspend_reason
 Suspend reason, if any. More...
 
std::string sleeping_reason
 Sleeping reason, if any. More...
 
std::optional< Decimalsubmitted_base_price
 Submitted base price. More...
 
std::optional< Decimalcurrent_base_price
 Current base price. More...
 
std::optional< Decimalupper_limit_price
 Upper price bound. More...
 
std::optional< Decimallower_limit_price
 Lower price bound. More...
 
TriggerPriceType trigger_price_type
 Trigger price type. More...
 
std::optional< Decimaltrigger_spread_up
 Upward trigger spread. More...
 
std::optional< Decimaltrigger_spread_down
 Downward trigger spread. More...
 
std::optional< Decimaltrigger_percent_up
 Upward trigger percent. More...
 
std::optional< Decimaltrigger_percent_down
 Downward trigger percent. More...
 
std::optional< Decimalpullback_percent
 Pullback percent. More...
 
std::optional< Decimalpullback_spread
 Pullback spread. More...
 
std::optional< Decimalrebound_percent
 Rebound percent. More...
 
std::optional< Decimalrebound_spread
 Rebound spread. More...
 
bool multiple_trigger
 Whether a single grid level may trigger multiple times. More...
 
GridTimeInForce time_in_force
 Time in force. More...
 
std::optional< Decimaltrigger_quantity
 Quantity per trigger. More...
 
std::optional< Decimaltrigger_sell_quantity
 Quantity per sell trigger. More...
 
std::optional< Decimaltrigger_buy_quantity
 Quantity per buy trigger. More...
 
std::optional< Decimalupper_limit_quantity
 Quantity handled at the upper bound. More...
 
std::optional< Decimallower_limit_quantity
 Quantity handled at the lower bound. More...
 
GridLimitEvent upper_limit_event
 Action at the upper bound. More...
 
GridLimitEvent lower_limit_event
 Action at the lower bound. More...
 
int32_t trigger_sell_depth
 Sell-side order-book depth. More...
 
int32_t trigger_buy_depth
 Buy-side order-book depth. More...
 
std::optional< int64_t > created_at
 Created time (unix timestamp) More...
 
std::optional< int64_t > updated_at
 Last updated time (unix timestamp) More...
 
std::string settlement_currency
 Settlement currency. More...
 
std::optional< int64_t > expire_time
 Expiry time (unix timestamp) More...
 
std::string gtd
 Expiry date (YYYY-MM-DD, GTD) More...
 
std::vector< GridOrderSubOrdergrid_sub_orders
 Triggered sub-orders. More...
 
bool sub_has_more
 Whether there are more sub-orders to page. More...
 
std::vector< GridOrderHistorygrid_order_history
 Lifecycle history entries. More...
 
bool history_has_more
 Whether there are more history entries to page. More...
 
bool support_shortsell
 Whether short selling is allowed. More...
 
int32_t rth
 Regular trading hours flag. More...
 
std::string grid_order_type_up
 Sell-side grid order type (GMO / GLO / GTG) More...
 
std::string grid_order_type_down
 Buy-side grid order type (GMO / GLO / GTG) More...
 

Detailed Description

Detail of a grid trading order.

Member Data Documentation

◆ created_at

std::optional<int64_t> longbridge::grid::GridOrderDetail::created_at

Created time (unix timestamp)

◆ current_base_price

std::optional<Decimal> longbridge::grid::GridOrderDetail::current_base_price

Current base price.

◆ expire_time

std::optional<int64_t> longbridge::grid::GridOrderDetail::expire_time

Expiry time (unix timestamp)

◆ grid_order_history

std::vector<GridOrderHistory> longbridge::grid::GridOrderDetail::grid_order_history

Lifecycle history entries.

◆ grid_order_type_down

std::string longbridge::grid::GridOrderDetail::grid_order_type_down

Buy-side grid order type (GMO / GLO / GTG)

◆ grid_order_type_up

std::string longbridge::grid::GridOrderDetail::grid_order_type_up

Sell-side grid order type (GMO / GLO / GTG)

◆ grid_status

std::string longbridge::grid::GridOrderDetail::grid_status

Grid running status.

◆ grid_sub_orders

std::vector<GridOrderSubOrder> longbridge::grid::GridOrderDetail::grid_sub_orders

Triggered sub-orders.

◆ gtd

std::string longbridge::grid::GridOrderDetail::gtd

Expiry date (YYYY-MM-DD, GTD)

◆ history_has_more

bool longbridge::grid::GridOrderDetail::history_has_more

Whether there are more history entries to page.

◆ lower_limit_event

GridLimitEvent longbridge::grid::GridOrderDetail::lower_limit_event

Action at the lower bound.

◆ lower_limit_price

std::optional<Decimal> longbridge::grid::GridOrderDetail::lower_limit_price

Lower price bound.

◆ lower_limit_quantity

std::optional<Decimal> longbridge::grid::GridOrderDetail::lower_limit_quantity

Quantity handled at the lower bound.

◆ multiple_trigger

bool longbridge::grid::GridOrderDetail::multiple_trigger

Whether a single grid level may trigger multiple times.

◆ order_id

std::string longbridge::grid::GridOrderDetail::order_id

Grid master order ID.

◆ pullback_percent

std::optional<Decimal> longbridge::grid::GridOrderDetail::pullback_percent

Pullback percent.

◆ pullback_spread

std::optional<Decimal> longbridge::grid::GridOrderDetail::pullback_spread

Pullback spread.

◆ rebound_percent

std::optional<Decimal> longbridge::grid::GridOrderDetail::rebound_percent

Rebound percent.

◆ rebound_spread

std::optional<Decimal> longbridge::grid::GridOrderDetail::rebound_spread

Rebound spread.

◆ rth

int32_t longbridge::grid::GridOrderDetail::rth

Regular trading hours flag.

◆ settlement_currency

std::string longbridge::grid::GridOrderDetail::settlement_currency

Settlement currency.

◆ sleeping_reason

std::string longbridge::grid::GridOrderDetail::sleeping_reason

Sleeping reason, if any.

◆ status

std::string longbridge::grid::GridOrderDetail::status

Order status.

◆ stock_name

std::string longbridge::grid::GridOrderDetail::stock_name

Stock name.

◆ sub_has_more

bool longbridge::grid::GridOrderDetail::sub_has_more

Whether there are more sub-orders to page.

◆ submitted_base_price

std::optional<Decimal> longbridge::grid::GridOrderDetail::submitted_base_price

Submitted base price.

◆ support_shortsell

bool longbridge::grid::GridOrderDetail::support_shortsell

Whether short selling is allowed.

◆ suspend_reason

std::string longbridge::grid::GridOrderDetail::suspend_reason

Suspend reason, if any.

◆ symbol

std::string longbridge::grid::GridOrderDetail::symbol

Security symbol (e.g. 700.HK)

◆ time_in_force

GridTimeInForce longbridge::grid::GridOrderDetail::time_in_force

Time in force.

◆ trigger_buy_depth

int32_t longbridge::grid::GridOrderDetail::trigger_buy_depth

Buy-side order-book depth.

◆ trigger_buy_quantity

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_buy_quantity

Quantity per buy trigger.

◆ trigger_percent_down

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_percent_down

Downward trigger percent.

◆ trigger_percent_up

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_percent_up

Upward trigger percent.

◆ trigger_price_type

TriggerPriceType longbridge::grid::GridOrderDetail::trigger_price_type

Trigger price type.

◆ trigger_quantity

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_quantity

Quantity per trigger.

◆ trigger_sell_depth

int32_t longbridge::grid::GridOrderDetail::trigger_sell_depth

Sell-side order-book depth.

◆ trigger_sell_quantity

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_sell_quantity

Quantity per sell trigger.

◆ trigger_spread_down

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_spread_down

Downward trigger spread.

◆ trigger_spread_up

std::optional<Decimal> longbridge::grid::GridOrderDetail::trigger_spread_up

Upward trigger spread.

◆ updated_at

std::optional<int64_t> longbridge::grid::GridOrderDetail::updated_at

Last updated time (unix timestamp)

◆ upper_limit_event

GridLimitEvent longbridge::grid::GridOrderDetail::upper_limit_event

Action at the upper bound.

◆ upper_limit_price

std::optional<Decimal> longbridge::grid::GridOrderDetail::upper_limit_price

Upper price bound.

◆ upper_limit_quantity

std::optional<Decimal> longbridge::grid::GridOrderDetail::upper_limit_quantity

Quantity handled at the upper bound.


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