Longbridge OpenAPI C++ SDK
Classes | Enumerations
longbridge::grid Namespace Reference

Classes

class  GridContext
 Grid trading management context. More...
 
struct  GridTrigger
 
struct  GridTradeRule
 
struct  SubmitGridOrderOptions
 Options for submit grid trading order request. More...
 
struct  ReplaceGridOrderOptions
 Options for replace grid trading order request. More...
 
struct  GetGridOrdersOptions
 Options for get grid trading orders (list) request. More...
 
struct  GetGridOrdersByIdsOptions
 Options for query grid trading orders by IDs request. More...
 
struct  GetGridOrderDetailOptions
 Options for get grid trading order detail request. More...
 
struct  GetGridTriggerHistoryOptions
 Options for get grid trading trigger history request. More...
 
struct  SubmitGridOrderResponse
 Response for submit grid trading order request. More...
 
struct  GridOrder
 A grid trading order (element of the list / by-ids responses). More...
 
struct  GridOrderSubOrder
 A triggered sub-order carried in the grid order detail. More...
 
struct  GridOrderHistory
 A grid order lifecycle-history entry carried in the grid order detail. More...
 
struct  GridOrderDetail
 Detail of a grid trading order. More...
 
struct  TriggerOrder
 A grid trigger-history entry (one triggered order). More...
 
struct  GridBidSize
 A price-step (bid-size) rule entry from the symbol-info response. More...
 
struct  GridChannelInfo
 Channel / authorization info nested in the symbol-info response. More...
 
struct  GridSymbolInfo
 Security (symbol) info used to build a grid order. More...
 
struct  GridOrdersResponse
 Response for get grid trading orders (list) request. More...
 
struct  GridTriggerHistoryResponse
 Response for get grid trading trigger history request. More...
 

Enumerations

enum class  TriggerPriceType : int32_t { Unknown = 0 , Spread = 1 , Percent = 2 }
 How grid trigger thresholds are interpreted (wire: int32_t). More...
 
enum class  GridTimeInForce : int32_t { Day = 0 , GoodTilCanceled = 1 , GoodTilDate = 6 }
 
enum class  GridLimitEvent : int32_t { Unknown = 0 , Ignore = 1 , CloseAtLast = 2 }
 Action taken when a grid boundary is reached (wire: int32_t). More...
 

Enumeration Type Documentation

◆ GridLimitEvent

enum longbridge::grid::GridLimitEvent : int32_t
strong

Action taken when a grid boundary is reached (wire: int32_t).

Enumerator
Unknown 

Unknown / unset.

Ignore 

Ignore — keep the grid running.

CloseAtLast 

Close the position at the last price.

◆ GridTimeInForce

enum longbridge::grid::GridTimeInForce : int32_t
strong

Time in force for a grid order (wire: int32_t). Values other than the named ones are preserved verbatim in the underlying int32_t.

Enumerator
Day 

Day order.

GoodTilCanceled 

Good-til-canceled.

GoodTilDate 

Good-til-date.

◆ TriggerPriceType

enum longbridge::grid::TriggerPriceType : int32_t
strong

How grid trigger thresholds are interpreted (wire: int32_t).

Enumerator
Unknown 

Unknown / unset.

Spread 

Trigger by absolute price spread.

Percent 

Trigger by percent.