78 inline SubFlags(uint8_t value) { value_ = value; }
80 inline operator uint8_t()
const {
return value_; }
84 return SubFlags(value_ | other.value_);
89 value_ |= other.value_;
95 return SubFlags(value_ & other.value_);
100 value_ &= other.value_;
106 return value_ == other.value_;
111 return (value_ & other.value_) > 0;
834 std::optional<std::string>
name;
1294 std::vector<ShortPositionsItem>
data;
1349 std::vector<OptionVolumeDailyStat>
stats;
1756 std::optional<std::vector<OrderStatus>>
status;
1773 std::optional<std::vector<OrderStatus>>
status;
2437 std::vector<BrokerHoldingEntry>
buy;
2438 std::vector<BrokerHoldingEntry>
sell;
2465 std::vector<BrokerHoldingDetailItem>
list;
2481 std::vector<BrokerHoldingDailyItem>
list;
2649 namespace fundamental {
2820 std::optional<ValuationMetricData>
pe;
2821 std::optional<ValuationMetricData>
pb;
2822 std::optional<ValuationMetricData>
ps;
2835 std::optional<ValuationMetricData>
pe;
2836 std::optional<ValuationMetricData>
pb;
2837 std::optional<ValuationMetricData>
ps;
3058 std::vector<IndustryValuationItem>
list;
3076 std::optional<ValuationDist>
pe;
3077 std::optional<ValuationDist>
pb;
3078 std::optional<ValuationDist>
ps;
3247 std::vector<InstitutionRatingViewItem>
elist;
3329 std::optional<SnapshotForecastMetric>
fo_eps;
3377 std::vector<ValuationComparisonItem>
list;
3444 std::vector<AssetAllocationGroup>
info;
3652 namespace sharelist {
Definition: decimal.hpp:13
Subscription flags.
Definition: types.hpp:73
bool operator==(const SubFlags &other) const
Definition: types.hpp:104
SubFlags(uint8_t value)
Definition: types.hpp:78
SubFlags & operator|=(const SubFlags &other)
Definition: types.hpp:87
SubFlags operator&(const SubFlags &other) const
Definition: types.hpp:93
bool contains(const SubFlags &other) const
Definition: types.hpp:109
SubFlags operator|(const SubFlags &other) const
Definition: types.hpp:82
SubFlags & operator&=(const SubFlags &other)
Definition: types.hpp:98
ConversationStatus
Final run status of a conversation.
Definition: types.hpp:3862
@ Interrupted
The run is paused, waiting for AgentContext::continue_conversation.
@ Succeeded
The run completed successfully.
@ Stopped
The run was stopped.
ConversationStreamEventKind
Definition: types.hpp:4306
@ HumanInteractionRequired
@ Message
An incremental piece of the answer; message is populated.
@ ContextCompressFinished
@ ThinkingFinished
The reasoning phase is over; thinking_finished is populated.
@ ChatStarted
The run has started; chat_started is populated.
DCAStatus
DCA plan status.
Definition: types.hpp:3517
DCAFrequency
DCA investment frequency.
Definition: types.hpp:3508
InstitutionRecommend
Institutional analyst recommendation.
Definition: types.hpp:2653
ElementType
ETF asset allocation element type.
Definition: types.hpp:3382
WarrantSortBy
Warrant sort by.
Definition: types.hpp:1047
@ LeverageRatio
Leverage ratio.
@ LowerStrikePrice
Lower strike price.
@ EffectiveLeverage
Effective leverage.
@ ConversionRatio
Conversion ratio.
@ ItmOtm
In/out of the bound.
@ StrikePrice
Strike price.
@ BalancePoint
Breakeven point.
@ ToCallPrice
Price interval from the call price.
@ ChangeValue
Change value.
@ ImpliedVolatility
Implied volatility.
@ Delta
Greek value Delta.
@ OutstandingRatio
Outstanding ratio.
@ OutstandingQuantity
Outstanding quantity.
@ UpperStrikePrice
Upper strike price.
TradeSessions
Trade sessions.
Definition: types.hpp:1206
SecuritiesUpdateMode
Securities update mode.
Definition: types.hpp:810
OptionDirection
Option direction.
Definition: types.hpp:467
Period
Candlestick period.
Definition: types.hpp:131
@ Min45
Forty-Five Minutes.
TradeSession
Trade session.
Definition: types.hpp:185
SecurityBoard
Security board.
Definition: types.hpp:270
@ STI
Singapore Straits Index.
@ USSector
US Industry Board.
@ HKPreIPO
HK PreIPO Security.
@ SHSTAR
SH Science and Technology Innovation Board.
@ SZMainNonConnect
SZ Main Board(Non Connect)
@ HKSector
HK Industry Board.
@ SZGEMNonConnect
SZ Gem Board(Non Connect)
@ SZMainConnect
SZ Main Board(Connect)
@ SHMainNonConnect
SH Main Board(Non Connect)
@ SHMainConnect
SH Main Board(Connect)
@ SZGEMConnect
SZ Gem Board(Connect)
@ USOptionS
US Sepecial Option.
@ SGSector
SG Industry Board.
@ HKEquity
Hong Kong Equity Securities.
@ USDJI
Dow Jones Industrial Average.
@ VIXIndex
CBOE Volatility Index.
@ CNSector
CN Industry Board.
FilterWarrantInOutBoundsType
Filter warrant in/out of the bounds type.
Definition: types.hpp:1109
TradeStatus
Trade status.
Definition: types.hpp:379
@ PrepareList
Papare List.
@ ToBeOpened
To Be Opened.
@ SplitStockHalts
Split Stock Halts.
@ WarrantPrepareList
Warrant To BeListed.
AdjustType
Adjust type.
Definition: types.hpp:692
TradeDirection
Trade direction.
Definition: types.hpp:522
WarrantType
Warrant type.
Definition: types.hpp:587
Granularity
Data granularity.
Definition: types.hpp:1230
@ Unknown
Unknown.
Definition: types.hpp:1232
@ Monthly
Monthly.
Definition: types.hpp:1238
@ Weekly
Weekly.
Definition: types.hpp:1236
@ Daily
Daily.
Definition: types.hpp:1234
SecurityListCategory
Security list category.
Definition: types.hpp:1184
WarrantStatus
Warrant status.
Definition: types.hpp:1118
@ PrepareList
Prepare List.
CalcIndex
Calc index.
Definition: types.hpp:866
@ OutstandingQty
Outstanding quantity.
@ TenDayChangeRate
Ten days change ratio.
@ LeverageRatio
Leverage ratio.
@ LowerStrikePrice
Lower bound price.
@ EffectiveLeverage
Effective leverage.
@ ConversionRatio
Conversion ratio.
@ WarrantDelta
Warrant delta.
@ DividendRatioTtm
Dividend ratio (TTM)
@ ItmOtm
In/out of the bound.
@ CapitalFlow
Capital flow.
@ YtdChangeRate
Year-to-date change ratio.
@ FiveDayChangeRate
Five days change ratio.
@ StrikePrice
Strike price.
@ BalancePoint
Breakeven point.
@ ToCallPrice
Price interval from the call price.
@ TotalMarketValue
Total market value.
@ ChangeValue
Change value.
@ HalfYearChangeRate
Half year change ratio.
@ TurnoverRate
Turnover rate.
@ ImpliedVolatility
Implied volatility.
@ OutstandingRatio
Outstanding ratio.
@ FiveMinutesChangeRate
Five minutes change ratio.
@ UpperStrikePrice
Upper bound price.
@ VolumeRatio
Volume ratio.
@ OpenInterest
Open interest.
SortOrderType
Sort order type.
Definition: types.hpp:1038
OptionType
Option type.
Definition: types.hpp:456
FilterWarrantExpiryDate
Filter warrant expiry date type.
Definition: types.hpp:1096
@ Between_6_12
6 - 12 months
@ Between_3_6
3 - 6 months
@ GT_12
Greater than 12 months.
@ LT_3
Less than 3 months.
OrderTag
Order tag.
Definition: types.hpp:1505
@ LongTerm
Long term Order.
CashFlowDirection
Cash flow direction.
Definition: types.hpp:1917
OutsideRTH
Enable or disable outside regular trading hours.
Definition: types.hpp:1544
@ RTHOnly
Regular trading hour only.
@ OptionPreMarket
Overnight option.
TriggerStatus
Trigger status.
Definition: types.hpp:1531
TopicType
Topic type.
Definition: types.hpp:1358
@ Private
Private notification for trade.
BalanceType
Balance type.
Definition: types.hpp:1928
DeductionStatus
Deduction status.
Definition: types.hpp:2087
AttachedOrderType
Attached order type.
Definition: types.hpp:1559
@ ProfitTaker
Take profit.
OrderSide
Order side.
Definition: types.hpp:1461
CommissionFreeStatus
Commission-free Status.
Definition: types.hpp:2077
ChargeCategoryCode
Charge category code.
Definition: types.hpp:2097
OrderStatus
Order status.
Definition: types.hpp:1420
@ PartialWithdrawal
Partial Withdrawal.
@ ReplacedNotReported
Not reported (Replaced Order)
@ PendingCancel
Pending Cancel.
@ WaitToReplace
Wait To Replace.
@ PartialFilled
Partial Filled.
@ PendingReplace
Pending Replace.
@ VarietiesNotReported
Not reported (Conditional Order)
@ NotReported
Not reported.
@ WaitToCancel
Wait To Cancel.
@ ProtectedNotReported
Not reported (Protected Order)
OrderType
Order type.
Definition: types.hpp:1472
@ TSLPAMT
Trailing Limit If Touched (Trailing Amount)
@ ALO
At-auction Limit Order.
@ SLO
Special Limit Order.
@ TSMAMT
Trailing Market If Touched (Trailing Amount)
@ ELO
Enhanced Limit Order.
@ TSLPPCT
Trailing Limit If Touched (Trailing Percent)
@ TSMPCT
Trailing Market If Touched (Trailing Percent)
TimeInForceType
Time in force Type.
Definition: types.hpp:1518
@ GoodTilDate
Good Til Date Order.
@ GoodTilCanceled
Good Til Canceled Order.
Definition: agent_context.hpp:13
PushCandlestickMode
Push candlestick mode.
Definition: types.hpp:43
Market
Market.
Definition: types.hpp:52
Language
Language identifer.
Definition: types.hpp:32
uint8_t day
Definition: types.hpp:14
uint8_t month
Definition: types.hpp:13
int32_t year
Definition: types.hpp:12
Time time
Definition: types.hpp:27
Date date
Definition: types.hpp:26
uint8_t second
Definition: types.hpp:21
uint8_t minute
Definition: types.hpp:20
uint8_t hour
Definition: types.hpp:19
Present when a conversation run failed.
Definition: types.hpp:3853
int32_t code
Error code.
Definition: types.hpp:3855
std::string message
Error message.
Definition: types.hpp:3857
An Agent in a Workspace.
Definition: types.hpp:3765
int64_t created_at
Creation time, Unix timestamp in seconds.
Definition: types.hpp:3781
int64_t published_at
Publish time, Unix timestamp in seconds; 0 if unpublished.
Definition: types.hpp:3779
bool is_published
Whether published; only published Agents can start conversations.
Definition: types.hpp:3777
std::string mode
Agent mode, e.g. "chat".
Definition: types.hpp:3773
std::string icon
Icon URL.
Definition: types.hpp:3775
int64_t updated_at
Last updated time, Unix timestamp in seconds.
Definition: types.hpp:3783
std::string description
Agent description.
Definition: types.hpp:3771
std::string uid
Agent UID, used as the path parameter of AgentContext::conversation.
Definition: types.hpp:3767
std::string name
Agent name.
Definition: types.hpp:3769
Response for AgentContext::agents.
Definition: types.hpp:3788
int32_t total
Total number of matching Agents.
Definition: types.hpp:3792
std::vector< Agent > agents
Agent list.
Definition: types.hpp:3790
Definition: types.hpp:4272
std::string error
Empty string in every run observed so far.
Definition: types.hpp:4280
std::string chat_uid
Conversation identifier.
Definition: types.hpp:4276
std::string error_message
Empty string in every run observed so far.
Definition: types.hpp:4282
std::string message_id
Message ID of this round.
Definition: types.hpp:4278
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:4274
Payload of a ChatStarted conversation stream event.
Definition: types.hpp:3898
std::string chat_uid
Conversation identifier.
Definition: types.hpp:3900
std::string message_id
Message ID of this round.
Definition: types.hpp:3902
Definition: types.hpp:4290
std::string title
The new (possibly truncated) title.
Definition: types.hpp:4298
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:4292
std::string source
Where the title came from, e.g. "ai_generated".
Definition: types.hpp:4296
std::string chat_uid
Conversation identifier.
Definition: types.hpp:4294
int64_t updated_at
Unix timestamp in seconds.
Definition: types.hpp:4300
Definition: types.hpp:4259
std::string inputs_json
Compression input summary, as a JSON string; empty when absent.
Definition: types.hpp:4263
std::string created_at
Finish time, RFC 3339.
Definition: types.hpp:4261
std::string outputs_json
Compression result summary, as a JSON string; empty when absent.
Definition: types.hpp:4265
Definition: types.hpp:4249
std::string started_at
Start time, RFC 3339.
Definition: types.hpp:4251
std::string inputs_json
Compression input summary, as a JSON string; empty when absent.
Definition: types.hpp:4253
Definition: types.hpp:3876
std::string chat_uid
Definition: types.hpp:3879
std::optional< Interrupt > interrupt
Present only when status is ConversationStatus::Interrupted.
Definition: types.hpp:3891
ConversationStatus status
Final run status.
Definition: types.hpp:3883
std::vector< Reference > references
Sources referenced by the answer.
Definition: types.hpp:3887
double elapsed_time
Run duration in seconds.
Definition: types.hpp:3889
std::string message_id
Message ID of this round.
Definition: types.hpp:3881
std::optional< AgentError > error
Present only when the run failed.
Definition: types.hpp:3893
std::string answer
Final answer text; valid when status is ConversationStatus::Succeeded.
Definition: types.hpp:3885
Definition: types.hpp:4389
ConversationStreamEventKind kind
Discriminant, tells you which field below is populated.
Definition: types.hpp:4391
std::optional< NodeToolUseFinishedPayload > node_tool_use_finished
Definition: types.hpp:4410
std::optional< ThinkingStartedPayload > thinking_started
Definition: types.hpp:4401
std::optional< ConversationResponse > workflow_finished
Definition: types.hpp:4454
std::optional< ConversationResponse > human_interaction_required
Definition: types.hpp:4433
std::optional< AgentToolProgressPayload > agent_tool_progress
Definition: types.hpp:4425
std::optional< WorkflowStartedPayload > workflow_started
Definition: types.hpp:4396
std::optional< ChatStartedPayload > chat_started
Populated when kind is ChatStarted
Definition: types.hpp:4393
std::optional< SubagentStartedPayload > subagent_started
Definition: types.hpp:4413
std::optional< ContextCompressStartedPayload > context_compress_started
Definition: types.hpp:4442
std::optional< NodeToolUseStartedPayload > node_tool_use_started
Definition: types.hpp:4407
std::optional< PlanChangedPayload > plan_changed
Definition: types.hpp:4439
std::optional< ThinkingFinishedPayload > thinking_finished
Definition: types.hpp:4404
std::optional< MessagePayload > message
Populated when kind is Message
Definition: types.hpp:4398
std::optional< std::string > other_json
Definition: types.hpp:4463
std::optional< SubagentProgressPayload > subagent_progress
Definition: types.hpp:4416
std::optional< AgentToolStartedPayload > agent_tool_started
Definition: types.hpp:4422
std::optional< std::string > other_event
Definition: types.hpp:4460
std::optional< ContextCompressFinishedPayload > context_compress_finished
Definition: types.hpp:4445
std::optional< AgentToolFinishedPayload > agent_tool_finished
Definition: types.hpp:4428
std::optional< ChatTitleUpdatedPayload > chat_title_updated
Definition: types.hpp:4457
std::optional< ChatFinishedPayload > chat_finished
Definition: types.hpp:4448
std::optional< QueryMaskedPayload > query_masked
Definition: types.hpp:4436
std::optional< SubagentFinishedPayload > subagent_finished
Definition: types.hpp:4419
Options for AgentContext::agents (all fields optional).
Definition: types.hpp:3797
std::optional< int32_t > page
Page number, starts at 1.
Definition: types.hpp:3799
std::optional< int32_t > limit
Page size.
Definition: types.hpp:3801
std::optional< std::string > name
Fuzzy search by Agent name.
Definition: types.hpp:3803
Definition: types.hpp:3838
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:3848
std::string tool_call_id
Tool call ID of this inquiry; used as the answer key when continuing.
Definition: types.hpp:3842
int64_t message_id
ID of the paused message.
Definition: types.hpp:3846
std::string node_id
ID of the node that triggered the interrupt.
Definition: types.hpp:3840
std::vector< Question > questions
Questions you need to answer.
Definition: types.hpp:3844
Definition: types.hpp:3909
std::string stage_title
Definition: types.hpp:3925
std::string outputs_json
Definition: types.hpp:3931
std::string stage_finished_title
Definition: types.hpp:3928
std::string message_type
Definition: types.hpp:3914
std::string stage
Stage identifier; only present when message_type is "process".
Definition: types.hpp:3922
std::string text
Incremental text fragment.
Definition: types.hpp:3911
std::string key
Definition: types.hpp:3918
int64_t started_at
Time this segment started, Unix timestamp in seconds.
Definition: types.hpp:3920
Definition: types.hpp:4233
std::string outputs_json
The current plan content, as a JSON string; empty when absent.
Definition: types.hpp:4239
std::string tool_name
Identifies the planning tool.
Definition: types.hpp:4241
int64_t started_at
Time of the change, Unix timestamp in seconds.
Definition: types.hpp:4237
std::string node_id
ID of the planning node.
Definition: types.hpp:4235
Definition: types.hpp:4223
std::string masked_query
The masked query.
Definition: types.hpp:4227
std::string raw_query
The original user query.
Definition: types.hpp:4225
One question the Agent needs you to answer.
Definition: types.hpp:3826
bool multi_select
Whether multiple options may be selected.
Definition: types.hpp:3832
std::string question
Question text.
Definition: types.hpp:3828
std::vector< QuestionOption > options
Options; empty means free-form answer.
Definition: types.hpp:3830
One option of a Question.
Definition: types.hpp:3819
std::string description
Option text.
Definition: types.hpp:3821
A source referenced by the answer.
Definition: types.hpp:3808
std::string title
Reference title.
Definition: types.hpp:3812
int32_t index
Reference index.
Definition: types.hpp:3810
std::string url
Reference URL.
Definition: types.hpp:3814
Payload of a SubagentFinished conversation stream event.
Definition: types.hpp:4120
std::string status
succeeded / failed
Definition: types.hpp:4126
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:4122
SubagentOutputs outputs
Subagent result: goal, result, and the timeline of tool calls it made.
Definition: types.hpp:4134
std::string error
Error description on failure.
Definition: types.hpp:4132
std::string tool_use_id
Matches the tool_use_id of SubagentStarted.
Definition: types.hpp:4124
double elapsed_time
Total subagent duration in seconds.
Definition: types.hpp:4130
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4128
outputs of a SubagentFinished conversation stream event.
Definition: types.hpp:4108
std::string result
The subagent's result; empty when absent.
Definition: types.hpp:4112
std::string goal
The goal that was assigned to the subagent; empty when absent.
Definition: types.hpp:4110
std::string subagent_tools_json
Definition: types.hpp:4115
Definition: types.hpp:4087
std::string subagent_tool_name
Name of the tool the subagent called.
Definition: types.hpp:4093
std::string subagent_status
Status of that call: running / succeeded / failed.
Definition: types.hpp:4097
std::string subagent_tool_args
Arguments of that call, as a JSON string.
Definition: types.hpp:4095
int32_t subagent_iteration
The subagent's internal round number.
Definition: types.hpp:4101
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:4089
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4103
std::string parent_tool_call_id
tool_use_id of the owning SubagentStarted event
Definition: types.hpp:4091
int64_t subagent_duration_ms
Duration of that call in milliseconds.
Definition: types.hpp:4099
Definition: types.hpp:4065
std::string tool_use_id
Unique ID of this spawn; matches the finished event.
Definition: types.hpp:4069
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4071
std::string prompt
Full task prompt given to the subagent.
Definition: types.hpp:4075
std::string tools_json
Definition: types.hpp:4080
std::string subagent_id
Subagent identifier; may be empty.
Definition: types.hpp:4077
std::string goal
Goal assigned to the subagent.
Definition: types.hpp:4073
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:4067
Definition: types.hpp:3975
int32_t elapsed_time
Reasoning duration in seconds.
Definition: types.hpp:3979
int64_t finished_at
Finish time, Unix timestamp in seconds.
Definition: types.hpp:3977
Definition: types.hpp:3966
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:3968
Definition: types.hpp:3950
int64_t workflow_id
Internal workflow run ID.
Definition: types.hpp:3958
int64_t started_at
Unix timestamp in seconds.
Definition: types.hpp:3956
WorkflowStartedInputs inputs
Echoes the run's inputs.
Definition: types.hpp:3954
bool hit_cache
Whether this run's answer was served from a cache.
Definition: types.hpp:3952
A Workspace the current account belongs to.
Definition: types.hpp:3745
std::string name
Workspace name.
Definition: types.hpp:3749
int64_t created_at
Creation time, Unix timestamp in seconds.
Definition: types.hpp:3751
std::string id
Workspace ID.
Definition: types.hpp:3747
int64_t updated_at
Last updated time, Unix timestamp in seconds.
Definition: types.hpp:3753
Response for AgentContext::workspaces.
Definition: types.hpp:3758
std::vector< Workspace > workspaces
Workspaces the current account belongs to.
Definition: types.hpp:3760
One price alert rule attached to a security.
Definition: types.hpp:3453
int32_t scope
Scope.
Definition: types.hpp:3463
int32_t frequency
Trigger frequency: 1=daily, 2=every_time, 3=once.
Definition: types.hpp:3461
std::string id
Alert ID.
Definition: types.hpp:3455
std::string indicator_id
Condition: "1"=price_rise, "2"=price_fall, "3"=pct_rise, "4"=pct_fall.
Definition: types.hpp:3457
std::string value_map
Trigger threshold, serialised as JSON: {"price":"500"} or {"chg":"5"}.
Definition: types.hpp:3469
bool enabled
Whether the alert is currently active.
Definition: types.hpp:3459
std::string text
Human-readable description of the trigger condition.
Definition: types.hpp:3465
std::vector< int32_t > state
Trigger state flags.
Definition: types.hpp:3467
Response for AlertContext::list — alerts grouped by security.
Definition: types.hpp:3497
std::vector< AlertSymbolGroup > lists
Alert groups, one per security.
Definition: types.hpp:3499
All price alerts for one security.
Definition: types.hpp:3474
std::string p_chg
Day change percentage.
Definition: types.hpp:3488
std::vector< AlertItem > indicators
Alert items for this security.
Definition: types.hpp:3492
std::string name
Security name.
Definition: types.hpp:3482
std::string code
Ticker code (without market)
Definition: types.hpp:3478
std::string market
Market, e.g. "HK".
Definition: types.hpp:3480
std::string chg
Day change amount.
Definition: types.hpp:3486
std::string price
Latest price.
Definition: types.hpp:3484
std::string product
Product type (may be empty)
Definition: types.hpp:3490
std::string symbol
Security symbol.
Definition: types.hpp:3476
Options for creating a topic.
Definition: types.hpp:2389
std::vector< std::string > tickers
Related stock tickers, format: {symbol}.{market}, max 10.
Definition: types.hpp:2397
std::string body
Topic body in Markdown format (required)
Definition: types.hpp:2393
std::string title
Topic title (required)
Definition: types.hpp:2391
std::vector< std::string > hashtags
Hashtag names, max 5.
Definition: types.hpp:2399
std::string topic_type
Content type: "article" or "post" (empty = default "post")
Definition: types.hpp:2395
Options for listing topics created by the current authenticated user.
Definition: types.hpp:2378
int32_t page
Page number (0 = default 1)
Definition: types.hpp:2380
int32_t size
Records per page, range 1~500 (0 = default 50)
Definition: types.hpp:2382
std::string topic_type
Filter by content type: "article" or "post" (empty = all)
Definition: types.hpp:2384
News item.
Definition: types.hpp:2298
std::string title
Title.
Definition: types.hpp:2302
int32_t likes_count
Likes count.
Definition: types.hpp:2312
std::string url
URL.
Definition: types.hpp:2306
int32_t shares_count
Shares count.
Definition: types.hpp:2314
std::string description
Description.
Definition: types.hpp:2304
int32_t comments_count
Comments count.
Definition: types.hpp:2310
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:2308
std::string id
News ID.
Definition: types.hpp:2300
My topic item (created by the current authenticated user)
Definition: types.hpp:2341
std::vector< std::string > hashtags
Hashtag names.
Definition: types.hpp:2355
int32_t comments_count
Comments count.
Definition: types.hpp:2361
std::string title
Title.
Definition: types.hpp:2345
int32_t views_count
Views count.
Definition: types.hpp:2363
std::string id
Topic ID.
Definition: types.hpp:2343
int64_t updated_at
Updated time (Unix timestamp)
Definition: types.hpp:2373
std::vector< std::string > tickers
Related stock tickers.
Definition: types.hpp:2353
int64_t created_at
Created time (Unix timestamp)
Definition: types.hpp:2371
std::string description
Plain text excerpt.
Definition: types.hpp:2347
int32_t shares_count
Shares count.
Definition: types.hpp:2365
std::vector< TopicImage > images
Images.
Definition: types.hpp:2357
int32_t likes_count
Likes count.
Definition: types.hpp:2359
std::string detail_url
URL to the full topic page.
Definition: types.hpp:2369
std::string topic_type
Content type: "article" or "post".
Definition: types.hpp:2367
TopicAuthor author
Author.
Definition: types.hpp:2351
std::string body
Markdown body.
Definition: types.hpp:2349
Topic author.
Definition: types.hpp:2319
std::string member_id
Member ID.
Definition: types.hpp:2321
std::string avatar
Avatar URL.
Definition: types.hpp:2325
std::string name
Display name.
Definition: types.hpp:2323
Topic image.
Definition: types.hpp:2330
std::string lg
Large image URL.
Definition: types.hpp:2336
std::string url
Original image URL.
Definition: types.hpp:2332
std::string sm
Small thumbnail URL.
Definition: types.hpp:2334
Topic item.
Definition: types.hpp:2277
std::string url
URL.
Definition: types.hpp:2285
int32_t likes_count
Likes count.
Definition: types.hpp:2291
std::string description
Description.
Definition: types.hpp:2283
std::string title
Title.
Definition: types.hpp:2281
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:2287
int32_t shares_count
Shares count.
Definition: types.hpp:2293
std::string id
Topic ID.
Definition: types.hpp:2279
int32_t comments_count
Comments count.
Definition: types.hpp:2289
Response for DCAContext::calc_date — next projected trade date.
Definition: types.hpp:3616
std::string trade_date
Next projected trade date (unix timestamp string)
Definition: types.hpp:3618
Response for DCAContext::create_dca and DCAContext::update_dca.
Definition: types.hpp:3623
std::string plan_id
The plan ID of the created or updated DCA plan.
Definition: types.hpp:3625
One DCA execution history record.
Definition: types.hpp:3630
std::string order_id
Definition: types.hpp:3632
std::string action
Definition: types.hpp:3634
std::string order_type
Definition: types.hpp:3635
std::string created_at
Definition: types.hpp:3631
std::string rejected_reason
Definition: types.hpp:3639
std::string executed_price
Definition: types.hpp:3637
std::string executed_amount
Definition: types.hpp:3638
std::string symbol
Definition: types.hpp:3640
std::string executed_qty
Definition: types.hpp:3636
std::string status
Definition: types.hpp:3633
Paginated DCA execution history response.
Definition: types.hpp:3645
bool has_more
Definition: types.hpp:3647
std::vector< DcaHistoryRecord > records
Definition: types.hpp:3646
Response for DCAContext::list and write operations.
Definition: types.hpp:3574
std::vector< DcaPlan > plans
DCA plans.
Definition: types.hpp:3576
One DCA (dollar-cost averaging) investment plan.
Definition: types.hpp:3525
std::string updated_at
Last updated time.
Definition: types.hpp:3557
std::string average_cost
Average cost.
Definition: types.hpp:3567
DCAFrequency invest_frequency
Investment frequency.
Definition: types.hpp:3545
std::string aaid
Account ID.
Definition: types.hpp:3535
std::string next_trd_date
Next investment date.
Definition: types.hpp:3559
std::string cum_amount
Cumulative invested amount.
Definition: types.hpp:3563
std::string invest_day_of_week
Day of week for weekly plans (e.g. "Mon")
Definition: types.hpp:3547
std::string stock_name
Security name.
Definition: types.hpp:3561
std::string alter_hours
Advance reminder hours ("1", "6", or "12")
Definition: types.hpp:3553
bool allow_margin_finance
Whether margin finance is allowed.
Definition: types.hpp:3551
std::string symbol
Security symbol.
Definition: types.hpp:3531
DCAStatus status
Plan status.
Definition: types.hpp:3529
int64_t issue_number
Number of completed investment periods.
Definition: types.hpp:3565
std::string display_account
Display account.
Definition: types.hpp:3539
std::string plan_id
Plan ID.
Definition: types.hpp:3527
std::string created_at
Creation time.
Definition: types.hpp:3555
std::string account_channel
Account channel.
Definition: types.hpp:3537
std::string per_invest_amount
Investment amount per period.
Definition: types.hpp:3543
std::string invest_day_of_month
Day of month for monthly plans.
Definition: types.hpp:3549
std::string member_id
Member ID.
Definition: types.hpp:3533
std::string cum_profit
Cumulative profit/loss.
Definition: types.hpp:3569
longbridge::Market market
Market.
Definition: types.hpp:3541
Response for DCAContext::stats — aggregate DCA statistics.
Definition: types.hpp:3581
std::string suspended_count
Number of suspended plans.
Definition: types.hpp:3587
std::string finished_count
Number of finished plans.
Definition: types.hpp:3585
std::vector< DcaPlan > nearest_plans
Nearest upcoming plans.
Definition: types.hpp:3589
std::string active_count
Number of active plans.
Definition: types.hpp:3583
std::string total_amount
Total invested amount.
Definition: types.hpp:3593
std::string total_profit
Total profit/loss.
Definition: types.hpp:3595
std::string rest_days
Days until next investment.
Definition: types.hpp:3591
DCA support info for one security.
Definition: types.hpp:3600
std::string symbol
Security symbol.
Definition: types.hpp:3602
bool support_regular_saving
Whether DCA is supported for this security.
Definition: types.hpp:3604
Response for DCAContext::check_support.
Definition: types.hpp:3609
std::vector< DcaSupportInfo > infos
Support info per security.
Definition: types.hpp:3611
One ETF asset allocation group (grouped by element type)
Definition: types.hpp:3431
ElementType asset_type
Element type of this group.
Definition: types.hpp:3435
std::string report_date
Report date (e.g. 20260601)
Definition: types.hpp:3433
std::vector< AssetAllocationItem > lists
Elements.
Definition: types.hpp:3437
One element of an ETF asset allocation group.
Definition: types.hpp:3414
std::string symbol
Security symbol (holdings only, e.g. NVDA.US)
Definition: types.hpp:3422
std::string position_ratio
Position ratio (e.g. 0.0861114)
Definition: types.hpp:3420
std::optional< HoldingDetail > holding_detail
Holding detail (holdings only)
Definition: types.hpp:3426
std::string name
Element name.
Definition: types.hpp:3416
std::map< std::string, std::string > name_locales
Localized names (locale → name)
Definition: types.hpp:3424
std::string code
Security code (holdings only, e.g. NVDA)
Definition: types.hpp:3418
ETF asset allocation response.
Definition: types.hpp:3442
std::vector< AssetAllocationGroup > info
Asset allocation groups.
Definition: types.hpp:3444
One business/regional segment item in a historical snapshot.
Definition: types.hpp:3210
std::string percent
Definition: types.hpp:3212
std::string value
Definition: types.hpp:3213
std::string name
Definition: types.hpp:3211
One business segment item (latest snapshot).
Definition: types.hpp:3194
std::string percent
Definition: types.hpp:3196
std::string name
Definition: types.hpp:3195
One historical business segments snapshot.
Definition: types.hpp:3218
std::string date
Definition: types.hpp:3219
std::vector< BusinessSegmentHistoryItem > business
Definition: types.hpp:3222
std::string currency
Definition: types.hpp:3221
std::string total
Definition: types.hpp:3220
std::vector< BusinessSegmentHistoryItem > regionals
Definition: types.hpp:3223
Business segments history response.
Definition: types.hpp:3228
std::vector< BusinessSegmentsHistoricalItem > historical
Definition: types.hpp:3229
Business segments response.
Definition: types.hpp:3201
std::string currency
Definition: types.hpp:3204
std::vector< BusinessSegmentItem > business
Definition: types.hpp:3205
std::string total
Definition: types.hpp:3203
std::string date
Definition: types.hpp:3202
Buyback data response.
Definition: types.hpp:3137
std::vector< BuybackHistoryItem > buyback_history
Definition: types.hpp:3139
std::optional< RecentBuybacks > recent_buybacks
Definition: types.hpp:3138
std::vector< BuybackRatios > buyback_ratios
Definition: types.hpp:3140
Historical annual buyback data point.
Definition: types.hpp:3119
std::string fiscal_year_range
Definition: types.hpp:3121
std::string currency
Definition: types.hpp:3125
std::string net_buyback_growth_rate
Definition: types.hpp:3124
std::string fiscal_year
Definition: types.hpp:3120
std::string net_buyback_yield
Definition: types.hpp:3123
std::string net_buyback
Definition: types.hpp:3122
Buyback payout and cash-flow ratios.
Definition: types.hpp:3130
std::string net_buyback_to_cashflow_ratio
Definition: types.hpp:3132
std::string net_buyback_payout_ratio
Definition: types.hpp:3131
Company overview and profile information.
Definition: types.hpp:2842
std::string fax
Definition: types.hpp:2861
std::string founded
Definition: types.hpp:2845
std::string address
Definition: types.hpp:2849
std::string website
Definition: types.hpp:2851
std::string ticker
Definition: types.hpp:2865
std::string year_end
Definition: types.hpp:2858
std::string profile
Definition: types.hpp:2866
std::string audit_inst
Definition: types.hpp:2856
int32_t sector
Definition: types.hpp:2867
std::string listing_date
Definition: types.hpp:2846
std::string category
Definition: types.hpp:2857
std::string chairman
Definition: types.hpp:2854
std::string name
Definition: types.hpp:2843
std::string phone
Definition: types.hpp:2860
std::string email
Definition: types.hpp:2862
std::string issue_price
Definition: types.hpp:2852
std::string employees
Definition: types.hpp:2859
std::string manager
Definition: types.hpp:2864
std::string legal_repr
Definition: types.hpp:2863
std::string region
Definition: types.hpp:2848
std::string office_address
Definition: types.hpp:2850
std::string secretary
Definition: types.hpp:2855
std::string company_name
Definition: types.hpp:2844
std::string shares_offered
Definition: types.hpp:2853
std::string market
Definition: types.hpp:2847
One consensus estimate detail for a financial metric.
Definition: types.hpp:2998
std::string comp_desc
Definition: types.hpp:3005
std::string key
Definition: types.hpp:2999
std::string estimate
Definition: types.hpp:3003
std::string description
Definition: types.hpp:3001
std::string name
Definition: types.hpp:3000
std::string comp
Definition: types.hpp:3006
bool is_released
Definition: types.hpp:3007
std::string actual
Definition: types.hpp:3002
std::string comp_value
Definition: types.hpp:3004
Consensus report for one fiscal period.
Definition: types.hpp:3012
std::string period_text
Definition: types.hpp:3015
int32_t fiscal_year
Definition: types.hpp:3013
std::vector< ConsensusDetail > details
Definition: types.hpp:3016
std::string fiscal_period
Definition: types.hpp:3014
One corporate action event (dividend, split, etc.).
Definition: types.hpp:2918
std::string id
Definition: types.hpp:2919
bool is_delay
Definition: types.hpp:2928
std::string date_str
Definition: types.hpp:2921
std::string act_desc
Definition: types.hpp:2925
std::string date_zone
Definition: types.hpp:2923
std::string act_type
Definition: types.hpp:2924
bool recent
Definition: types.hpp:2927
std::string date_type
Definition: types.hpp:2922
std::string date
Definition: types.hpp:2920
std::string action
Definition: types.hpp:2926
std::string delay_content
Definition: types.hpp:2929
Collection of corporate action events.
Definition: types.hpp:2934
std::vector< CorpActionItem > items
Definition: types.hpp:2935
One dividend event for a security.
Definition: types.hpp:2665
std::string symbol
Definition: types.hpp:2666
std::string record_date
Definition: types.hpp:2669
std::string desc
Definition: types.hpp:2668
std::string ex_date
Definition: types.hpp:2670
std::string id
Definition: types.hpp:2667
std::string payment_date
Definition: types.hpp:2671
List of dividend events.
Definition: types.hpp:2676
std::vector< DividendItem > list
Definition: types.hpp:2677
Executives for one security.
Definition: types.hpp:3096
std::string symbol
Definition: types.hpp:3097
int32_t total
Definition: types.hpp:3099
std::vector< Professional > professionals
Definition: types.hpp:3100
std::string forward_url
Definition: types.hpp:3098
List of executive groups per security.
Definition: types.hpp:3105
std::vector< ExecutiveGroup > professional_list
Definition: types.hpp:3106
Financial consensus response.
Definition: types.hpp:3021
int32_t current_index
Definition: types.hpp:3023
std::string current_period
Definition: types.hpp:3026
std::vector< ConsensusReport > list
Definition: types.hpp:3022
std::string currency
Definition: types.hpp:3024
std::vector< std::string > opt_periods
Definition: types.hpp:3025
Financial report snapshot response.
Definition: types.hpp:3320
std::string fr_asset_turn_ttm
Definition: types.hpp:3340
std::optional< SnapshotForecastMetric > fo_ebit
Definition: types.hpp:3328
std::string fp_end
Definition: types.hpp:3324
std::string name
Definition: types.hpp:3321
std::optional< SnapshotReportedMetric > fr_invest_cash
Definition: types.hpp:3333
std::string currency
Definition: types.hpp:3325
std::string fp_start
Definition: types.hpp:3323
std::string fr_leverage_ttm
Definition: types.hpp:3341
std::string report_desc
Definition: types.hpp:3326
std::optional< SnapshotReportedMetric > fr_profit
Definition: types.hpp:3331
std::optional< SnapshotReportedMetric > fr_operate_cash
Definition: types.hpp:3332
std::optional< SnapshotReportedMetric > fr_total_assets
Definition: types.hpp:3335
std::optional< SnapshotReportedMetric > fr_revenue
Definition: types.hpp:3330
std::string fr_roe_ttm
Definition: types.hpp:3337
std::optional< SnapshotForecastMetric > fo_eps
Definition: types.hpp:3329
std::string fr_profit_margin_ttm
Definition: types.hpp:3339
std::string fr_profit_margin
Definition: types.hpp:3338
std::optional< SnapshotForecastMetric > fo_revenue
Definition: types.hpp:3327
std::optional< SnapshotReportedMetric > fr_finance_cash
Definition: types.hpp:3334
std::optional< SnapshotReportedMetric > fr_total_liability
Definition: types.hpp:3336
std::string fr_debt_assets_ratio
Definition: types.hpp:3342
std::string ticker
Definition: types.hpp:3322
Financial reports — list_json contains serialized JSON.
Definition: types.hpp:2992
std::string list_json
Definition: types.hpp:2993
Collection of forecast EPS items.
Definition: types.hpp:2796
std::vector< ForecastEpsItem > items
Definition: types.hpp:2797
Forecast EPS data point from institutional analysts.
Definition: types.hpp:2782
std::string forecast_eps_highest
Definition: types.hpp:2786
std::string forecast_eps_median
Definition: types.hpp:2783
int64_t forecast_start_date
Definition: types.hpp:2790
int32_t institution_total
Definition: types.hpp:2787
std::string forecast_eps_mean
Definition: types.hpp:2784
int32_t institution_up
Definition: types.hpp:2788
int64_t forecast_end_date
Definition: types.hpp:2791
std::string forecast_eps_lowest
Definition: types.hpp:2785
int32_t institution_down
Definition: types.hpp:2789
One fund's holding record for a security.
Definition: types.hpp:2901
std::string code
Definition: types.hpp:2902
std::string name
Definition: types.hpp:2905
std::string currency
Definition: types.hpp:2904
std::string report_date
Definition: types.hpp:2907
std::string position_ratio
Definition: types.hpp:2906
std::string symbol
Definition: types.hpp:2903
Collection of fund holders for a security.
Definition: types.hpp:2912
std::vector< FundHolder > lists
Definition: types.hpp:2913
Holding detail of an ETF asset allocation element (holdings only)
Definition: types.hpp:3397
std::string industry_id
Industry ID.
Definition: types.hpp:3399
std::string index_name
Index name.
Definition: types.hpp:3405
std::string industry_name
Industry name.
Definition: types.hpp:3401
std::string holding_type_name
Holding type name.
Definition: types.hpp:3409
std::string holding_type
Holding type (e.g. E for stock)
Definition: types.hpp:3407
std::string index
Index counter ID (e.g. BK/US/CP99000)
Definition: types.hpp:3403
Definition: types.hpp:3286
std::string ytd_chg
Definition: types.hpp:3291
std::string chg
Definition: types.hpp:3290
std::string next_json
Definition: types.hpp:3292
std::string counter_id
Definition: types.hpp:3288
std::string name
Definition: types.hpp:3287
int32_t stock_num
Definition: types.hpp:3289
Industry peers response.
Definition: types.hpp:3297
IndustryPeersTop top
Definition: types.hpp:3298
std::optional< IndustryPeerNode > chain
Definition: types.hpp:3299
Top-level industry info in the peers response.
Definition: types.hpp:3277
std::string name
Definition: types.hpp:3278
std::string market
Definition: types.hpp:3279
A group of ranked industry items.
Definition: types.hpp:3265
std::vector< IndustryRankItem > lists
Definition: types.hpp:3266
One ranked industry item.
Definition: types.hpp:3252
std::string leading_ticker
Definition: types.hpp:3257
std::string leading_name
Definition: types.hpp:3256
std::string value_name
Definition: types.hpp:3259
std::string value_data
Definition: types.hpp:3260
std::string counter_id
Definition: types.hpp:3254
std::string leading_chg
Definition: types.hpp:3258
std::string chg
Definition: types.hpp:3255
std::string name
Definition: types.hpp:3253
Industry rank response.
Definition: types.hpp:3271
std::vector< IndustryRankGroup > items
Definition: types.hpp:3272
Industry valuation distribution for PE, PB, PS ratios.
Definition: types.hpp:3075
std::optional< ValuationDist > pb
Definition: types.hpp:3077
std::optional< ValuationDist > pe
Definition: types.hpp:3076
std::optional< ValuationDist > ps
Definition: types.hpp:3078
Historical valuation snapshot for an industry peer.
Definition: types.hpp:3031
std::string ps
Definition: types.hpp:3035
std::string date
Definition: types.hpp:3032
std::string pe
Definition: types.hpp:3033
std::string pb
Definition: types.hpp:3034
Valuation data for one industry peer security.
Definition: types.hpp:3040
std::string currency
Definition: types.hpp:3043
std::string five_y_avg_dps
Definition: types.hpp:3050
std::string dps
Definition: types.hpp:3047
std::string div_yld
Definition: types.hpp:3048
std::string pe
Definition: types.hpp:3051
std::string assets
Definition: types.hpp:3044
std::vector< IndustryValuationHistory > history
Definition: types.hpp:3052
std::string bps
Definition: types.hpp:3045
std::string div_payout_ratio
Definition: types.hpp:3049
std::string name
Definition: types.hpp:3042
std::string eps
Definition: types.hpp:3046
std::string symbol
Definition: types.hpp:3041
List of industry valuation items.
Definition: types.hpp:3057
std::vector< IndustryValuationItem > list
Definition: types.hpp:3058
One evaluation data point in an institutional rating detail series.
Definition: types.hpp:2748
int32_t strong_buy
Definition: types.hpp:2753
std::string date
Definition: types.hpp:2750
int32_t buy
Definition: types.hpp:2749
int32_t sell
Definition: types.hpp:2752
int32_t hold
Definition: types.hpp:2751
int32_t under
Definition: types.hpp:2754
Detailed institutional rating including historical evaluate and target series.
Definition: types.hpp:2771
std::string prediction_accuracy
Definition: types.hpp:2775
std::string updated_at
Definition: types.hpp:2776
std::vector< InstitutionRatingDetailTargetItem > target_list
Definition: types.hpp:2777
std::string ccy_symbol
Definition: types.hpp:2772
std::string data_percent
Definition: types.hpp:2774
std::vector< InstitutionRatingDetailEvaluateItem > evaluate_list
Definition: types.hpp:2773
One target price data point in an institutional rating detail series.
Definition: types.hpp:2759
bool meet
Definition: types.hpp:2764
std::string min_target
Definition: types.hpp:2763
std::string avg_target
Definition: types.hpp:2760
std::string price
Definition: types.hpp:2765
std::string date
Definition: types.hpp:2761
std::string max_target
Definition: types.hpp:2762
std::string timestamp
Definition: types.hpp:2766
Combined latest and summary institutional rating data.
Definition: types.hpp:2741
InstitutionRatingLatest latest
Definition: types.hpp:2742
InstitutionRatingSummary summary
Definition: types.hpp:2743
Latest institutional rating data including industry comparison.
Definition: types.hpp:2717
RatingEvaluate evaluate
Definition: types.hpp:2718
int32_t industry_median
Definition: types.hpp:2725
RatingTarget target
Definition: types.hpp:2719
int32_t industry_rank
Definition: types.hpp:2722
std::string industry_name
Definition: types.hpp:2721
int32_t industry_mean
Definition: types.hpp:2724
int32_t industry_total
Definition: types.hpp:2723
int64_t industry_id
Definition: types.hpp:2720
Institutional rating summary with current recommendation and target price.
Definition: types.hpp:2730
std::string updated_at
Definition: types.hpp:2736
std::string target
Definition: types.hpp:2735
std::string change
Definition: types.hpp:2732
std::string ccy_symbol
Definition: types.hpp:2731
RatingSummaryEvaluate evaluate
Definition: types.hpp:2733
InstitutionRecommend recommend
Definition: types.hpp:2734
One historical rating distribution snapshot.
Definition: types.hpp:3234
std::string sell
Definition: types.hpp:3240
std::string over
Definition: types.hpp:3237
std::string under
Definition: types.hpp:3239
std::string hold
Definition: types.hpp:3238
std::string total
Definition: types.hpp:3241
std::string buy
Definition: types.hpp:3236
std::string date
Definition: types.hpp:3235
Institution rating views response.
Definition: types.hpp:3246
std::vector< InstitutionRatingViewItem > elist
Definition: types.hpp:3247
Investment relationship data including parent/subsidiary securities.
Definition: types.hpp:2954
std::string forward_url
Definition: types.hpp:2955
std::vector< InvestSecurity > invest_securities
Definition: types.hpp:2956
One security in an investment relationship (parent/subsidiary holding).
Definition: types.hpp:2940
std::string company_name_en
Definition: types.hpp:2943
std::string company_id
Definition: types.hpp:2941
std::string symbol
Definition: types.hpp:2945
std::string shares_value
Definition: types.hpp:2949
std::string percent_of_shares
Definition: types.hpp:2947
std::string company_name
Definition: types.hpp:2942
std::string currency
Definition: types.hpp:2946
std::string company_name_zhcn
Definition: types.hpp:2944
std::string shares_rank
Definition: types.hpp:2948
One operating indicator from a financial report.
Definition: types.hpp:2961
std::string indicator_value
Definition: types.hpp:2964
std::string indicator_name
Definition: types.hpp:2963
std::string field_name
Definition: types.hpp:2962
std::string yoy
Definition: types.hpp:2965
One operating report item with associated indicators.
Definition: types.hpp:2970
std::vector< OperatingIndicator > indicators
Definition: types.hpp:2981
std::string txt
Definition: types.hpp:2974
std::string financial_currency
Definition: types.hpp:2977
std::string title
Definition: types.hpp:2973
bool latest
Definition: types.hpp:2975
std::string financial_region
Definition: types.hpp:2979
std::string web_url
Definition: types.hpp:2976
std::string financial_name
Definition: types.hpp:2978
std::string financial_report
Definition: types.hpp:2980
std::string id
Definition: types.hpp:2971
std::string report
Definition: types.hpp:2972
List of operating report items.
Definition: types.hpp:2986
std::vector< OperatingItem > list
Definition: types.hpp:2987
One executive or board member.
Definition: types.hpp:3083
std::string title
Definition: types.hpp:3088
std::string id
Definition: types.hpp:3084
std::string name_en
Definition: types.hpp:3087
std::string photo
Definition: types.hpp:3090
std::string name
Definition: types.hpp:3085
std::string name_zhcn
Definition: types.hpp:3086
std::string biography
Definition: types.hpp:3089
std::string wiki_url
Definition: types.hpp:3091
One rating category (e.g. growth, profitability).
Definition: types.hpp:3170
int32_t kind
Definition: types.hpp:3171
std::vector< RatingSubIndicatorGroup > sub_indicators
Definition: types.hpp:3172
Buy/sell/hold evaluation counts from institutional analysts.
Definition: types.hpp:2682
std::string end_date
Definition: types.hpp:2691
int32_t total
Definition: types.hpp:2689
int32_t under
Definition: types.hpp:2686
int32_t buy
Definition: types.hpp:2683
int32_t over
Definition: types.hpp:2684
int32_t hold
Definition: types.hpp:2685
int32_t sell
Definition: types.hpp:2687
std::string start_date
Definition: types.hpp:2690
int32_t no_opinion
Definition: types.hpp:2688
A rating indicator node (parent or leaf).
Definition: types.hpp:3155
std::string letter
Definition: types.hpp:3158
std::string name
Definition: types.hpp:3156
std::string score
Definition: types.hpp:3157
A leaf rating indicator with a raw value.
Definition: types.hpp:3145
std::string value_type
Definition: types.hpp:3148
std::string score
Definition: types.hpp:3149
std::string name
Definition: types.hpp:3146
std::string letter
Definition: types.hpp:3150
std::string value
Definition: types.hpp:3147
A group of sub-indicators under one category indicator.
Definition: types.hpp:3163
RatingIndicator indicator
Definition: types.hpp:3164
std::vector< RatingLeafIndicator > sub_indicators
Definition: types.hpp:3165
Summary evaluation counts for one rating period.
Definition: types.hpp:2706
int32_t under
Definition: types.hpp:2712
int32_t sell
Definition: types.hpp:2710
int32_t strong_buy
Definition: types.hpp:2711
std::string date
Definition: types.hpp:2708
int32_t buy
Definition: types.hpp:2707
int32_t hold
Definition: types.hpp:2709
Analyst price target range.
Definition: types.hpp:2696
std::string prev_close
Definition: types.hpp:2699
std::string start_date
Definition: types.hpp:2700
std::string end_date
Definition: types.hpp:2701
std::string lowest_price
Definition: types.hpp:2698
std::string highest_price
Definition: types.hpp:2697
TTM (trailing twelve months) buyback summary.
Definition: types.hpp:3111
std::string net_buyback_yield_ttm
Definition: types.hpp:3114
std::string currency
Definition: types.hpp:3112
std::string net_buyback_ttm
Definition: types.hpp:3113
One institutional or major shareholder record.
Definition: types.hpp:2881
std::string percent_of_shares
Definition: types.hpp:2885
std::vector< ShareholderStock > stocks
Definition: types.hpp:2888
std::string shares_changed
Definition: types.hpp:2886
std::string shareholder_name
Definition: types.hpp:2883
std::string institution_type
Definition: types.hpp:2884
std::string report_date
Definition: types.hpp:2887
std::string shareholder_id
Definition: types.hpp:2882
Paginated list of shareholders.
Definition: types.hpp:2893
std::string forward_url
Definition: types.hpp:2895
int32_t total
Definition: types.hpp:2896
std::vector< Shareholder > shareholder_list
Definition: types.hpp:2894
A security held by a shareholder.
Definition: types.hpp:2872
std::string market
Definition: types.hpp:2875
std::string chg
Definition: types.hpp:2876
std::string symbol
Definition: types.hpp:2873
std::string code
Definition: types.hpp:2874
A forecast metric in the financial report snapshot.
Definition: types.hpp:3304
std::string est_value
Definition: types.hpp:3308
std::string cmp_desc
Definition: types.hpp:3307
std::string yoy
Definition: types.hpp:3306
std::string value
Definition: types.hpp:3305
A reported metric in the financial report snapshot.
Definition: types.hpp:3313
std::string yoy
Definition: types.hpp:3315
std::string value
Definition: types.hpp:3314
Stock ratings response.
Definition: types.hpp:3177
int32_t multi_score_change
Definition: types.hpp:3183
std::string multi_score
Definition: types.hpp:3181
std::string industry_rank
Definition: types.hpp:3185
std::string multi_letter
Definition: types.hpp:3182
std::string style_txt_name
Definition: types.hpp:3178
std::string industry_median_score
Definition: types.hpp:3188
std::string industry_total
Definition: types.hpp:3186
std::vector< RatingCategory > ratings
Definition: types.hpp:3189
std::string scale_txt_name
Definition: types.hpp:3179
std::string report_period_txt
Definition: types.hpp:3180
std::string industry_name
Definition: types.hpp:3184
std::string industry_mean_score
Definition: types.hpp:3187
One security's valuation comparison item.
Definition: types.hpp:3356
std::string currency
Definition: types.hpp:3359
std::string pb
Definition: types.hpp:3363
std::string market_value
Definition: types.hpp:3360
std::string assets
Definition: types.hpp:3370
std::string eps
Definition: types.hpp:3366
std::string pe
Definition: types.hpp:3362
std::string symbol
Definition: types.hpp:3357
std::string name
Definition: types.hpp:3358
std::vector< ValuationHistoryPoint > history
Definition: types.hpp:3371
std::string ps
Definition: types.hpp:3364
std::string price_close
Definition: types.hpp:3361
std::string dps
Definition: types.hpp:3368
std::string roe
Definition: types.hpp:3365
std::string div_yld
Definition: types.hpp:3369
std::string bps
Definition: types.hpp:3367
Valuation comparison response.
Definition: types.hpp:3376
std::vector< ValuationComparisonItem > list
Definition: types.hpp:3377
Valuation data container.
Definition: types.hpp:2828
ValuationMetricsData metrics
Definition: types.hpp:2829
Distribution statistics for one valuation metric within an industry.
Definition: types.hpp:3063
std::string ranking
Definition: types.hpp:3068
std::string rank_total
Definition: types.hpp:3070
std::string high
Definition: types.hpp:3065
std::string low
Definition: types.hpp:3064
std::string value
Definition: types.hpp:3067
std::string rank_index
Definition: types.hpp:3069
std::string median
Definition: types.hpp:3066
One historical valuation data point.
Definition: types.hpp:3347
std::string ps
Definition: types.hpp:3351
std::string pe
Definition: types.hpp:3349
std::string date
Definition: types.hpp:3348
std::string pb
Definition: types.hpp:3350
Historical valuation response (PE, PB, PS without dividend yield).
Definition: types.hpp:2834
std::optional< ValuationMetricData > pe
Definition: types.hpp:2835
std::optional< ValuationMetricData > ps
Definition: types.hpp:2837
std::optional< ValuationMetricData > pb
Definition: types.hpp:2836
Historical data for one valuation metric (PE, PB, PS, or dividend yield).
Definition: types.hpp:2809
std::vector< ValuationPoint > list
Definition: types.hpp:2814
std::string high
Definition: types.hpp:2811
std::string low
Definition: types.hpp:2812
std::string desc
Definition: types.hpp:2810
std::string median
Definition: types.hpp:2813
All valuation metrics for a security.
Definition: types.hpp:2819
std::optional< ValuationMetricData > dvd_yld
Definition: types.hpp:2823
std::optional< ValuationMetricData > ps
Definition: types.hpp:2822
std::optional< ValuationMetricData > pb
Definition: types.hpp:2821
std::optional< ValuationMetricData > pe
Definition: types.hpp:2820
One data point in a valuation time series.
Definition: types.hpp:2802
int64_t timestamp
Definition: types.hpp:2803
std::string value
Definition: types.hpp:2804
Intraday A/H premium kline series.
Definition: types.hpp:2505
std::vector< AhPremiumKline > klines
Definition: types.hpp:2506
A/H premium candlestick data point.
Definition: types.hpp:2486
std::string currency_rate
Definition: types.hpp:2491
std::string hprice
Definition: types.hpp:2489
std::string hpreclose
Definition: types.hpp:2490
int64_t timestamp
Definition: types.hpp:2494
std::string price_spread
Definition: types.hpp:2493
std::string ahpremium_rate
Definition: types.hpp:2492
std::string aprice
Definition: types.hpp:2487
std::string apreclose
Definition: types.hpp:2488
Historical A/H premium kline series.
Definition: types.hpp:2499
std::vector< AhPremiumKline > klines
Definition: types.hpp:2500
A single anomaly (unusual market movement) alert item.
Definition: types.hpp:2601
std::string alert_name
Definition: types.hpp:2604
int64_t alert_time
Definition: types.hpp:2605
std::string symbol
Definition: types.hpp:2602
std::string name
Definition: types.hpp:2603
int32_t emotion
Definition: types.hpp:2607
std::vector< std::string > change_values
Definition: types.hpp:2606
Response containing anomaly alert items.
Definition: types.hpp:2612
std::vector< AnomalyItem > changes
Definition: types.hpp:2614
bool all_off
Definition: types.hpp:2613
Holding change figures over multiple periods for a broker.
Definition: types.hpp:2444
std::string chg_5
Definition: types.hpp:2447
std::string chg_60
Definition: types.hpp:2449
std::string chg_1
Definition: types.hpp:2446
std::string chg_20
Definition: types.hpp:2448
std::string value
Definition: types.hpp:2445
Historical daily broker holding series.
Definition: types.hpp:2480
std::vector< BrokerHoldingDailyItem > list
Definition: types.hpp:2481
One day's broker holding snapshot.
Definition: types.hpp:2471
std::string chg
Definition: types.hpp:2475
std::string holding
Definition: types.hpp:2473
std::string ratio
Definition: types.hpp:2474
std::string date
Definition: types.hpp:2472
Full broker holding detail with historical change data.
Definition: types.hpp:2464
std::vector< BrokerHoldingDetailItem > list
Definition: types.hpp:2465
std::string updated_at
Definition: types.hpp:2466
Detailed holding entry for one broker including ratio and share changes.
Definition: types.hpp:2454
std::string name
Definition: types.hpp:2455
BrokerHoldingChanges ratio
Definition: types.hpp:2457
bool strong
Definition: types.hpp:2459
BrokerHoldingChanges shares
Definition: types.hpp:2458
std::string parti_number
Definition: types.hpp:2456
One broker's holding entry in a top-holders list.
Definition: types.hpp:2427
bool strong
Definition: types.hpp:2431
std::string name
Definition: types.hpp:2428
std::string parti_number
Definition: types.hpp:2429
std::string chg
Definition: types.hpp:2430
Top broker holders (buy and sell sides).
Definition: types.hpp:2436
std::vector< BrokerHoldingEntry > sell
Definition: types.hpp:2438
std::string updated_at
Definition: types.hpp:2439
std::vector< BrokerHoldingEntry > buy
Definition: types.hpp:2437
One constituent stock of an index.
Definition: types.hpp:2619
bool delay
Definition: types.hpp:2632
std::string last_done
Definition: types.hpp:2622
std::vector< std::string > tags
Definition: types.hpp:2628
std::string intro
Definition: types.hpp:2629
std::string prev_close
Definition: types.hpp:2623
std::string amount
Definition: types.hpp:2626
std::string circulating_shares
Definition: types.hpp:2631
int32_t trade_status
Definition: types.hpp:2634
std::string symbol
Definition: types.hpp:2620
std::string name
Definition: types.hpp:2621
std::string market
Definition: types.hpp:2630
std::string inflow
Definition: types.hpp:2624
std::string total_shares
Definition: types.hpp:2627
std::string balance
Definition: types.hpp:2625
std::string chg
Definition: types.hpp:2633
Index constituent stocks with rise/fall/flat counts.
Definition: types.hpp:2639
std::vector< ConstituentStock > stocks
Definition: types.hpp:2643
int32_t fall_num
Definition: types.hpp:2640
int32_t rise_num
Definition: types.hpp:2642
int32_t flat_num
Definition: types.hpp:2641
Response containing trading status for all markets.
Definition: types.hpp:2421
std::vector< MarketTimeItem > market_time
Definition: types.hpp:2422
Current trading status and timestamps for one market.
Definition: types.hpp:2409
int32_t delay_trade_status
Definition: types.hpp:2413
int32_t delay_sub_status
Definition: types.hpp:2416
longbridge::Market market
Definition: types.hpp:2410
int32_t sub_status
Definition: types.hpp:2415
std::string delay_timestamp
Definition: types.hpp:2414
int32_t trade_status
Definition: types.hpp:2411
std::string timestamp
Definition: types.hpp:2412
One ranked security item.
Definition: types.hpp:2573
std::string volume_rate
Definition: types.hpp:2588
std::string change
Definition: types.hpp:2579
std::string pb_ttm
Definition: types.hpp:2589
std::string pre_post_chg
Definition: types.hpp:2584
std::string turnover_rate
Definition: types.hpp:2587
std::string code
Definition: types.hpp:2575
std::string last_done
Definition: types.hpp:2577
std::string pre_post_price
Definition: types.hpp:2583
std::string name
Definition: types.hpp:2576
std::string industry
Definition: types.hpp:2582
std::string chg
Definition: types.hpp:2578
std::string market_cap
Definition: types.hpp:2581
std::string amplitude
Definition: types.hpp:2585
std::string symbol
Definition: types.hpp:2574
std::string inflow
Definition: types.hpp:2580
std::string five_day_chg
Definition: types.hpp:2586
Response for rank_list.
Definition: types.hpp:2594
bool bmp
Definition: types.hpp:2595
std::vector< RankListItem > lists
Definition: types.hpp:2596
One top-movers event entry.
Definition: types.hpp:2555
std::string post
Definition: types.hpp:2560
TopMoversStock stock
Definition: types.hpp:2559
int64_t alert_type
Definition: types.hpp:2558
std::string alert_reason
Definition: types.hpp:2557
std::string timestamp
Definition: types.hpp:2556
Response for top_movers.
Definition: types.hpp:2565
std::string next_params
Pagination cursor as a JSON string.
Definition: types.hpp:2568
std::vector< TopMoversEvent > events
Definition: types.hpp:2566
Stock information within a top-movers event.
Definition: types.hpp:2541
std::string symbol
Definition: types.hpp:2542
std::vector< std::string > labels
Definition: types.hpp:2550
std::string name
Definition: types.hpp:2544
std::string code
Definition: types.hpp:2543
std::string change
Definition: types.hpp:2546
std::string full_name
Definition: types.hpp:2545
std::string last_done
Definition: types.hpp:2547
std::string market
Definition: types.hpp:2548
std::string logo
Definition: types.hpp:2549
Trade volume and amount aggregated at one price level.
Definition: types.hpp:2511
std::string buy_amount
Definition: types.hpp:2512
std::string price
Definition: types.hpp:2514
std::string sell_amount
Definition: types.hpp:2515
std::string neutral_amount
Definition: types.hpp:2513
Aggregate buy/sell/neutral trade statistics for a security.
Definition: types.hpp:2520
std::string total_amount
Definition: types.hpp:2527
std::string timestamp
Definition: types.hpp:2526
std::string trades_count
Definition: types.hpp:2529
std::string preclose
Definition: types.hpp:2524
std::string neutral
Definition: types.hpp:2523
std::string buy
Definition: types.hpp:2522
std::string sell
Definition: types.hpp:2525
std::vector< std::string > trade_date
Definition: types.hpp:2528
std::string avgprice
Definition: types.hpp:2521
Response for trade statistics including per-price-level breakdown.
Definition: types.hpp:2534
std::vector< TradePriceLevel > trades
Definition: types.hpp:2536
TradeStatistics statistics
Definition: types.hpp:2535
Brokers.
Definition: types.hpp:250
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:254
int32_t position
Position.
Definition: types.hpp:252
Candlestick.
Definition: types.hpp:553
int64_t timestamp
Timestamp.
Definition: types.hpp:567
TradeSession trade_session
Trade session.
Definition: types.hpp:569
Decimal turnover
Turnover.
Definition: types.hpp:565
Decimal close
Close price.
Definition: types.hpp:555
Decimal high
High price.
Definition: types.hpp:561
Decimal open
Open price.
Definition: types.hpp:557
int64_t volume
Volume.
Definition: types.hpp:563
Decimal low
Low price.
Definition: types.hpp:559
Capital distribution.
Definition: types.hpp:762
Decimal large
Large order.
Definition: types.hpp:764
Decimal small
Small order.
Definition: types.hpp:768
Decimal medium
Medium order.
Definition: types.hpp:766
Capital distribution response.
Definition: types.hpp:773
int64_t timestamp
Time.
Definition: types.hpp:775
CapitalDistribution capital_in
Inflow capital data.
Definition: types.hpp:777
CapitalDistribution capital_out
Outflow capital data.
Definition: types.hpp:779
Capital flow line.
Definition: types.hpp:753
Decimal inflow
Inflow capital data.
Definition: types.hpp:755
int64_t timestamp
Time.
Definition: types.hpp:757
An request for create watchlist group.
Definition: types.hpp:821
std::string name
Group name.
Definition: types.hpp:823
std::vector< std::string > securities
Securities.
Definition: types.hpp:825
Definition: types.hpp:226
std::optional< Decimal > price
Price.
Definition: types.hpp:230
int32_t position
Position.
Definition: types.hpp:228
int64_t volume
Volume.
Definition: types.hpp:232
int64_t order_num
Number of orders.
Definition: types.hpp:234
Derivative type.
Definition: types.hpp:122
uint8_t value
Definition: types.hpp:123
Filing item.
Definition: types.hpp:1252
std::string description
Description.
Definition: types.hpp:1258
std::string file_name
File name.
Definition: types.hpp:1260
std::string id
Filing ID.
Definition: types.hpp:1254
std::string title
Title.
Definition: types.hpp:1256
std::vector< std::string > file_urls
File URLs.
Definition: types.hpp:1262
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:1264
History market temperature response.
Definition: types.hpp:1243
Granularity granularity
Granularity.
Definition: types.hpp:1245
std::vector< MarketTemperature > records
Records.
Definition: types.hpp:1247
Intraday line.
Definition: types.hpp:682
Decimal avg_price
Definition: types.hpp:687
Decimal turnover
Definition: types.hpp:686
int64_t timestamp
Definition: types.hpp:684
Decimal price
Definition: types.hpp:683
int64_t volume
Definition: types.hpp:685
Issuer info.
Definition: types.hpp:712
int32_t issuer_id
Issuer ID.
Definition: types.hpp:714
std::string name_en
Issuer name (en)
Definition: types.hpp:718
std::string name_cn
Issuer name (zh-CN)
Definition: types.hpp:716
std::string name_hk
Issuer name (zh-HK)
Definition: types.hpp:720
Market temperature.
Definition: types.hpp:1215
int32_t temperature
Temperature value.
Definition: types.hpp:1217
int32_t valuation
Market valuation.
Definition: types.hpp:1221
std::string description
Temperature description.
Definition: types.hpp:1219
int32_t sentiment
Market sentiment.
Definition: types.hpp:1223
int64_t timestamp
Time.
Definition: types.hpp:1225
Market trading days.
Definition: types.hpp:744
std::vector< Date > half_trading_days
Half trading days.
Definition: types.hpp:748
std::vector< Date > trading_days
Trading days.
Definition: types.hpp:746
Market trading session.
Definition: types.hpp:735
std::vector< TradingSessionInfo > trade_session
Trading session.
Definition: types.hpp:739
Market market
Market.
Definition: types.hpp:737
Quote of option.
Definition: types.hpp:478
Decimal prev_close
Yesterday's close.
Definition: types.hpp:483
TradeStatus trade_status
Security trading status.
Definition: types.hpp:497
OptionDirection direction
Option direction.
Definition: types.hpp:513
int64_t open_interest
Number of open positions.
Definition: types.hpp:501
int64_t timestamp
Time of latest price.
Definition: types.hpp:491
Decimal contract_size
Contract size.
Definition: types.hpp:511
Decimal contract_multiplier
Contract multiplier.
Definition: types.hpp:507
Decimal turnover
Turnover.
Definition: types.hpp:495
Decimal strike_price
Strike price.
Definition: types.hpp:505
OptionType contract_type
Option type.
Definition: types.hpp:509
Date expiry_date
Exprity date.
Definition: types.hpp:503
int64_t volume
Volume.
Definition: types.hpp:493
Decimal low
Low.
Definition: types.hpp:489
Decimal last_done
Latest price.
Definition: types.hpp:481
Decimal historical_volatility
Underlying security historical volatility of the option.
Definition: types.hpp:515
Decimal high
High.
Definition: types.hpp:487
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:499
std::string symbol
Security code.
Definition: types.hpp:479
Decimal open
Open.
Definition: types.hpp:485
std::string underlying_symbol
Underlying security symbol of the option.
Definition: types.hpp:517
Definition: types.hpp:1347
std::string symbol
Definition: types.hpp:1348
std::vector< OptionVolumeDailyStat > stats
Definition: types.hpp:1349
Definition: types.hpp:1333
int64_t total_open_interest
Definition: types.hpp:1341
std::string symbol
Definition: types.hpp:1334
int64_t put_open_interest
Definition: types.hpp:1339
double pc_oi
Definition: types.hpp:1343
int64_t put_volume
Definition: types.hpp:1337
double pc_vol
Definition: types.hpp:1342
Date date
Definition: types.hpp:1335
int64_t call_volume
Definition: types.hpp:1336
int64_t call_open_interest
Definition: types.hpp:1338
int64_t total_volume
Definition: types.hpp:1340
Definition: types.hpp:1326
std::string symbol
Definition: types.hpp:1327
int64_t call_volume
Definition: types.hpp:1328
int64_t put_volume
Definition: types.hpp:1329
Definition: types.hpp:669
std::string name_hk
Participant name (zh-HK)
Definition: types.hpp:677
std::string name_en
Participant name (en)
Definition: types.hpp:675
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:671
std::string name_cn
Participant name (zh-CN)
Definition: types.hpp:673
Quote of US pre/post market.
Definition: types.hpp:406
int64_t timestamp
Time of latest price.
Definition: types.hpp:410
Decimal low
Low.
Definition: types.hpp:418
Decimal turnover
Turnover.
Definition: types.hpp:414
Decimal high
High.
Definition: types.hpp:416
int64_t volume
Volume.
Definition: types.hpp:412
Decimal last_done
Latest price.
Definition: types.hpp:408
Decimal prev_close
Close of the last trade session.
Definition: types.hpp:420
Brokers message.
Definition: types.hpp:259
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:265
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:263
std::string symbol
Security code.
Definition: types.hpp:261
Candlestick updated message.
Definition: types.hpp:574
Period period
Period type.
Definition: types.hpp:578
bool is_confirmed
Is confirmed.
Definition: types.hpp:582
std::string symbol
Security code.
Definition: types.hpp:576
Candlestick candlestick
Candlestick.
Definition: types.hpp:580
Depth message.
Definition: types.hpp:239
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:243
std::string symbol
Security code.
Definition: types.hpp:241
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:245
Quote message.
Definition: types.hpp:198
Decimal high
High.
Definition: types.hpp:206
TradeStatus trade_status
Security trading status.
Definition: types.hpp:216
int64_t timestamp
Time of latest price.
Definition: types.hpp:210
Decimal last_done
Latest price.
Definition: types.hpp:202
Decimal turnover
Turnover.
Definition: types.hpp:214
int64_t current_volume
Increase volume between pushes.
Definition: types.hpp:220
int64_t volume
Volume.
Definition: types.hpp:212
Decimal urrent_turnover
Increase turnover between pushes.
Definition: types.hpp:222
TradeSession trade_session
Trade session.
Definition: types.hpp:218
Decimal low
Low.
Definition: types.hpp:208
Decimal open
Open.
Definition: types.hpp:204
std::string symbol
Security code.
Definition: types.hpp:200
Trades message.
Definition: types.hpp:544
std::string symbol
Security code.
Definition: types.hpp:546
std::vector< Trade > trades
Trades data.
Definition: types.hpp:548
Quote package detail.
Definition: types.hpp:1191
int64_t start_at
Start at.
Definition: types.hpp:1199
std::string description
Description.
Definition: types.hpp:1197
std::string key
Key.
Definition: types.hpp:1193
int64_t end_at
End at.
Definition: types.hpp:1201
std::string name
Name.
Definition: types.hpp:1195
Real-time quote.
Definition: types.hpp:843
Decimal high
High.
Definition: types.hpp:851
Decimal open
Open.
Definition: types.hpp:849
std::string symbol
Security code.
Definition: types.hpp:845
Decimal turnover
Turnover.
Definition: types.hpp:859
int64_t timestamp
Time of latest price.
Definition: types.hpp:855
int64_t volume
Volume.
Definition: types.hpp:857
Decimal last_done
Latest price.
Definition: types.hpp:847
TradeStatus trade_status
Security trading status.
Definition: types.hpp:861
Decimal low
Low.
Definition: types.hpp:853
Security brokers.
Definition: types.hpp:661
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:665
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:663
Security calc index response.
Definition: types.hpp:951
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1021
std::optional< Decimal > change_rate
Change ratio.
Definition: types.hpp:959
std::optional< Decimal > lower_strike_price
Lower bound price.
Definition: types.hpp:997
std::optional< Date > expiry_date
Expiry date.
Definition: types.hpp:991
std::optional< Decimal > theta
Theta.
Definition: types.hpp:1029
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1019
std::optional< Decimal > leverage_ratio
Leverage ratio.
Definition: types.hpp:1017
std::optional< Decimal > five_day_change_rate
Five days change ratio.
Definition: types.hpp:983
std::optional< int64_t > open_interest
Open interest.
Definition: types.hpp:1023
std::optional< Decimal > ten_day_change_rate
Ten days change ratio.
Definition: types.hpp:985
std::optional< Decimal > volume_ratio
Volume ratio.
Definition: types.hpp:975
std::string symbol
Security code.
Definition: types.hpp:953
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1011
std::optional< Decimal > turnover
Turnover.
Definition: types.hpp:963
std::optional< Decimal > warrant_delta
Warrant delta.
Definition: types.hpp:1009
std::optional< Decimal > ytd_change_rate
Year-to-date change ratio.
Definition: types.hpp:965
std::optional< int64_t > volume
Volume.
Definition: types.hpp:961
std::optional< Decimal > capital_flow
Capital flow.
Definition: types.hpp:971
std::optional< int64_t > outstanding_qty
Outstanding quantity.
Definition: types.hpp:999
std::optional< Decimal > pe_ttm_ratio
PE (TTM)
Definition: types.hpp:977
std::optional< Decimal > last_done
Latest price.
Definition: types.hpp:955
std::optional< Decimal > delta
Delta.
Definition: types.hpp:1025
std::optional< Decimal > vega
Vega.
Definition: types.hpp:1031
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1005
std::optional< Decimal > outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1001
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:993
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1007
std::optional< Decimal > half_year_change_rate
Half year change ratio.
Definition: types.hpp:987
std::optional< Decimal > amplitude
Amplitude.
Definition: types.hpp:973
std::optional< Decimal > premium
Premium.
Definition: types.hpp:1003
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1015
std::optional< Decimal > turnover_rate
Turnover rate.
Definition: types.hpp:967
std::optional< Decimal > upper_strike_price
Upper bound price.
Definition: types.hpp:995
std::optional< Decimal > rho
Rho.
Definition: types.hpp:1033
std::optional< Decimal > dividend_ratio_ttm
Dividend ratio (TTM)
Definition: types.hpp:981
std::optional< Decimal > gamma
Gamma.
Definition: types.hpp:1027
std::optional< Decimal > change_value
Change value.
Definition: types.hpp:957
std::optional< Decimal > total_market_value
Total market value.
Definition: types.hpp:969
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1013
std::optional< Decimal > five_minutes_change_rate
Five minutes change ratio.
Definition: types.hpp:989
std::optional< Decimal > pb_ratio
PB.
Definition: types.hpp:979
Security depth.
Definition: types.hpp:652
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:654
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:656
Security.
Definition: types.hpp:329
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:337
std::string symbol
Security code.
Definition: types.hpp:331
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:333
std::string name_en
Security name (en)
Definition: types.hpp:335
Quote of securitity.
Definition: types.hpp:425
Decimal last_done
Latest price.
Definition: types.hpp:429
Decimal turnover
Turnover.
Definition: types.hpp:443
Decimal prev_close
Yesterday's close.
Definition: types.hpp:431
std::string symbol
Security code.
Definition: types.hpp:427
TradeStatus trade_status
Security trading status.
Definition: types.hpp:445
Decimal high
High.
Definition: types.hpp:435
std::optional< PrePostQuote > post_market_quote
Quote of US post market.
Definition: types.hpp:449
std::optional< PrePostQuote > pre_market_quote
Quote of US pre market.
Definition: types.hpp:447
int64_t volume
Volume.
Definition: types.hpp:441
std::optional< PrePostQuote > overnight_quote
Quote of US overnight market.
Definition: types.hpp:451
int64_t timestamp
Time of latest price.
Definition: types.hpp:439
Decimal open
Open.
Definition: types.hpp:433
Decimal low
Low.
Definition: types.hpp:437
The basic information of securities.
Definition: types.hpp:342
std::string currency
Trading currency.
Definition: types.hpp:354
int64_t hk_shares
HK shares (only HK stocks)
Definition: types.hpp:362
std::string symbol
Security code.
Definition: types.hpp:344
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:346
int64_t total_shares
Total shares.
Definition: types.hpp:358
Decimal eps
Earnings per share.
Definition: types.hpp:364
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:350
Decimal eps_ttm
Earnings per share (TTM)
Definition: types.hpp:366
Decimal dividend_yield
Dividend (per share), not the dividend yield (ratio).
Definition: types.hpp:370
SecurityBoard board
Board.
Definition: types.hpp:374
std::string exchange
Exchange which the security belongs to.
Definition: types.hpp:352
int32_t lot_size
Lot size.
Definition: types.hpp:356
DerivativeType stock_derivatives
Types of supported derivatives.
Definition: types.hpp:372
int64_t circulating_shares
Circulating shares.
Definition: types.hpp:360
std::string name_en
Security name (en)
Definition: types.hpp:348
Decimal bps
Net assets per share.
Definition: types.hpp:368
One short-position record, unified for US and HK markets.
Definition: types.hpp:1269
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1271
std::string close
Closing price.
Definition: types.hpp:1275
std::string days_to_cover
[US] Days-to-cover ratio
Definition: types.hpp:1281
std::string cost
[HK] Closing price (HK naming)
Definition: types.hpp:1287
std::string current_shares_short
[US] Number of short shares outstanding
Definition: types.hpp:1277
std::string rate
Short ratio.
Definition: types.hpp:1273
std::string balance
[HK] Short position balance
Definition: types.hpp:1285
std::string amount
[HK] Short sale amount (HKD)
Definition: types.hpp:1283
std::string avg_daily_share_volume
[US] Average daily share volume
Definition: types.hpp:1279
Short interest / positions response (HK or US).
Definition: types.hpp:1292
std::vector< ShortPositionsItem > data
Short position records.
Definition: types.hpp:1294
One short-trade record, unified for US and HK markets.
Definition: types.hpp:1299
std::string rate
Short ratio.
Definition: types.hpp:1303
std::string total_amount
[US] Total short amount
Definition: types.hpp:1311
std::string balance
[HK] Short position balance
Definition: types.hpp:1315
std::string amount
[HK] Short sale turnover amount (HKD)
Definition: types.hpp:1313
std::string close
Closing price.
Definition: types.hpp:1305
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1301
std::string ny_amount
[US] NYSE short sale volume
Definition: types.hpp:1309
std::string nus_amount
[US] NASDAQ short sale volume
Definition: types.hpp:1307
Short trade records response (HK or US).
Definition: types.hpp:1320
std::vector< ShortTradesItem > data
Short trade records.
Definition: types.hpp:1322
Strike price info.
Definition: types.hpp:699
std::string put_symbol
Security code of put option.
Definition: types.hpp:705
Decimal price
Strike price.
Definition: types.hpp:701
bool standard
Is standard.
Definition: types.hpp:707
std::string call_symbol
Security code of call option.
Definition: types.hpp:703
Subscription.
Definition: types.hpp:174
SubFlags sub_types
Subscription flags.
Definition: types.hpp:178
std::vector< Period > candlesticks
Candlesticks.
Definition: types.hpp:180
std::string symbol
Security code.
Definition: types.hpp:176
Trade.
Definition: types.hpp:533
TradeSession trade_session
Definition: types.hpp:539
Decimal price
Definition: types.hpp:534
int64_t timestamp
Definition: types.hpp:536
std::string trade_type
Definition: types.hpp:537
int64_t volume
Definition: types.hpp:535
TradeDirection direction
Definition: types.hpp:538
Definition: types.hpp:724
Time end_time
End trading time.
Definition: types.hpp:728
Time begin_time
Being trading time.
Definition: types.hpp:726
TradeSession trade_session
Trading session.
Definition: types.hpp:730
An request for update watchlist group.
Definition: types.hpp:830
int64_t id
Group id.
Definition: types.hpp:832
std::optional< std::vector< std::string > > securities
Securities.
Definition: types.hpp:836
std::optional< std::string > name
Group name.
Definition: types.hpp:834
SecuritiesUpdateMode mode
Securities Update Mode.
Definition: types.hpp:838
Warrant info.
Definition: types.hpp:1129
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1175
std::string name
Security name.
Definition: types.hpp:1135
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1169
std::optional< Decimal > upper_strike_price
Upper strike price.
Definition: types.hpp:1151
WarrantType warrant_type
Warrant type.
Definition: types.hpp:1133
std::string symbol
Security code.
Definition: types.hpp:1131
int64_t volume
Volume.
Definition: types.hpp:1143
Decimal turnover
Turnover.
Definition: types.hpp:1145
Date expiry_date
Expiry date.
Definition: types.hpp:1147
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1163
Decimal change_value
Quote change.
Definition: types.hpp:1141
std::optional< Decimal > delta
Delta.
Definition: types.hpp:1165
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1177
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1167
int64_t outstanding_qty
Outstanding quantity.
Definition: types.hpp:1155
Decimal change_rate
Quote change rate.
Definition: types.hpp:1139
WarrantStatus status
Status.
Definition: types.hpp:1179
Decimal leverage_ratio
Leverage ratio.
Definition: types.hpp:1173
Decimal last_done
Latest price.
Definition: types.hpp:1137
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1161
Decimal premium
Premium.
Definition: types.hpp:1159
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:1149
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1171
std::optional< Decimal > lower_strike_price
Lower strike price.
Definition: types.hpp:1153
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1157
Quote of warrant.
Definition: types.hpp:604
Decimal strike_price
Strike price.
Definition: types.hpp:639
Date expiry_date
Exprity date.
Definition: types.hpp:627
Decimal open
Open.
Definition: types.hpp:611
Decimal turnover
Turnover.
Definition: types.hpp:621
int64_t volume
Volume.
Definition: types.hpp:619
WarrantType category
Warrant type.
Definition: types.hpp:637
Decimal low
Low.
Definition: types.hpp:615
TradeStatus trade_status
Security trading status.
Definition: types.hpp:623
Decimal upper_strike_price
Upper bound price.
Definition: types.hpp:641
int64_t outstanding_quantity
Outstanding quantity.
Definition: types.hpp:633
Decimal prev_close
Yesterday's close.
Definition: types.hpp:609
int64_t timestamp
Time of latest price.
Definition: types.hpp:617
Date last_trade_date
Last tradalbe date.
Definition: types.hpp:629
std::string symbol
Security code.
Definition: types.hpp:605
Decimal high
High.
Definition: types.hpp:613
Decimal lower_strike_price
Lower bound price.
Definition: types.hpp:643
Decimal last_done
Latest price.
Definition: types.hpp:607
Decimal conversion_ratio
Conversion ratio.
Definition: types.hpp:635
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:625
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:631
std::string underlying_symbol
Underlying security symbol of the warrant.
Definition: types.hpp:647
Decimal call_price
Call price.
Definition: types.hpp:645
Watchlist group.
Definition: types.hpp:799
int64_t id
Group id.
Definition: types.hpp:801
std::vector< WatchlistSecurity > securities
Securities.
Definition: types.hpp:805
std::string name
Group name.
Definition: types.hpp:803
Watchlist security.
Definition: types.hpp:784
std::string symbol
Security symbol.
Definition: types.hpp:786
std::optional< Decimal > watched_price
Watched price.
Definition: types.hpp:792
std::string name
Security name.
Definition: types.hpp:790
int64_t watched_at
Watched time.
Definition: types.hpp:794
Market market
Market.
Definition: types.hpp:788
Response for SharelistContext::detail.
Definition: types.hpp:3732
SharelistScopes scopes
Subscription scope flags for the current user.
Definition: types.hpp:3736
SharelistInfo sharelist
Sharelist info including constituent stocks.
Definition: types.hpp:3734
Sharelist metadata and constituent stocks.
Definition: types.hpp:3688
int64_t subscribers_count
Number of subscribers.
Definition: types.hpp:3698
int64_t created_at
Creation time (Unix timestamp)
Definition: types.hpp:3700
std::string this_year_chg
YTD change percentage.
Definition: types.hpp:3704
std::string description
Description.
Definition: types.hpp:3694
int64_t id
Sharelist ID.
Definition: types.hpp:3690
std::string cover
Cover image URL.
Definition: types.hpp:3696
std::vector< SharelistStock > stocks
Constituent stocks.
Definition: types.hpp:3708
int32_t sharelist_type
Sharelist type: 0=regular, 3=official, 4=industry.
Definition: types.hpp:3714
std::string name
Name.
Definition: types.hpp:3692
bool subscribed
Whether the current user is subscribed.
Definition: types.hpp:3710
std::string creator
Creator info (serialised JSON)
Definition: types.hpp:3706
int64_t edited_at
Last stock edit time (Unix timestamp)
Definition: types.hpp:3702
std::string industry_code
Industry code (for industry sharelists)
Definition: types.hpp:3716
std::string chg
Day change percentage.
Definition: types.hpp:3712
Response for SharelistContext::list and SharelistContext::popular.
Definition: types.hpp:3721
std::vector< SharelistInfo > sharelists
User's own and followed sharelists.
Definition: types.hpp:3723
std::vector< SharelistInfo > subscribed_sharelists
Subscribed sharelists (may be empty in popular response)
Definition: types.hpp:3725
std::string tail_mark
Pagination cursor for the subscribed list.
Definition: types.hpp:3727
Subscription scope flags for a sharelist.
Definition: types.hpp:3679
bool subscription
Whether the current user is subscribed to this sharelist.
Definition: types.hpp:3681
bool is_self
Whether the current user is the creator of this sharelist.
Definition: types.hpp:3683
A security constituent of a sharelist.
Definition: types.hpp:3656
std::string unread_change_log_category
Unread change log category.
Definition: types.hpp:3668
std::string name
Security name.
Definition: types.hpp:3660
std::string market
Market, e.g. "HK".
Definition: types.hpp:3662
std::optional< std::string > change
Day change percentage (absent when quote unavailable)
Definition: types.hpp:3670
std::string intro
Brief description.
Definition: types.hpp:3666
std::string code
Ticker code.
Definition: types.hpp:3664
std::string symbol
Security symbol.
Definition: types.hpp:3658
std::optional< std::string > last_done
Latest price (absent when quote unavailable)
Definition: types.hpp:3672
std::optional< int32_t > trade_status
Trade status code (absent when quote unavailable)
Definition: types.hpp:3674
Account balance.
Definition: types.hpp:1888
Decimal total_cash
Total cash.
Definition: types.hpp:1890
Decimal max_finance_amount
Maximum financing amount.
Definition: types.hpp:1892
std::vector< FrozenTransactionFee > frozen_transaction_fees
Frozen transaction fees.
Definition: types.hpp:1912
Decimal maintenance_margin
Maintenance margin.
Definition: types.hpp:1908
Decimal net_assets
Net assets.
Definition: types.hpp:1904
Decimal init_margin
Initial margin.
Definition: types.hpp:1906
std::string currency
Currency.
Definition: types.hpp:1900
Decimal buy_power
Buy power.
Definition: types.hpp:1910
Decimal margin_call
Margin call.
Definition: types.hpp:1898
Decimal remaining_finance_amount
Remaining financing amount.
Definition: types.hpp:1894
int32_t risk_level
Risk control level.
Definition: types.hpp:1896
std::vector< CashInfo > cash_infos
Cash details.
Definition: types.hpp:1902
All executions response.
Definition: types.hpp:1411
bool has_more
Has more records.
Definition: types.hpp:1413
std::vector< Execution > trades
Executions.
Definition: types.hpp:1415
Attached order detail.
Definition: types.hpp:1572
Decimal quantity
Definition: types.hpp:1576
std::optional< OutsideRTH > force_only_rth
Definition: types.hpp:1589
Decimal executed_amount
Definition: types.hpp:1585
std::string counter_id
Definition: types.hpp:1583
bool withdrawn
Definition: types.hpp:1580
std::optional< Decimal > trigger_price
Definition: types.hpp:1575
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1592
OrderType activate_order_type
Definition: types.hpp:1591
std::string order_id
Definition: types.hpp:1573
int64_t updated_at
Definition: types.hpp:1579
std::optional< Decimal > executed_price
Definition: types.hpp:1588
Decimal executed_qty
Definition: types.hpp:1577
AttachedOrderType attached_type_display
Definition: types.hpp:1574
std::optional< Date > gtd
Definition: types.hpp:1581
TimeInForceType time_in_force
Definition: types.hpp:1582
std::optional< Decimal > submit_price
Definition: types.hpp:1593
OrderTag tag
Definition: types.hpp:1586
std::optional< TriggerStatus > trigger_status
Definition: types.hpp:1584
int64_t submitted_at
Definition: types.hpp:1587
bool reviewed
Definition: types.hpp:1590
OrderStatus status
Definition: types.hpp:1578
Cash flow.
Definition: types.hpp:1941
std::optional< std::string > symbol
Associated Stock code information.
Definition: types.hpp:1955
std::string transaction_flow_name
Cash flow name.
Definition: types.hpp:1943
std::string description
Cash flow description.
Definition: types.hpp:1957
int64_t business_time
Business time.
Definition: types.hpp:1953
CashFlowDirection direction
Outflow direction.
Definition: types.hpp:1945
Decimal balance
Cash amount.
Definition: types.hpp:1949
BalanceType business_type
Balance type.
Definition: types.hpp:1947
std::string currency
Cash currency.
Definition: types.hpp:1951
Cash info.
Definition: types.hpp:1866
Decimal frozen_cash
Frozen cash.
Definition: types.hpp:1872
Decimal settling_cash
Cash to be settled.
Definition: types.hpp:1874
Decimal withdraw_cash
Withdraw cash.
Definition: types.hpp:1868
Decimal available_cash
Available cash.
Definition: types.hpp:1870
std::string currency
Currency.
Definition: types.hpp:1876
Options for estimate maximum purchase quantity.
Definition: types.hpp:2244
std::string symbol
Security code.
Definition: types.hpp:2246
OrderType order_type
Order type.
Definition: types.hpp:2248
bool fractional_shares
Get the maximum fractional share buying power.
Definition: types.hpp:2259
std::optional< Decimal > price
Estimated order price.
Definition: types.hpp:2252
OrderSide side
Order side.
Definition: types.hpp:2250
std::optional< std::string > currency
Settlement currency.
Definition: types.hpp:2254
std::optional< std::string > order_id
Definition: types.hpp:2257
Response for estimate maximum purchase quantity.
Definition: types.hpp:2264
Decimal margin_max_qty
Margin available quantity.
Definition: types.hpp:2268
Decimal cash_max_qty
Cash available quantity.
Definition: types.hpp:2266
Exexution.
Definition: types.hpp:1365
Decimal price
Definition: types.hpp:1371
Decimal quantity
Definition: types.hpp:1370
std::string trade_id
Definition: types.hpp:1367
std::string symbol
Definition: types.hpp:1368
std::string order_id
Definition: types.hpp:1366
int64_t trade_done_at
Definition: types.hpp:1369
Frozen transaction fee.
Definition: types.hpp:1881
std::string currency
Definition: types.hpp:1882
Decimal frozen_transaction_fee
Definition: types.hpp:1883
Fund position channel.
Definition: types.hpp:2012
std::string account_channel
Account type.
Definition: types.hpp:2014
std::vector< FundPosition > positions
Fund positions.
Definition: types.hpp:2016
Fund position.
Definition: types.hpp:1993
Decimal holding_units
Holding units.
Definition: types.hpp:2007
std::string currency
Currency.
Definition: types.hpp:2003
std::string symbol_name
Fund name.
Definition: types.hpp:2001
Decimal current_net_asset_value
Current equity.
Definition: types.hpp:1997
int64_t net_asset_value_day
Current equity time.
Definition: types.hpp:1999
Decimal cost_net_asset_value
Net cost.
Definition: types.hpp:2005
std::string symbol
Fund ISIN code.
Definition: types.hpp:1995
Fund positions response.
Definition: types.hpp:2021
std::vector< FundPositionChannel > channels
Channels.
Definition: types.hpp:2023
Options for get all executions request.
Definition: types.hpp:1396
std::optional< uint64_t > page
Page number.
Definition: types.hpp:1406
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1402
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1400
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1404
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1398
Options for submit order request.
Definition: types.hpp:1962
int64_t end_at
End time.
Definition: types.hpp:1966
std::optional< uintptr_t > page
Page number.
Definition: types.hpp:1972
int64_t start_at
Start time.
Definition: types.hpp:1964
std::optional< uintptr_t > size
Page size.
Definition: types.hpp:1974
std::optional< BalanceType > business_type
Business type.
Definition: types.hpp:1968
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1970
Options for get fund positions request.
Definition: types.hpp:1979
std::optional< std::vector< std::string > > symbols
Fund symbols.
Definition: types.hpp:1981
Options for get history executions request.
Definition: types.hpp:1376
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1382
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1380
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1378
Options for get history orders request.
Definition: types.hpp:1752
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1764
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1758
std::optional< Market > market
Market.
Definition: types.hpp:1760
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1754
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1756
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1762
Options for get stock positions request.
Definition: types.hpp:1986
std::optional< std::vector< std::string > > symbols
Stock symbols.
Definition: types.hpp:1988
Options for get today executions request.
Definition: types.hpp:1387
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1391
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1389
Options for get today orders request.
Definition: types.hpp:1769
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1771
std::optional< bool > is_attached
Whether to include attached orders.
Definition: types.hpp:1781
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1779
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1773
std::optional< Market > market
Market.
Definition: types.hpp:1777
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1775
Margin ratio.
Definition: types.hpp:2066
Decimal mm_factor
Maintain the initial margin ratio.
Definition: types.hpp:2070
Decimal im_factor
Initial margin ratio.
Definition: types.hpp:2068
Decimal fm_factor
Forced close-out margin ratio.
Definition: types.hpp:2072
Order charge detail.
Definition: types.hpp:2146
std::string currency
Settlement currency.
Definition: types.hpp:2150
std::vector< OrderChargeItem > items
Order charge items.
Definition: types.hpp:2152
Decimal total_amount
Total charges amount.
Definition: types.hpp:2148
Order charge fee.
Definition: types.hpp:2122
Decimal amount
Charge amount.
Definition: types.hpp:2128
std::string currency
Charge currency.
Definition: types.hpp:2130
std::string code
Charge code.
Definition: types.hpp:2124
std::string name
Charge name.
Definition: types.hpp:2126
Order charge item.
Definition: types.hpp:2135
std::string name
Charge category name.
Definition: types.hpp:2139
std::vector< OrderChargeFee > fees
Charge details.
Definition: types.hpp:2141
ChargeCategoryCode code
Charge category code.
Definition: types.hpp:2137
Order detail.
Definition: types.hpp:2157
int64_t submitted_at
Submitted time.
Definition: types.hpp:2173
std::optional< std::string > free_currency
Commission-free currency.
Definition: types.hpp:2221
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:2203
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:2207
Decimal quantity
Submitted quantity.
Definition: types.hpp:2165
std::optional< std::string > deductions_currency
Deduction currency.
Definition: types.hpp:2227
std::string currency
Currency.
Definition: types.hpp:2205
OrderStatus status
Order status.
Definition: types.hpp:2161
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:2211
OrderSide side
Order side.
Definition: types.hpp:2175
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:2181
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:2213
std::string msg
Rejected Message or remark.
Definition: types.hpp:2185
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:2193
std::optional< Decimal > platform_deducted_amount
Platform deduction amount.
Definition: types.hpp:2231
CommissionFreeStatus free_status
Commission-free Status.
Definition: types.hpp:2217
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:2209
std::string remark
Remark.
Definition: types.hpp:2215
OrderTag tag
Order tag.
Definition: types.hpp:2187
std::string order_id
Order ID.
Definition: types.hpp:2159
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:2191
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:2195
std::optional< Decimal > free_amount
Commission-free amount.
Definition: types.hpp:2219
DeductionStatus deductions_status
Deduction status.
Definition: types.hpp:2223
std::string symbol
Security code.
Definition: types.hpp:2177
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:2183
std::vector< AttachedOrderDetail > attached_orders
Attached orders.
Definition: types.hpp:2239
std::string stock_name
Stock name.
Definition: types.hpp:2163
OrderType order_type
Order type.
Definition: types.hpp:2179
DeductionStatus platform_deducted_status
Platform fee deduction status.
Definition: types.hpp:2229
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:2201
std::optional< Decimal > deductions_amount
Deduction amount.
Definition: types.hpp:2225
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:2189
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:2199
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:2167
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:2169
std::vector< OrderHistoryDetail > history
Order history details.
Definition: types.hpp:2235
std::optional< std::string > platform_deducted_currency
Platform deduction currency.
Definition: types.hpp:2233
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:2171
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:2197
std::optional< OrderChargeDetail > charge_detail
Order charges (maybe null)
Definition: types.hpp:2237
Order history detail.
Definition: types.hpp:2105
Decimal quantity
Definition: types.hpp:2111
Decimal price
Definition: types.hpp:2108
std::string msg
Execution or error message.
Definition: types.hpp:2115
OrderStatus status
Order status.
Definition: types.hpp:2113
int64_t time
Occurrence time.
Definition: types.hpp:2117
Order.
Definition: types.hpp:1632
Decimal quantity
Submitted quantity.
Definition: types.hpp:1640
int64_t submitted_at
Submitted time.
Definition: types.hpp:1648
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:1672
OrderTag tag
Order tag.
Definition: types.hpp:1662
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:1658
OrderStatus status
Order status.
Definition: types.hpp:1636
std::string currency
Currency.
Definition: types.hpp:1680
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:1664
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1688
std::string stock_name
Stock name.
Definition: types.hpp:1638
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:1666
OrderSide side
Order side.
Definition: types.hpp:1650
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1646
std::string symbol
Security code.
Definition: types.hpp:1652
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:1644
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:1674
std::string msg
Rejected Message or remark.
Definition: types.hpp:1660
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1678
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:1656
std::string order_id
Order ID.
Definition: types.hpp:1634
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:1668
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:1682
OrderType order_type
Order type.
Definition: types.hpp:1654
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1684
std::string remark
Remark.
Definition: types.hpp:1690
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1642
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:1676
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1670
std::vector< AttachedOrderDetail > attached_orders
Attached orders.
Definition: types.hpp:1692
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1686
Order changed message.
Definition: types.hpp:1697
std::string order_id
Order ID.
Definition: types.hpp:1715
Decimal submitted_quantity
Submitted quantity.
Definition: types.hpp:1703
int64_t submitted_at
Submitted time.
Definition: types.hpp:1721
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1737
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1735
std::string currency
Currency.
Definition: types.hpp:1717
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1713
std::string stock_name
Stock name.
Definition: types.hpp:1701
std::optional< Decimal > trigger_price
Order trigger price.
Definition: types.hpp:1725
OrderType order_type
Order type.
Definition: types.hpp:1707
std::optional< Decimal > last_price
Last price.
Definition: types.hpp:1745
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1731
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1711
std::string msg
Rejected message or remark.
Definition: types.hpp:1727
int64_t updated_at
Last updated time.
Definition: types.hpp:1723
OrderSide side
Order side.
Definition: types.hpp:1699
std::optional< Decimal > limit_offset
Limit offset amount.
Definition: types.hpp:1739
OrderStatus status
Order status.
Definition: types.hpp:1719
std::string remark
Remark message.
Definition: types.hpp:1747
Decimal submitted_price
Submitted price.
Definition: types.hpp:1709
OrderTag tag
Order tag.
Definition: types.hpp:1729
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1733
std::string symbol
Order symbol.
Definition: types.hpp:1705
std::optional< Decimal > last_share
Last share.
Definition: types.hpp:1743
std::string account_no
Account no.
Definition: types.hpp:1741
Replace attached order params.
Definition: types.hpp:1612
std::optional< int64_t > expire_time
Definition: types.hpp:1617
std::optional< Decimal > stop_loss_submit_price
Definition: types.hpp:1620
std::optional< Decimal > stop_loss_price
Definition: types.hpp:1615
std::optional< bool > cancel_all_attached
Definition: types.hpp:1624
std::optional< int64_t > main_id
Definition: types.hpp:1625
std::optional< OrderType > activate_order_type
Definition: types.hpp:1618
std::optional< Decimal > market_price
Definition: types.hpp:1627
std::optional< TimeInForceType > time_in_force
Definition: types.hpp:1616
std::optional< int64_t > stop_loss_id
Definition: types.hpp:1623
std::optional< Decimal > profit_taker_submit_price
Definition: types.hpp:1619
AttachedOrderType attached_order_type
Definition: types.hpp:1613
std::optional< Decimal > profit_taker_price
Definition: types.hpp:1614
std::optional< int64_t > profit_taker_id
Definition: types.hpp:1622
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1621
std::optional< Decimal > quantity
Definition: types.hpp:1626
Options for replace order request.
Definition: types.hpp:1786
std::string order_id
Order ID.
Definition: types.hpp:1788
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1802
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1806
std::optional< Decimal > price
Price.
Definition: types.hpp:1792
std::optional< Decimal > trigger_price
Trigger price.
Definition: types.hpp:1794
Decimal quantity
Quantity.
Definition: types.hpp:1790
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1804
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1800
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1798
std::optional< Decimal > limit_offset
Limit offset.
Definition: types.hpp:1796
std::optional< std::string > remark
Remark.
Definition: types.hpp:1808
std::optional< ReplaceAttachedParams > attached_params
Attached order params.
Definition: types.hpp:1810
Stock position channel.
Definition: types.hpp:2050
std::string account_channel
Account type.
Definition: types.hpp:2052
std::vector< StockPosition > positions
Stock positions.
Definition: types.hpp:2054
Stock position.
Definition: types.hpp:2028
std::optional< Decimal > init_quantity
Initial position before market opening.
Definition: types.hpp:2045
Decimal quantity
The number of holdings.
Definition: types.hpp:2034
std::string symbol
Stock code.
Definition: types.hpp:2030
std::string symbol_name
Stock name.
Definition: types.hpp:2032
Decimal available_quantity
Available quantity.
Definition: types.hpp:2036
Decimal cost_price
Definition: types.hpp:2041
Market market
Market.
Definition: types.hpp:2043
std::string currency
Currency.
Definition: types.hpp:2038
Stock positions response.
Definition: types.hpp:2059
std::vector< StockPositionChannel > channels
Channels.
Definition: types.hpp:2061
Submit attached order params.
Definition: types.hpp:1598
std::optional< OrderType > activate_order_type
Definition: types.hpp:1604
std::optional< int64_t > expire_time
Definition: types.hpp:1603
std::optional< Decimal > profit_taker_submit_price
Definition: types.hpp:1605
std::optional< TimeInForceType > time_in_force
Definition: types.hpp:1602
AttachedOrderType attached_order_type
Definition: types.hpp:1599
std::optional< Decimal > stop_loss_submit_price
Definition: types.hpp:1606
std::optional< Decimal > stop_loss_price
Definition: types.hpp:1601
std::optional< Decimal > profit_taker_price
Definition: types.hpp:1600
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1607
Options for submit order request.
Definition: types.hpp:1815
std::optional< Decimal > trailing_percent
Trailing percent (TSLPPCT / TSMAPCT Required)
Definition: types.hpp:1835
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1842
std::optional< std::string > client_request_id
Definition: types.hpp:1852
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1844
OrderType order_type
Order type.
Definition: types.hpp:1819
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:1825
std::optional< std::string > remark
Remark (Maximum 64 characters)
Definition: types.hpp:1848
OrderSide side
Order side.
Definition: types.hpp:1821
std::optional< Decimal > limit_offset
Limit offset amount (TSLPAMT / TSLPPCT Required)
Definition: types.hpp:1831
std::optional< Decimal > submitted_price
Submitted price.
Definition: types.hpp:1827
std::optional< Decimal > trailing_amount
Trailing amount (TSLPAMT / TSMAMT Required)
Definition: types.hpp:1833
std::string symbol
Security symbol.
Definition: types.hpp:1817
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1846
std::optional< SubmitAttachedParams > attached_params
Attached order params.
Definition: types.hpp:1854
std::optional< Decimal > trigger_price
Trigger price (LIT / MIT Required)
Definition: types.hpp:1829
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:1840
std::optional< Date > expire_date
Definition: types.hpp:1838
Decimal submitted_quantity
Submitted price.
Definition: types.hpp:1823
Response for submit order request.
Definition: types.hpp:1859
std::string order_id
Order id.
Definition: types.hpp:1861