Longbridge OpenAPI C++ SDK
types.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "decimal.hpp"
4 #include <map>
5 #include <optional>
6 #include <vector>
7 
8 namespace longbridge {
9 
10 struct Date
11 {
12  int32_t year;
13  uint8_t month;
14  uint8_t day;
15 };
16 
17 struct Time
18 {
19  uint8_t hour;
20  uint8_t minute;
21  uint8_t second;
22 };
23 
24 struct DateTime
25 {
28 };
29 
31 enum class Language
32 {
34  ZH_CN,
36  ZH_HK,
38  EN,
39 };
40 
43 {
45  Realtime,
47  Confirmed,
48 };
49 
51 enum class Market
52 {
54  Unknown,
56  US,
58  HK,
60  CN,
62  SG,
64  Crypto,
65 };
66 
67 namespace quote {
68 
69 enum class TradeStatus;
70 
72 class SubFlags
73 {
74 private:
75  uint8_t value_;
76 
77 public:
78  inline SubFlags(uint8_t value) { value_ = value; }
79 
80  inline operator uint8_t() const { return value_; }
81 
82  inline SubFlags operator|(const SubFlags& other) const
83  {
84  return SubFlags(value_ | other.value_);
85  }
86 
87  inline SubFlags& operator|=(const SubFlags& other)
88  {
89  value_ |= other.value_;
90  return *this;
91  }
92 
93  inline SubFlags operator&(const SubFlags& other) const
94  {
95  return SubFlags(value_ & other.value_);
96  }
97 
98  inline SubFlags& operator&=(const SubFlags& other)
99  {
100  value_ &= other.value_;
101  return *this;
102  }
103 
104  inline bool operator==(const SubFlags& other) const
105  {
106  return value_ == other.value_;
107  }
108 
109  inline bool contains(const SubFlags& other) const
110  {
111  return (value_ & other.value_) > 0;
112  }
113 
114  static SubFlags QUOTE();
115  static SubFlags DEPTH();
116  static SubFlags BROKER();
117  static SubFlags TRADE();
118 };
119 
122 {
123  uint8_t value;
124 
125  bool has_option();
126  bool has_warrant();
127 };
128 
130 enum class Period
131 {
133  Unknown,
135  Min1,
137  Min2,
139  Min3,
141  Min5,
143  Min10,
145  Min15,
147  Min20,
149  Min30,
151  Min45,
153  Min60,
155  Min120,
157  Min180,
159  Min240,
161  Day,
163  Week,
165  Month,
167  Quarter,
169  Year,
170 };
171 
174 {
176  std::string symbol;
180  std::vector<Period> candlesticks;
181 };
182 
184 enum class TradeSession
185 {
187  Intraday,
189  Pre,
191  Post,
193  Overnight,
194 };
195 
197 struct PushQuote
198 {
200  std::string symbol;
210  int64_t timestamp;
212  int64_t volume;
220  int64_t current_volume;
223 };
224 
225 struct Depth
226 {
228  int32_t position;
230  std::optional<Decimal> price;
232  int64_t volume;
234  int64_t order_num;
235 };
236 
238 struct PushDepth
239 {
241  std::string symbol;
243  std::vector<Depth> asks;
245  std::vector<Depth> bids;
246 };
247 
249 struct Brokers
250 {
252  int32_t position;
254  std::vector<int32_t> broker_ids;
255 };
256 
259 {
261  std::string symbol;
263  std::vector<Brokers> ask_brokers;
265  std::vector<Brokers> bid_brokers;
266 };
267 
269 enum class SecurityBoard
270 {
272  Unknown,
274  USMain,
276  USPink,
278  USDJI,
280  USNSDQ,
282  USSector,
284  USOption,
286  USOptionS,
288  HKEquity,
290  HKPreIPO,
292  HKWarrant,
294  HKHS,
296  HKSector,
302  SHSTAR,
304  CNIX,
306  CNSector,
312  SZGEMConnect,
316  SGMain,
318  STI,
320  SGSector,
322  SPXIndex,
324  VIXIndex,
325 };
326 
328 struct Security
329 {
331  std::string symbol;
333  std::string name_cn;
335  std::string name_en;
337  std::string name_hk;
338 };
339 
342 {
344  std::string symbol;
346  std::string name_cn;
348  std::string name_en;
350  std::string name_hk;
352  std::string exchange;
354  std::string currency;
356  int32_t lot_size;
358  int64_t total_shares;
362  int64_t hk_shares;
375 };
376 
378 enum class TradeStatus
379 {
381  Normal,
383  Halted,
385  Delisted,
387  Fuse,
389  PrepareList,
391  CodeMoved,
393  ToBeOpened,
397  Expired,
401  SuspendTrade,
402 };
403 
406 {
410  int64_t timestamp;
412  int64_t volume;
421 };
422 
425 {
427  std::string symbol;
439  int64_t timestamp;
441  int64_t volume;
447  std::optional<PrePostQuote> pre_market_quote;
449  std::optional<PrePostQuote> post_market_quote;
451  std::optional<PrePostQuote> overnight_quote;
452 };
453 
455 enum class OptionType
456 {
458  Unknown,
460  American,
462  Europe,
463 };
464 
466 enum class OptionDirection
467 {
469  Unknown,
471  Put,
473  Call,
474 };
475 
478 {
479  std::string symbol;
491  int64_t timestamp;
493  int64_t volume;
501  int64_t open_interest;
517  std::string underlying_symbol;
518 };
519 
521 enum class TradeDirection
522 {
524  Neutral,
526  Down,
528  Up
529 };
530 
532 struct Trade
533 {
535  int64_t volume;
536  int64_t timestamp;
537  std::string trade_type;
540 };
541 
544 {
546  std::string symbol;
548  std::vector<Trade> trades;
549 };
550 
553 {
563  int64_t volume;
567  int64_t timestamp;
570 };
571 
574 {
576  std::string symbol;
583 };
584 
586 enum class WarrantType
587 {
589  Unknown,
591  Call,
593  Put,
595  Bull,
597  Bear,
599  Inline
600 };
601 
604 {
605  std::string symbol;
617  int64_t timestamp;
619  int64_t volume;
647  std::string underlying_symbol;
648 };
649 
652 {
654  std::vector<Depth> asks;
656  std::vector<Depth> bids;
657 };
658 
661 {
663  std::vector<Brokers> ask_brokers;
665  std::vector<Brokers> bid_brokers;
666 };
667 
669 {
671  std::vector<int32_t> broker_ids;
673  std::string name_cn;
675  std::string name_en;
677  std::string name_hk;
678 };
679 
682 {
684  int64_t timestamp;
685  int64_t volume;
688 };
689 
691 enum class AdjustType
692 {
693  NoAdjust,
695 };
696 
699 {
703  std::string call_symbol;
705  std::string put_symbol;
707  bool standard;
708 };
709 
712 {
714  int32_t issuer_id;
716  std::string name_cn;
718  std::string name_en;
720  std::string name_hk;
721 };
722 
724 {
731 };
732 
735 {
739  std::vector<TradingSessionInfo> trade_session;
740 };
741 
744 {
746  std::vector<Date> trading_days;
748  std::vector<Date> half_trading_days;
749 };
750 
753 {
757  int64_t timestamp;
758 };
759 
762 {
769 };
770 
773 {
775  int64_t timestamp;
780 };
781 
784 {
786  std::string symbol;
790  std::string name;
792  std::optional<Decimal> watched_price;
794  int64_t watched_at;
795 };
796 
799 {
801  int64_t id;
803  std::string name;
805  std::vector<WatchlistSecurity> securities;
806 };
807 
810 {
812  Add,
814  Remove,
816  Replace,
817 };
818 
821 {
823  std::string name;
825  std::vector<std::string> securities;
826 };
827 
830 {
832  int64_t id;
834  std::optional<std::string> name;
836  std::optional<std::vector<std::string>> securities;
839 };
840 
843 {
845  std::string symbol;
855  int64_t timestamp;
857  int64_t volume;
862 };
863 
865 enum class CalcIndex
866 {
868  LastDone,
870  ChangeValue,
872  ChangeRate,
874  Volume,
876  Turnover,
880  TurnoverRate,
884  CapitalFlow,
886  Amplitude,
888  VolumeRatio,
890  PeTtmRatio,
892  PbRatio,
904  ExpiryDate,
906  StrikePrice,
916  Premium,
918  ItmOtm,
922  WarrantDelta,
924  CallPrice,
926  ToCallPrice,
934  BalancePoint,
936  OpenInterest,
938  Delta,
940  Gamma,
942  Theta,
944  Vega,
946  Rho,
947 };
948 
951 {
953  std::string symbol;
955  std::optional<Decimal> last_done;
957  std::optional<Decimal> change_value;
959  std::optional<Decimal> change_rate;
961  std::optional<int64_t> volume;
963  std::optional<Decimal> turnover;
965  std::optional<Decimal> ytd_change_rate;
967  std::optional<Decimal> turnover_rate;
969  std::optional<Decimal> total_market_value;
971  std::optional<Decimal> capital_flow;
973  std::optional<Decimal> amplitude;
975  std::optional<Decimal> volume_ratio;
977  std::optional<Decimal> pe_ttm_ratio;
979  std::optional<Decimal> pb_ratio;
981  std::optional<Decimal> dividend_ratio_ttm;
983  std::optional<Decimal> five_day_change_rate;
985  std::optional<Decimal> ten_day_change_rate;
987  std::optional<Decimal> half_year_change_rate;
989  std::optional<Decimal> five_minutes_change_rate;
991  std::optional<Date> expiry_date;
993  std::optional<Decimal> strike_price;
995  std::optional<Decimal> upper_strike_price;
997  std::optional<Decimal> lower_strike_price;
999  std::optional<int64_t> outstanding_qty;
1001  std::optional<Decimal> outstanding_ratio;
1003  std::optional<Decimal> premium;
1005  std::optional<Decimal> itm_otm;
1007  std::optional<Decimal> implied_volatility;
1009  std::optional<Decimal> warrant_delta;
1011  std::optional<Decimal> call_price;
1013  std::optional<Decimal> to_call_price;
1015  std::optional<Decimal> effective_leverage;
1017  std::optional<Decimal> leverage_ratio;
1019  std::optional<Decimal> conversion_ratio;
1021  std::optional<Decimal> balance_point;
1023  std::optional<int64_t> open_interest;
1025  std::optional<Decimal> delta;
1027  std::optional<Decimal> gamma;
1029  std::optional<Decimal> theta;
1031  std::optional<Decimal> vega;
1033  std::optional<Decimal> rho;
1034 };
1035 
1037 enum class SortOrderType
1038 {
1040  Ascending,
1042  Descending,
1043 };
1044 
1046 enum class WarrantSortBy
1047 {
1049  LastDone,
1051  ChangeRate,
1053  ChangeValue,
1055  Volume,
1057  Turnover,
1059  ExpiryDate,
1061  StrikePrice,
1071  Premium,
1073  ItmOtm,
1077  Delta,
1079  CallPrice,
1081  ToCallPrice,
1085  LeverageRatio,
1089  BalancePoint,
1091  Status,
1092 };
1093 
1096 {
1098  LT_3,
1100  Between_3_6,
1102  Between_6_12,
1104  GT_12,
1105 };
1106 
1109 {
1111  In,
1113  Out,
1114 };
1115 
1117 enum class WarrantStatus
1118 {
1120  Suspend,
1122  PrepareList,
1124  Normal,
1125 };
1126 
1129 {
1131  std::string symbol;
1135  std::string name;
1143  int64_t volume;
1149  std::optional<Decimal> strike_price;
1151  std::optional<Decimal> upper_strike_price;
1153  std::optional<Decimal> lower_strike_price;
1161  std::optional<Decimal> itm_otm;
1163  std::optional<Decimal> implied_volatility;
1165  std::optional<Decimal> delta;
1167  std::optional<Decimal> call_price;
1169  std::optional<Decimal> to_call_price;
1171  std::optional<Decimal> effective_leverage;
1175  std::optional<Decimal> conversion_ratio;
1177  std::optional<Decimal> balance_point;
1180 };
1181 
1184 {
1186  Overnight,
1187 };
1188 
1191 {
1193  std::string key;
1195  std::string name;
1197  std::string description;
1199  int64_t start_at;
1201  int64_t end_at;
1202 };
1203 
1205 enum class TradeSessions
1206 {
1208  Intraday,
1210  All,
1211 };
1212 
1215 {
1217  int32_t temperature;
1219  std::string description;
1221  int32_t valuation;
1223  int32_t sentiment;
1225  int64_t timestamp;
1226 };
1227 
1230 {
1239 };
1240 
1243 {
1247  std::vector<MarketTemperature> records;
1248 };
1249 
1252 {
1254  std::string id;
1256  std::string title;
1258  std::string description;
1260  std::string file_name;
1262  std::vector<std::string> file_urls;
1264  int64_t published_at;
1265 };
1266 
1269 {
1271  std::string timestamp;
1273  std::string rate;
1275  std::string close;
1281  std::string days_to_cover;
1283  std::string amount;
1285  std::string balance;
1287  std::string cost;
1288 };
1289 
1292 {
1294  std::vector<ShortPositionsItem> data;
1295 };
1296 
1299 {
1301  std::string timestamp;
1303  std::string rate;
1305  std::string close;
1307  std::string nus_amount;
1309  std::string ny_amount;
1311  std::string total_amount;
1313  std::string amount;
1315  std::string balance;
1316 };
1317 
1320 {
1322  std::vector<ShortTradesItem> data;
1323 };
1324 
1326 {
1327  std::string symbol;
1328  int64_t call_volume;
1329  int64_t put_volume;
1330 };
1331 
1333 {
1334  std::string symbol;
1336  int64_t call_volume;
1337  int64_t put_volume;
1340  int64_t total_volume;
1342  double pc_vol;
1343  double pc_oi;
1344 };
1345 
1347 {
1348  std::string symbol;
1349  std::vector<OptionVolumeDailyStat> stats;
1350 };
1351 
1352 } // namespace quote
1353 
1354 namespace trade {
1355 
1357 enum class TopicType
1358 {
1360  Private,
1361 };
1362 
1365 {
1366  std::string order_id;
1367  std::string trade_id;
1368  std::string symbol;
1369  int64_t trade_done_at;
1372 };
1373 
1376 {
1378  std::optional<int64_t> start_at;
1380  std::optional<int64_t> end_at;
1382  std::optional<std::string> symbol;
1383 };
1384 
1387 {
1389  std::optional<std::string> symbol;
1391  std::optional<std::string> order_id;
1392 };
1393 
1396 {
1398  std::optional<std::string> symbol;
1400  std::optional<std::string> order_id;
1402  std::optional<int64_t> start_at;
1404  std::optional<int64_t> end_at;
1406  std::optional<uint64_t> page;
1407 };
1408 
1411 {
1413  bool has_more;
1415  std::vector<Execution> trades;
1416 };
1417 
1419 enum class OrderStatus
1420 {
1422  Unknown,
1424  NotReported,
1432  Filled,
1434  WaitToNew,
1436  New,
1438  WaitToReplace,
1442  Replaced,
1444  PartialFilled,
1446  WaitToCancel,
1448  PendingCancel,
1450  Rejected,
1452  Canceled,
1454  Expired,
1457 };
1458 
1460 enum class OrderSide
1461 {
1463  Unknown,
1465  Buy,
1467  Sell,
1468 };
1469 
1471 enum class OrderType
1472 {
1474  Unknown,
1476  LO,
1478  ELO,
1480  MO,
1482  AO,
1484  ALO,
1486  ODD,
1488  LIT,
1490  MIT,
1492  TSLPAMT,
1494  TSLPPCT,
1496  TSMAMT,
1498  TSMPCT,
1500  SLO,
1501 };
1502 
1504 enum class OrderTag
1505 {
1507  Unknown,
1509  Normal,
1511  LongTerm,
1513  Grey,
1514 };
1515 
1518 {
1520  Unknown,
1522  Day,
1526  GoodTilDate,
1527 };
1528 
1530 enum class TriggerStatus
1531 {
1533  Unknown,
1535  Deactive,
1537  Active,
1539  Released,
1540 };
1541 
1543 enum class OutsideRTH
1544 {
1546  Unknown,
1548  RTHOnly,
1550  AnyTime,
1552  Overnight,
1555 };
1556 
1559 {
1561  Unknown,
1563  ProfitTaker,
1565  StopLoss,
1567  Bracket,
1568 };
1569 
1572 {
1573  std::string order_id;
1575  std::optional<Decimal> trigger_price;
1579  int64_t updated_at;
1581  std::optional<Date> gtd;
1583  std::string counter_id;
1584  std::optional<TriggerStatus> trigger_status;
1587  int64_t submitted_at;
1588  std::optional<Decimal> executed_price;
1589  std::optional<OutsideRTH> force_only_rth;
1590  bool reviewed;
1592  std::optional<OutsideRTH> activate_rth;
1593  std::optional<Decimal> submit_price;
1594 };
1595 
1598 {
1600  std::optional<Decimal> profit_taker_price;
1601  std::optional<Decimal> stop_loss_price;
1602  std::optional<TimeInForceType> time_in_force;
1603  std::optional<int64_t> expire_time;
1604  std::optional<OrderType> activate_order_type;
1605  std::optional<Decimal> profit_taker_submit_price;
1606  std::optional<Decimal> stop_loss_submit_price;
1607  std::optional<OutsideRTH> activate_rth;
1608 };
1609 
1612 {
1614  std::optional<Decimal> profit_taker_price;
1615  std::optional<Decimal> stop_loss_price;
1616  std::optional<TimeInForceType> time_in_force;
1617  std::optional<int64_t> expire_time;
1618  std::optional<OrderType> activate_order_type;
1619  std::optional<Decimal> profit_taker_submit_price;
1620  std::optional<Decimal> stop_loss_submit_price;
1621  std::optional<OutsideRTH> activate_rth;
1622  std::optional<int64_t> profit_taker_id;
1623  std::optional<int64_t> stop_loss_id;
1624  std::optional<bool> cancel_all_attached;
1625  std::optional<int64_t> main_id;
1626  std::optional<Decimal> quantity;
1627  std::optional<Decimal> market_price;
1628 };
1629 
1631 struct Order
1632 {
1634  std::string order_id;
1638  std::string stock_name;
1644  std::optional<Decimal> price;
1646  std::optional<Decimal> executed_price;
1648  int64_t submitted_at;
1652  std::string symbol;
1656  std::optional<Decimal> last_done;
1658  std::optional<Decimal> trigger_price;
1660  std::string msg;
1666  std::optional<Date> expire_date;
1668  std::optional<int64_t> updated_at;
1670  std::optional<int64_t> trigger_at;
1672  std::optional<Decimal> trailing_amount;
1674  std::optional<Decimal> trailing_percent;
1676  std::optional<Decimal> limit_offset;
1678  std::optional<TriggerStatus> trigger_status;
1680  std::string currency;
1682  std::optional<OutsideRTH> outside_rth;
1684  std::optional<int32_t> limit_depth_level;
1686  std::optional<int32_t> trigger_count;
1688  std::optional<Decimal> monitor_price;
1690  std::string remark;
1692  std::vector<AttachedOrderDetail> attached_orders;
1693 };
1694 
1697 {
1701  std::string stock_name;
1705  std::string symbol;
1713  std::optional<Decimal> executed_price;
1715  std::string order_id;
1717  std::string currency;
1721  int64_t submitted_at;
1723  int64_t updated_at;
1725  std::optional<Decimal> trigger_price;
1727  std::string msg;
1731  std::optional<TriggerStatus> trigger_status;
1733  std::optional<int64_t> trigger_at;
1735  std::optional<Decimal> trailing_amount;
1737  std::optional<Decimal> trailing_percent;
1739  std::optional<Decimal> limit_offset;
1741  std::string account_no;
1743  std::optional<Decimal> last_share;
1745  std::optional<Decimal> last_price;
1747  std::string remark;
1748 };
1749 
1752 {
1754  std::optional<std::string> symbol;
1756  std::optional<std::vector<OrderStatus>> status;
1758  std::optional<OrderSide> side;
1760  std::optional<Market> market;
1762  std::optional<int64_t> start_at;
1764  std::optional<int64_t> end_at;
1765 };
1766 
1769 {
1771  std::optional<std::string> symbol;
1773  std::optional<std::vector<OrderStatus>> status;
1775  std::optional<OrderSide> side;
1777  std::optional<Market> market;
1779  std::optional<std::string> order_id;
1781  std::optional<bool> is_attached;
1782 };
1783 
1786 {
1788  std::string order_id;
1792  std::optional<Decimal> price;
1794  std::optional<Decimal> trigger_price;
1796  std::optional<Decimal> limit_offset;
1798  std::optional<Decimal> trailing_amount;
1800  std::optional<Decimal> trailing_percent;
1802  std::optional<int32_t> limit_depth_level;
1804  std::optional<int32_t> trigger_count;
1806  std::optional<Decimal> monitor_price;
1808  std::optional<std::string> remark;
1810  std::optional<ReplaceAttachedParams> attached_params;
1811 };
1812 
1815 {
1817  std::string symbol;
1827  std::optional<Decimal> submitted_price;
1829  std::optional<Decimal> trigger_price;
1831  std::optional<Decimal> limit_offset;
1833  std::optional<Decimal> trailing_amount;
1835  std::optional<Decimal> trailing_percent;
1838  std::optional<Date> expire_date;
1840  std::optional<OutsideRTH> outside_rth;
1842  std::optional<int32_t> limit_depth_level;
1844  std::optional<int32_t> trigger_count;
1846  std::optional<Decimal> monitor_price;
1848  std::optional<std::string> remark;
1852  std::optional<std::string> client_request_id;
1854  std::optional<SubmitAttachedParams> attached_params;
1855 };
1856 
1859 {
1861  std::string order_id;
1862 };
1863 
1865 struct CashInfo
1866 {
1876  std::string currency;
1877 };
1878 
1881 {
1882  std::string currency;
1884 };
1885 
1888 {
1896  int32_t risk_level;
1900  std::string currency;
1902  std::vector<CashInfo> cash_infos;
1912  std::vector<FrozenTransactionFee> frozen_transaction_fees;
1913 };
1914 
1917 {
1919  Unknown,
1921  Out,
1923  In,
1924 };
1925 
1927 enum class BalanceType
1928 {
1930  Unknown,
1932  Cash,
1934  Stock,
1936  Fund,
1937 };
1938 
1940 struct CashFlow
1941 {
1951  std::string currency;
1953  int64_t business_time;
1955  std::optional<std::string> symbol;
1957  std::string description;
1958 };
1959 
1962 {
1964  int64_t start_at;
1966  int64_t end_at;
1968  std::optional<BalanceType> business_type;
1970  std::optional<std::string> symbol;
1972  std::optional<uintptr_t> page;
1974  std::optional<uintptr_t> size;
1975 };
1976 
1979 {
1981  std::optional<std::vector<std::string>> symbols;
1982 };
1983 
1986 {
1988  std::optional<std::vector<std::string>> symbols;
1989 };
1990 
1993 {
1995  std::string symbol;
2001  std::string symbol_name;
2003  std::string currency;
2008 };
2009 
2012 {
2014  std::string account_channel;
2016  std::vector<FundPosition> positions;
2017 };
2018 
2021 {
2023  std::vector<FundPositionChannel> channels;
2024 };
2025 
2028 {
2030  std::string symbol;
2032  std::string symbol_name;
2038  std::string currency;
2045  std::optional<Decimal> init_quantity;
2046 };
2047 
2050 {
2052  std::string account_channel;
2054  std::vector<StockPosition> positions;
2055 };
2056 
2059 {
2061  std::vector<StockPositionChannel> channels;
2062 };
2063 
2066 {
2073 };
2074 
2077 {
2078  Unknown,
2079  None,
2080  Calculated,
2081  Pending,
2082  Ready,
2083 };
2084 
2087 {
2088  Unknown,
2089  None,
2090  NoData,
2091  Pending,
2092  Done,
2093 };
2094 
2097 {
2098  Unknown,
2099  Broker,
2100  Third,
2101 };
2102 
2105 {
2115  std::string msg;
2117  int64_t time;
2118 };
2119 
2122 {
2124  std::string code;
2126  std::string name;
2130  std::string currency;
2131 };
2132 
2135 {
2139  std::string name;
2141  std::vector<OrderChargeFee> fees;
2142 };
2143 
2146 {
2150  std::string currency;
2152  std::vector<OrderChargeItem> items;
2153 };
2154 
2157 {
2159  std::string order_id;
2163  std::string stock_name;
2169  std::optional<Decimal> price;
2171  std::optional<Decimal> executed_price;
2173  int64_t submitted_at;
2177  std::string symbol;
2181  std::optional<Decimal> last_done;
2183  std::optional<Decimal> trigger_price;
2185  std::string msg;
2191  std::optional<Date> expire_date;
2193  std::optional<int64_t> updated_at;
2195  std::optional<int64_t> trigger_at;
2197  std::optional<Decimal> trailing_amount;
2199  std::optional<Decimal> trailing_percent;
2201  std::optional<Decimal> limit_offset;
2203  std::optional<TriggerStatus> trigger_status;
2205  std::string currency;
2207  std::optional<OutsideRTH> outside_rth;
2209  std::optional<int32_t> limit_depth_level;
2211  std::optional<int32_t> trigger_count;
2213  std::optional<Decimal> monitor_price;
2215  std::string remark;
2219  std::optional<Decimal> free_amount;
2221  std::optional<std::string> free_currency;
2225  std::optional<Decimal> deductions_amount;
2227  std::optional<std::string> deductions_currency;
2231  std::optional<Decimal> platform_deducted_amount;
2233  std::optional<std::string> platform_deducted_currency;
2235  std::vector<OrderHistoryDetail> history;
2237  std::optional<OrderChargeDetail> charge_detail;
2239  std::vector<AttachedOrderDetail> attached_orders;
2240 };
2241 
2244 {
2246  std::string symbol;
2252  std::optional<Decimal> price;
2254  std::optional<std::string> currency;
2257  std::optional<std::string> order_id;
2260 };
2261 
2264 {
2269 };
2270 
2271 } // namespace trade
2272 
2273 namespace content {
2274 
2277 {
2279  std::string id;
2281  std::string title;
2283  std::string description;
2285  std::string url;
2287  int64_t published_at;
2291  int32_t likes_count;
2293  int32_t shares_count;
2294 };
2295 
2297 struct NewsItem
2298 {
2300  std::string id;
2302  std::string title;
2304  std::string description;
2306  std::string url;
2308  int64_t published_at;
2312  int32_t likes_count;
2314  int32_t shares_count;
2315 };
2316 
2319 {
2321  std::string member_id;
2323  std::string name;
2325  std::string avatar;
2326 };
2327 
2330 {
2332  std::string url;
2334  std::string sm;
2336  std::string lg;
2337 };
2338 
2341 {
2343  std::string id;
2345  std::string title;
2347  std::string description;
2349  std::string body;
2353  std::vector<std::string> tickers;
2355  std::vector<std::string> hashtags;
2357  std::vector<TopicImage> images;
2359  int32_t likes_count;
2363  int32_t views_count;
2365  int32_t shares_count;
2367  std::string topic_type;
2369  std::string detail_url;
2371  int64_t created_at;
2373  int64_t updated_at;
2374 };
2375 
2378 {
2380  int32_t page = 0;
2382  int32_t size = 0;
2384  std::string topic_type;
2385 };
2386 
2389 {
2391  std::string title;
2393  std::string body;
2395  std::string topic_type;
2397  std::vector<std::string> tickers;
2399  std::vector<std::string> hashtags;
2400 };
2401 
2402 } // namespace content
2403 
2404 // ── MarketContext types ───────────────────────────────────────────
2405 namespace market {
2406 
2409 {
2411  int32_t trade_status;
2412  std::string timestamp;
2414  std::string delay_timestamp;
2415  int32_t sub_status;
2417 };
2418 
2421 {
2422  std::vector<MarketTimeItem> market_time;
2423 };
2424 
2427 {
2428  std::string name;
2429  std::string parti_number;
2430  std::string chg;
2431  bool strong;
2432 };
2433 
2436 {
2437  std::vector<BrokerHoldingEntry> buy;
2438  std::vector<BrokerHoldingEntry> sell;
2439  std::string updated_at;
2440 };
2441 
2444 {
2445  std::string value;
2446  std::string chg_1;
2447  std::string chg_5;
2448  std::string chg_20;
2449  std::string chg_60;
2450 };
2451 
2454 {
2455  std::string name;
2456  std::string parti_number;
2459  bool strong;
2460 };
2461 
2464 {
2465  std::vector<BrokerHoldingDetailItem> list;
2466  std::string updated_at;
2467 };
2468 
2471 {
2472  std::string date;
2473  std::string holding;
2474  std::string ratio;
2475  std::string chg;
2476 };
2477 
2480 {
2481  std::vector<BrokerHoldingDailyItem> list;
2482 };
2483 
2486 {
2487  std::string aprice;
2488  std::string apreclose;
2489  std::string hprice;
2490  std::string hpreclose;
2491  std::string currency_rate;
2492  std::string ahpremium_rate;
2493  std::string price_spread;
2494  int64_t timestamp;
2495 };
2496 
2499 {
2500  std::vector<AhPremiumKline> klines;
2501 };
2502 
2505 {
2506  std::vector<AhPremiumKline> klines;
2507 };
2508 
2511 {
2512  std::string buy_amount;
2513  std::string neutral_amount;
2514  std::string price;
2515  std::string sell_amount;
2516 };
2517 
2520 {
2521  std::string avgprice;
2522  std::string buy;
2523  std::string neutral;
2524  std::string preclose;
2525  std::string sell;
2526  std::string timestamp;
2527  std::string total_amount;
2528  std::vector<std::string> trade_date;
2529  std::string trades_count;
2530 };
2531 
2534 {
2536  std::vector<TradePriceLevel> trades;
2537 };
2538 
2541 {
2542  std::string symbol;
2543  std::string code;
2544  std::string name;
2545  std::string full_name;
2546  std::string change;
2547  std::string last_done;
2548  std::string market;
2549  std::string logo;
2550  std::vector<std::string> labels;
2551 };
2552 
2555 {
2556  std::string timestamp;
2557  std::string alert_reason;
2558  int64_t alert_type;
2560  std::string post;
2561 };
2562 
2565 {
2566  std::vector<TopMoversEvent> events;
2568  std::string next_params;
2569 };
2570 
2573 {
2574  std::string symbol;
2575  std::string code;
2576  std::string name;
2577  std::string last_done;
2578  std::string chg;
2579  std::string change;
2580  std::string inflow;
2581  std::string market_cap;
2582  std::string industry;
2583  std::string pre_post_price;
2584  std::string pre_post_chg;
2585  std::string amplitude;
2586  std::string five_day_chg;
2587  std::string turnover_rate;
2588  std::string volume_rate;
2589  std::string pb_ttm;
2590 };
2591 
2594 {
2595  bool bmp;
2596  std::vector<RankListItem> lists;
2597 };
2598 
2601 {
2602  std::string symbol;
2603  std::string name;
2604  std::string alert_name;
2605  int64_t alert_time;
2606  std::vector<std::string> change_values;
2607  int32_t emotion;
2608 };
2609 
2612 {
2613  bool all_off;
2614  std::vector<AnomalyItem> changes;
2615 };
2616 
2619 {
2620  std::string symbol;
2621  std::string name;
2622  std::string last_done;
2623  std::string prev_close;
2624  std::string inflow;
2625  std::string balance;
2626  std::string amount;
2627  std::string total_shares;
2628  std::vector<std::string> tags;
2629  std::string intro;
2630  std::string market;
2631  std::string circulating_shares;
2632  bool delay;
2633  std::string chg;
2634  int32_t trade_status;
2635 };
2636 
2639 {
2640  int32_t fall_num;
2641  int32_t flat_num;
2642  int32_t rise_num;
2643  std::vector<ConstituentStock> stocks;
2644 };
2645 
2646 } // namespace market
2647 
2648 // ── FundamentalContext types ──────────────────────────────────────
2649 namespace fundamental {
2650 
2653 {
2654  Unknown = 0,
2655  StrongBuy = 1,
2656  Buy = 2,
2657  Hold = 3,
2658  Sell = 4,
2659  StrongSell = 5,
2660  Underperform = 6,
2661 };
2662 
2665 {
2666  std::string symbol;
2667  std::string id;
2668  std::string desc;
2669  std::string record_date;
2670  std::string ex_date;
2671  std::string payment_date;
2672 };
2673 
2676 {
2677  std::vector<DividendItem> list;
2678 };
2679 
2682 {
2683  int32_t buy;
2684  int32_t over;
2685  int32_t hold;
2686  int32_t under;
2687  int32_t sell;
2688  int32_t no_opinion;
2689  int32_t total;
2690  std::string start_date;
2691  std::string end_date;
2692 };
2693 
2696 {
2697  std::string highest_price;
2698  std::string lowest_price;
2699  std::string prev_close;
2700  std::string start_date;
2701  std::string end_date;
2702 };
2703 
2706 {
2707  int32_t buy;
2708  std::string date;
2709  int32_t hold;
2710  int32_t sell;
2711  int32_t strong_buy;
2712  int32_t under;
2713 };
2714 
2717 {
2720  int64_t industry_id;
2721  std::string industry_name;
2722  int32_t industry_rank;
2724  int32_t industry_mean;
2726 };
2727 
2730 {
2731  std::string ccy_symbol;
2732  std::string change;
2735  std::string target;
2736  std::string updated_at;
2737 };
2738 
2741 {
2744 };
2745 
2748 {
2749  int32_t buy;
2750  std::string date;
2751  int32_t hold;
2752  int32_t sell;
2753  int32_t strong_buy;
2754  int32_t under;
2755 };
2756 
2759 {
2760  std::string avg_target;
2761  std::string date;
2762  std::string max_target;
2763  std::string min_target;
2764  bool meet;
2765  std::string price;
2766  std::string timestamp;
2767 };
2768 
2771 {
2772  std::string ccy_symbol;
2773  std::vector<InstitutionRatingDetailEvaluateItem> evaluate_list;
2774  std::string data_percent;
2775  std::string prediction_accuracy;
2776  std::string updated_at;
2777  std::vector<InstitutionRatingDetailTargetItem> target_list;
2778 };
2779 
2782 {
2783  std::string forecast_eps_median;
2784  std::string forecast_eps_mean;
2785  std::string forecast_eps_lowest;
2792 };
2793 
2796 {
2797  std::vector<ForecastEpsItem> items;
2798 };
2799 
2802 {
2803  int64_t timestamp;
2804  std::string value;
2805 };
2806 
2809 {
2810  std::string desc;
2811  std::string high;
2812  std::string low;
2813  std::string median;
2814  std::vector<ValuationPoint> list;
2815 };
2816 
2819 {
2820  std::optional<ValuationMetricData> pe;
2821  std::optional<ValuationMetricData> pb;
2822  std::optional<ValuationMetricData> ps;
2823  std::optional<ValuationMetricData> dvd_yld;
2824 };
2825 
2828 {
2830 };
2831 
2834 {
2835  std::optional<ValuationMetricData> pe;
2836  std::optional<ValuationMetricData> pb;
2837  std::optional<ValuationMetricData> ps;
2838 };
2839 
2842 {
2843  std::string name;
2844  std::string company_name;
2845  std::string founded;
2846  std::string listing_date;
2847  std::string market;
2848  std::string region;
2849  std::string address;
2850  std::string office_address;
2851  std::string website;
2852  std::string issue_price;
2853  std::string shares_offered;
2854  std::string chairman;
2855  std::string secretary;
2856  std::string audit_inst;
2857  std::string category;
2858  std::string year_end;
2859  std::string employees;
2860  std::string phone;
2861  std::string fax;
2862  std::string email;
2863  std::string legal_repr;
2864  std::string manager;
2865  std::string ticker;
2866  std::string profile;
2867  int32_t sector;
2868 };
2869 
2872 {
2873  std::string symbol;
2874  std::string code;
2875  std::string market;
2876  std::string chg;
2877 };
2878 
2881 {
2882  std::string shareholder_id;
2883  std::string shareholder_name;
2884  std::string institution_type;
2885  std::string percent_of_shares;
2886  std::string shares_changed;
2887  std::string report_date;
2888  std::vector<ShareholderStock> stocks;
2889 };
2890 
2893 {
2894  std::vector<Shareholder> shareholder_list;
2895  std::string forward_url;
2896  int32_t total;
2897 };
2898 
2901 {
2902  std::string code;
2903  std::string symbol;
2904  std::string currency;
2905  std::string name;
2906  std::string position_ratio;
2907  std::string report_date;
2908 };
2909 
2912 {
2913  std::vector<FundHolder> lists;
2914 };
2915 
2918 {
2919  std::string id;
2920  std::string date;
2921  std::string date_str;
2922  std::string date_type;
2923  std::string date_zone;
2924  std::string act_type;
2925  std::string act_desc;
2926  std::string action;
2927  bool recent;
2928  bool is_delay;
2929  std::string delay_content;
2930 };
2931 
2934 {
2935  std::vector<CorpActionItem> items;
2936 };
2937 
2940 {
2941  std::string company_id;
2942  std::string company_name;
2943  std::string company_name_en;
2944  std::string company_name_zhcn;
2945  std::string symbol;
2946  std::string currency;
2947  std::string percent_of_shares;
2948  std::string shares_rank;
2949  std::string shares_value;
2950 };
2951 
2954 {
2955  std::string forward_url;
2956  std::vector<InvestSecurity> invest_securities;
2957 };
2958 
2961 {
2962  std::string field_name;
2963  std::string indicator_name;
2964  std::string indicator_value;
2965  std::string yoy;
2966 };
2967 
2970 {
2971  std::string id;
2972  std::string report;
2973  std::string title;
2974  std::string txt;
2975  bool latest;
2976  std::string web_url;
2977  std::string financial_currency;
2978  std::string financial_name;
2979  std::string financial_region;
2980  std::string financial_report;
2981  std::vector<OperatingIndicator> indicators;
2982 };
2983 
2986 {
2987  std::vector<OperatingItem> list;
2988 };
2989 
2992 {
2993  std::string list_json;
2994 };
2995 
2998 {
2999  std::string key;
3000  std::string name;
3001  std::string description;
3002  std::string actual;
3003  std::string estimate;
3004  std::string comp_value;
3005  std::string comp_desc;
3006  std::string comp;
3008 };
3009 
3012 {
3013  int32_t fiscal_year;
3014  std::string fiscal_period;
3015  std::string period_text;
3016  std::vector<ConsensusDetail> details;
3017 };
3018 
3021 {
3022  std::vector<ConsensusReport> list;
3023  int32_t current_index;
3024  std::string currency;
3025  std::vector<std::string> opt_periods;
3026  std::string current_period;
3027 };
3028 
3031 {
3032  std::string date;
3033  std::string pe;
3034  std::string pb;
3035  std::string ps;
3036 };
3037 
3040 {
3041  std::string symbol;
3042  std::string name;
3043  std::string currency;
3044  std::string assets;
3045  std::string bps;
3046  std::string eps;
3047  std::string dps;
3048  std::string div_yld;
3049  std::string div_payout_ratio;
3050  std::string five_y_avg_dps;
3051  std::string pe;
3052  std::vector<IndustryValuationHistory> history;
3053 };
3054 
3057 {
3058  std::vector<IndustryValuationItem> list;
3059 };
3060 
3063 {
3064  std::string low;
3065  std::string high;
3066  std::string median;
3067  std::string value;
3068  std::string ranking;
3069  std::string rank_index;
3070  std::string rank_total;
3071 };
3072 
3075 {
3076  std::optional<ValuationDist> pe;
3077  std::optional<ValuationDist> pb;
3078  std::optional<ValuationDist> ps;
3079 };
3080 
3083 {
3084  std::string id;
3085  std::string name;
3086  std::string name_zhcn;
3087  std::string name_en;
3088  std::string title;
3089  std::string biography;
3090  std::string photo;
3091  std::string wiki_url;
3092 };
3093 
3096 {
3097  std::string symbol;
3098  std::string forward_url;
3099  int32_t total;
3100  std::vector<Professional> professionals;
3101 };
3102 
3105 {
3106  std::vector<ExecutiveGroup> professional_list;
3107 };
3108 
3111 {
3112  std::string currency;
3113  std::string net_buyback_ttm;
3115 };
3116 
3119 {
3120  std::string fiscal_year;
3121  std::string fiscal_year_range;
3122  std::string net_buyback;
3123  std::string net_buyback_yield;
3125  std::string currency;
3126 };
3127 
3130 {
3133 };
3134 
3137 {
3138  std::optional<RecentBuybacks> recent_buybacks;
3139  std::vector<BuybackHistoryItem> buyback_history;
3140  std::vector<BuybackRatios> buyback_ratios;
3141 };
3142 
3145 {
3146  std::string name;
3147  std::string value;
3148  std::string value_type;
3149  std::string score;
3150  std::string letter;
3151 };
3152 
3155 {
3156  std::string name;
3157  std::string score;
3158  std::string letter;
3159 };
3160 
3163 {
3165  std::vector<RatingLeafIndicator> sub_indicators;
3166 };
3167 
3170 {
3171  int32_t kind;
3172  std::vector<RatingSubIndicatorGroup> sub_indicators;
3173 };
3174 
3177 {
3178  std::string style_txt_name;
3179  std::string scale_txt_name;
3180  std::string report_period_txt;
3181  std::string multi_score;
3182  std::string multi_letter;
3184  std::string industry_name;
3185  std::string industry_rank;
3186  std::string industry_total;
3187  std::string industry_mean_score;
3189  std::vector<RatingCategory> ratings;
3190 };
3191 
3194 {
3195  std::string name;
3196  std::string percent;
3197 };
3198 
3201 {
3202  std::string date;
3203  std::string total;
3204  std::string currency;
3205  std::vector<BusinessSegmentItem> business;
3206 };
3207 
3210 {
3211  std::string name;
3212  std::string percent;
3213  std::string value;
3214 };
3215 
3218 {
3219  std::string date;
3220  std::string total;
3221  std::string currency;
3222  std::vector<BusinessSegmentHistoryItem> business;
3223  std::vector<BusinessSegmentHistoryItem> regionals;
3224 };
3225 
3228 {
3229  std::vector<BusinessSegmentsHistoricalItem> historical;
3230 };
3231 
3234 {
3235  std::string date;
3236  std::string buy;
3237  std::string over;
3238  std::string hold;
3239  std::string under;
3240  std::string sell;
3241  std::string total;
3242 };
3243 
3246 {
3247  std::vector<InstitutionRatingViewItem> elist;
3248 };
3249 
3252 {
3253  std::string name;
3254  std::string counter_id;
3255  std::string chg;
3256  std::string leading_name;
3257  std::string leading_ticker;
3258  std::string leading_chg;
3259  std::string value_name;
3260  std::string value_data;
3261 };
3262 
3265 {
3266  std::vector<IndustryRankItem> lists;
3267 };
3268 
3271 {
3272  std::vector<IndustryRankGroup> items;
3273 };
3274 
3277 {
3278  std::string name;
3279  std::string market;
3280 };
3281 
3286 {
3287  std::string name;
3288  std::string counter_id;
3289  int32_t stock_num;
3290  std::string chg;
3291  std::string ytd_chg;
3292  std::string next_json;
3293 };
3294 
3297 {
3299  std::optional<IndustryPeerNode> chain;
3300 };
3301 
3304 {
3305  std::string value;
3306  std::string yoy;
3307  std::string cmp_desc;
3308  std::string est_value;
3309 };
3310 
3313 {
3314  std::string value;
3315  std::string yoy;
3316 };
3317 
3320 {
3321  std::string name;
3322  std::string ticker;
3323  std::string fp_start;
3324  std::string fp_end;
3325  std::string currency;
3326  std::string report_desc;
3327  std::optional<SnapshotForecastMetric> fo_revenue;
3328  std::optional<SnapshotForecastMetric> fo_ebit;
3329  std::optional<SnapshotForecastMetric> fo_eps;
3330  std::optional<SnapshotReportedMetric> fr_revenue;
3331  std::optional<SnapshotReportedMetric> fr_profit;
3332  std::optional<SnapshotReportedMetric> fr_operate_cash;
3333  std::optional<SnapshotReportedMetric> fr_invest_cash;
3334  std::optional<SnapshotReportedMetric> fr_finance_cash;
3335  std::optional<SnapshotReportedMetric> fr_total_assets;
3336  std::optional<SnapshotReportedMetric> fr_total_liability;
3337  std::string fr_roe_ttm;
3338  std::string fr_profit_margin;
3340  std::string fr_asset_turn_ttm;
3341  std::string fr_leverage_ttm;
3343 };
3344 
3347 {
3348  std::string date;
3349  std::string pe;
3350  std::string pb;
3351  std::string ps;
3352 };
3353 
3356 {
3357  std::string symbol;
3358  std::string name;
3359  std::string currency;
3360  std::string market_value;
3361  std::string price_close;
3362  std::string pe;
3363  std::string pb;
3364  std::string ps;
3365  std::string roe;
3366  std::string eps;
3367  std::string bps;
3368  std::string dps;
3369  std::string div_yld;
3370  std::string assets;
3371  std::vector<ValuationHistoryPoint> history;
3372 };
3373 
3376 {
3377  std::vector<ValuationComparisonItem> list;
3378 };
3379 
3381 enum class ElementType
3382 {
3384  Unknown,
3386  Holdings,
3388  Regional,
3390  AssetClass,
3392  Industry,
3393 };
3394 
3397 {
3399  std::string industry_id;
3401  std::string industry_name;
3403  std::string index;
3405  std::string index_name;
3407  std::string holding_type;
3409  std::string holding_type_name;
3410 };
3411 
3414 {
3416  std::string name;
3418  std::string code;
3420  std::string position_ratio;
3422  std::string symbol;
3424  std::map<std::string, std::string> name_locales;
3426  std::optional<HoldingDetail> holding_detail;
3427 };
3428 
3431 {
3433  std::string report_date;
3437  std::vector<AssetAllocationItem> lists;
3438 };
3439 
3442 {
3444  std::vector<AssetAllocationGroup> info;
3445 };
3446 
3447 } // namespace fundamental
3448 
3449 namespace alert {
3450 
3453 {
3455  std::string id;
3457  std::string indicator_id;
3459  bool enabled;
3461  int32_t frequency;
3463  int32_t scope;
3465  std::string text;
3467  std::vector<int32_t> state;
3469  std::string value_map;
3470 };
3471 
3474 {
3476  std::string symbol;
3478  std::string code;
3480  std::string market;
3482  std::string name;
3484  std::string price;
3486  std::string chg;
3488  std::string p_chg;
3490  std::string product;
3492  std::vector<AlertItem> indicators;
3493 };
3494 
3497 {
3499  std::vector<AlertSymbolGroup> lists;
3500 };
3501 
3502 } // namespace alert
3503 
3504 namespace dca {
3505 
3507 enum class DCAFrequency
3508 {
3509  Daily = 0,
3510  Weekly = 1,
3511  Fortnightly = 2,
3512  Monthly = 3,
3513 };
3514 
3516 enum class DCAStatus
3517 {
3518  Active = 0,
3519  Suspended = 1,
3520  Finished = 2,
3521 };
3522 
3524 struct DcaPlan
3525 {
3527  std::string plan_id;
3531  std::string symbol;
3533  std::string member_id;
3535  std::string aaid;
3537  std::string account_channel;
3539  std::string display_account;
3543  std::string per_invest_amount;
3547  std::string invest_day_of_week;
3549  std::string invest_day_of_month;
3553  std::string alter_hours;
3555  std::string created_at;
3557  std::string updated_at;
3559  std::string next_trd_date;
3561  std::string stock_name;
3563  std::string cum_amount;
3565  int64_t issue_number;
3567  std::string average_cost;
3569  std::string cum_profit;
3570 };
3571 
3573 struct DcaList
3574 {
3576  std::vector<DcaPlan> plans;
3577 };
3578 
3580 struct DcaStats
3581 {
3583  std::string active_count;
3585  std::string finished_count;
3587  std::string suspended_count;
3589  std::vector<DcaPlan> nearest_plans;
3591  std::string rest_days;
3593  std::string total_amount;
3595  std::string total_profit;
3596 };
3597 
3600 {
3602  std::string symbol;
3605 };
3606 
3609 {
3611  std::vector<DcaSupportInfo> infos;
3612 };
3613 
3616 {
3618  std::string trade_date;
3619 };
3620 
3623 {
3625  std::string plan_id;
3626 };
3627 
3630 {
3631  std::string created_at;
3632  std::string order_id;
3633  std::string status;
3634  std::string action;
3635  std::string order_type;
3636  std::string executed_qty;
3637  std::string executed_price;
3638  std::string executed_amount;
3639  std::string rejected_reason;
3640  std::string symbol;
3641 };
3642 
3645 {
3646  std::vector<DcaHistoryRecord> records;
3647  bool has_more;
3648 };
3649 
3650 } // namespace dca
3651 
3652 namespace sharelist {
3653 
3656 {
3658  std::string symbol;
3660  std::string name;
3662  std::string market;
3664  std::string code;
3666  std::string intro;
3670  std::optional<std::string> change;
3672  std::optional<std::string> last_done;
3674  std::optional<int32_t> trade_status;
3675 };
3676 
3679 {
3683  bool is_self;
3684 };
3685 
3688 {
3690  int64_t id;
3692  std::string name;
3694  std::string description;
3696  std::string cover;
3700  int64_t created_at;
3702  int64_t edited_at;
3704  std::string this_year_chg;
3706  std::string creator;
3708  std::vector<SharelistStock> stocks;
3712  std::string chg;
3716  std::string industry_code;
3717 };
3718 
3721 {
3723  std::vector<SharelistInfo> sharelists;
3725  std::vector<SharelistInfo> subscribed_sharelists;
3727  std::string tail_mark;
3728 };
3729 
3732 {
3737 };
3738 
3739 } // namespace sharelist
3740 
3741 namespace agent {
3742 
3745 {
3747  std::string id;
3749  std::string name;
3751  int64_t created_at;
3753  int64_t updated_at;
3754 };
3755 
3758 {
3760  std::vector<Workspace> workspaces;
3761 };
3762 
3764 struct Agent
3765 {
3767  std::string uid;
3769  std::string name;
3771  std::string description;
3773  std::string mode;
3775  std::string icon;
3779  int64_t published_at;
3781  int64_t created_at;
3783  int64_t updated_at;
3784 };
3785 
3788 {
3790  std::vector<Agent> agents;
3792  int32_t total;
3793 };
3794 
3797 {
3799  std::optional<int32_t> page;
3801  std::optional<int32_t> limit;
3803  std::optional<std::string> name;
3804 };
3805 
3808 {
3810  int32_t index;
3812  std::string title;
3814  std::string url;
3815 };
3816 
3819 {
3821  std::string description;
3822 };
3823 
3825 struct Question
3826 {
3828  std::string question;
3830  std::vector<QuestionOption> options;
3833 };
3834 
3838 {
3840  std::string node_id;
3842  std::string tool_call_id;
3844  std::vector<Question> questions;
3846  int64_t message_id;
3848  int64_t chat_id;
3849 };
3850 
3853 {
3855  int32_t code;
3857  std::string message;
3858 };
3859 
3862 {
3864  Succeeded,
3866  Interrupted,
3868  Failed,
3870  Stopped,
3871 };
3872 
3876 {
3879  std::string chat_uid;
3881  std::string message_id;
3885  std::string answer;
3887  std::vector<Reference> references;
3891  std::optional<Interrupt> interrupt;
3893  std::optional<AgentError> error;
3894 };
3895 
3898 {
3900  std::string chat_uid;
3902  std::string message_id;
3903 };
3904 
3909 {
3911  std::string text;
3914  std::string message_type;
3918  std::string key;
3920  int64_t started_at;
3922  std::string stage;
3925  std::string stage_title;
3931  std::string outputs_json;
3932 };
3933 
3936 {
3938  int64_t chat_id;
3940  std::string chat_uid;
3942  std::string message_id;
3944  std::string query;
3945 };
3946 
3950 {
3956  int64_t started_at;
3958  int64_t workflow_id;
3959 };
3960 
3966 {
3968  int64_t started_at;
3969 };
3970 
3975 {
3977  int64_t finished_at;
3979  int32_t elapsed_time;
3980 };
3981 
3986 {
3988  std::string tool_use_id;
3990  std::string tool_name;
3993  std::string tool_func_name;
3995  std::string tool_args;
3998  std::string tips;
4000  std::vector<std::string> tip_chips;
4003  int32_t iteration;
4005  int64_t started_at;
4006 };
4007 
4011 {
4013  std::vector<Reference> references;
4015  std::vector<std::string> reference_domains;
4017  std::string query;
4019  std::string text;
4021  std::string tool_args_json;
4024  std::string data_json;
4025 };
4026 
4030 {
4032  std::string tool_use_id;
4034  std::string status;
4036  std::string error;
4040  int64_t started_at;
4042  std::string tool_name;
4044  std::string tool_func_name;
4046  std::string tool_args;
4048  std::string tool_type;
4050  std::string tips;
4052  std::vector<std::string> tip_chips;
4054  int32_t iteration;
4059 };
4060 
4065 {
4067  std::string node_id;
4069  std::string tool_use_id;
4071  int64_t started_at;
4073  std::string goal;
4075  std::string prompt;
4077  std::string subagent_id;
4080  std::string tools_json;
4081 };
4082 
4087 {
4089  std::string node_id;
4091  std::string parent_tool_call_id;
4093  std::string subagent_tool_name;
4095  std::string subagent_tool_args;
4097  std::string subagent_status;
4103  int64_t started_at;
4104 };
4105 
4108 {
4110  std::string goal;
4112  std::string result;
4115  std::string subagent_tools_json;
4116 };
4117 
4120 {
4122  std::string node_id;
4124  std::string tool_use_id;
4126  std::string status;
4128  int64_t started_at;
4132  std::string error;
4135 };
4136 
4141 {
4143  std::string node_id;
4145  std::string tool_use_id;
4147  std::string agent_tool_name;
4149  std::string title;
4151  int64_t started_at;
4153  std::string tool_args;
4155  std::string tool_name;
4157  std::string tips;
4159  std::vector<std::string> tip_chips;
4162 };
4163 
4167 {
4169  std::string node_id;
4171  std::string parent_tool_call_id;
4173  std::string agent_tool_name;
4175  std::string inner_tool_name;
4177  std::string inner_tool_args;
4179  std::string status;
4181  int64_t duration_ms;
4183  int64_t started_at;
4186 };
4187 
4190 {
4192  std::string node_id;
4194  std::string tool_use_id;
4196  std::string agent_tool_name;
4198  std::string status;
4200  int64_t started_at;
4204  std::string error;
4206  std::string tool_args;
4208  std::string outputs_json;
4210  std::string tool_type;
4212  std::string tips;
4214  std::vector<std::string> tip_chips;
4217 };
4218 
4223 {
4225  std::string raw_query;
4227  std::string masked_query;
4228 };
4229 
4233 {
4235  std::string node_id;
4237  int64_t started_at;
4239  std::string outputs_json;
4241  std::string tool_name;
4242 };
4243 
4249 {
4251  std::string started_at;
4253  std::string inputs_json;
4254 };
4255 
4259 {
4261  std::string created_at;
4263  std::string inputs_json;
4265  std::string outputs_json;
4266 };
4267 
4272 {
4274  int64_t chat_id;
4276  std::string chat_uid;
4278  std::string message_id;
4280  std::string error;
4282  std::string error_message;
4283 };
4284 
4290 {
4292  int64_t chat_id;
4294  std::string chat_uid;
4296  std::string source;
4298  std::string title;
4300  int64_t updated_at;
4301 };
4302 
4306 {
4308  ChatStarted,
4313  Message,
4317  Ping,
4354  QueryMasked,
4357  PlanChanged,
4366  ChatFinished,
4376  Other,
4377 };
4378 
4389 {
4393  std::optional<ChatStartedPayload> chat_started;
4396  std::optional<WorkflowStartedPayload> workflow_started;
4398  std::optional<MessagePayload> message;
4401  std::optional<ThinkingStartedPayload> thinking_started;
4404  std::optional<ThinkingFinishedPayload> thinking_finished;
4407  std::optional<NodeToolUseStartedPayload> node_tool_use_started;
4410  std::optional<NodeToolUseFinishedPayload> node_tool_use_finished;
4413  std::optional<SubagentStartedPayload> subagent_started;
4416  std::optional<SubagentProgressPayload> subagent_progress;
4419  std::optional<SubagentFinishedPayload> subagent_finished;
4422  std::optional<AgentToolStartedPayload> agent_tool_started;
4425  std::optional<AgentToolProgressPayload> agent_tool_progress;
4428  std::optional<AgentToolFinishedPayload> agent_tool_finished;
4433  std::optional<ConversationResponse> human_interaction_required;
4436  std::optional<QueryMaskedPayload> query_masked;
4439  std::optional<PlanChangedPayload> plan_changed;
4442  std::optional<ContextCompressStartedPayload> context_compress_started;
4445  std::optional<ContextCompressFinishedPayload> context_compress_finished;
4448  std::optional<ChatFinishedPayload> chat_finished;
4454  std::optional<ConversationResponse> workflow_finished;
4457  std::optional<ChatTitleUpdatedPayload> chat_title_updated;
4460  std::optional<std::string> other_event;
4463  std::optional<std::string> other_json;
4464 };
4465 
4466 } // namespace agent
4467 
4468 } // namespace longbridge
Definition: decimal.hpp:13
Subscription flags.
Definition: types.hpp:73
static SubFlags QUOTE()
bool operator==(const SubFlags &other) const
Definition: types.hpp:104
static SubFlags BROKER()
static SubFlags DEPTH()
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
static SubFlags TRADE()
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.
ConversationStreamEventKind
Definition: types.hpp:4306
@ Message
An incremental piece of the answer; message is populated.
@ 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
@ LowerStrikePrice
Lower strike price.
@ EffectiveLeverage
Effective leverage.
@ ConversionRatio
Conversion ratio.
@ ItmOtm
In/out of the bound.
@ ToCallPrice
Price interval from the call price.
@ ImpliedVolatility
Implied volatility.
@ 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.
@ Min20
Twenty Minutes.
@ Min15
Fifteen Minutes.
@ Min30
Thirty 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
@ 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
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.
@ YtdChangeRate
Year-to-date change ratio.
@ FiveDayChangeRate
Five days change ratio.
@ BalancePoint
Breakeven point.
@ ToCallPrice
Price interval from the call price.
@ TotalMarketValue
Total market value.
@ HalfYearChangeRate
Half year change ratio.
@ TurnoverRate
Turnover rate.
@ ImpliedVolatility
Implied volatility.
@ OutstandingRatio
Outstanding ratio.
@ FiveMinutesChangeRate
Five minutes change ratio.
@ UpperStrikePrice
Upper bound price.
@ 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
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
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)
@ ProtectedNotReported
Not reported (Protected Order)
OrderType
Order type.
Definition: types.hpp:1472
@ TSLPAMT
Trailing Limit If Touched (Trailing Amount)
@ ALO
At-auction Limit Order.
@ MIT
Market If Touched.
@ SLO
Special Limit Order.
@ LIT
Limit If Touched.
@ 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
@ Crypto
Crypto market.
Language
Language identifer.
Definition: types.hpp:32
Definition: types.hpp:11
uint8_t day
Definition: types.hpp:14
uint8_t month
Definition: types.hpp:13
int32_t year
Definition: types.hpp:12
Definition: types.hpp:25
Time time
Definition: types.hpp:27
Date date
Definition: types.hpp:26
Definition: types.hpp:18
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
Payload of an AgentToolFinished conversation stream event.
Definition: types.hpp:4190
std::string node_id
ID of the calling node.
Definition: types.hpp:4192
std::string tips
Progress text; may be empty.
Definition: types.hpp:4212
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4200
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:4214
std::string tool_use_id
Matches the tool_use_id of AgentToolStarted.
Definition: types.hpp:4194
std::string error
Error description on failure.
Definition: types.hpp:4204
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:4196
std::string outputs_json
Result of the delegated Agent, as a JSON string; empty when absent.
Definition: types.hpp:4208
std::string status
succeeded / failed
Definition: types.hpp:4198
std::string tool_type
Tool category.
Definition: types.hpp:4210
bool is_thinking
true if during the thinking phase
Definition: types.hpp:4216
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:4206
double elapsed_time
Total duration in seconds.
Definition: types.hpp:4202
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4183
bool is_thinking
true if during the thinking phase
Definition: types.hpp:4185
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:4173
std::string node_id
ID of the calling node.
Definition: types.hpp:4169
int64_t duration_ms
Duration of the inner call in milliseconds.
Definition: types.hpp:4181
std::string inner_tool_args
Arguments of that inner call, as a JSON string.
Definition: types.hpp:4177
std::string inner_tool_name
Name of the inner tool the delegated Agent called.
Definition: types.hpp:4175
std::string status
Status of the inner call: running / succeeded / failed.
Definition: types.hpp:4179
std::string parent_tool_call_id
tool_use_id of the owning AgentToolStarted event
Definition: types.hpp:4171
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:4153
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:4147
std::string node_id
ID of the calling node.
Definition: types.hpp:4143
std::string tool_use_id
Unique ID of this call; matches the finished event.
Definition: types.hpp:4145
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4151
bool is_thinking
true if called during the thinking phase
Definition: types.hpp:4161
std::string title
Display title; may be empty.
Definition: types.hpp:4149
std::string tips
Progress text; may be empty.
Definition: types.hpp:4157
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:4159
std::string tool_name
Localized display name.
Definition: types.hpp:4155
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
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
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
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
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
bool is_thinking
true if the call happened during the thinking phase
Definition: types.hpp:4056
std::string tool_type
Tool category.
Definition: types.hpp:4048
double elapsed_time
Call duration in seconds.
Definition: types.hpp:4038
std::string error
Error description on failure.
Definition: types.hpp:4036
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:4052
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:4046
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4040
std::string tips
Progress text.
Definition: types.hpp:4050
NodeToolUseOutputs outputs
Filtered call results, for display.
Definition: types.hpp:4058
int32_t iteration
Round number.
Definition: types.hpp:4054
std::string tool_name
Localized display name.
Definition: types.hpp:4042
std::string tool_use_id
Matches the tool_use_id of the started event.
Definition: types.hpp:4032
std::string tool_func_name
Locale-stable tool identifier.
Definition: types.hpp:4044
std::string status
succeeded / failed
Definition: types.hpp:4034
Definition: types.hpp:4011
std::string text
Raw response text of the tool; empty when absent.
Definition: types.hpp:4019
std::string query
The query the tool executed; empty when absent.
Definition: types.hpp:4017
std::string tool_args_json
Parsed request arguments, as a JSON string; empty when absent.
Definition: types.hpp:4021
std::vector< std::string > reference_domains
Domains of the referenced sources.
Definition: types.hpp:4015
std::string data_json
Definition: types.hpp:4024
std::vector< Reference > references
Sources referenced by the tool result.
Definition: types.hpp:4013
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4005
std::string tool_func_name
Definition: types.hpp:3993
int32_t iteration
Definition: types.hpp:4003
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:3995
std::string tool_use_id
Unique ID of this call; matches the finished event.
Definition: types.hpp:3988
std::vector< std::string > tip_chips
Short tags accompanying tips; may be empty.
Definition: types.hpp:4000
std::string tips
Definition: types.hpp:3998
std::string tool_name
Localized display name of the tool.
Definition: types.hpp:3990
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
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
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
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
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:3968
inputs of a WorkflowStarted conversation stream event.
Definition: types.hpp:3936
std::string message_id
Message ID of this round.
Definition: types.hpp:3942
std::string chat_uid
Conversation identifier.
Definition: types.hpp:3940
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:3938
std::string query
The question that was asked.
Definition: types.hpp:3944
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
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
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
std::string min_target
Definition: types.hpp:2763
std::string avg_target
Definition: types.hpp:2760
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
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