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 QuoteTransport
52 {
54  WebSocket,
58  Http,
59 };
60 
62 enum class Market
63 {
65  Unknown,
67  US,
69  HK,
71  CN,
73  SG,
75  Crypto,
76 };
77 
78 namespace quote {
79 
80 enum class TradeStatus;
81 
83 class SubFlags
84 {
85 private:
86  uint8_t value_;
87 
88 public:
89  inline SubFlags(uint8_t value) { value_ = value; }
90 
91  inline operator uint8_t() const { return value_; }
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 SubFlags operator&(const SubFlags& other) const
105  {
106  return SubFlags(value_ & other.value_);
107  }
108 
109  inline SubFlags& operator&=(const SubFlags& other)
110  {
111  value_ &= other.value_;
112  return *this;
113  }
114 
115  inline bool operator==(const SubFlags& other) const
116  {
117  return value_ == other.value_;
118  }
119 
120  inline bool contains(const SubFlags& other) const
121  {
122  return (value_ & other.value_) > 0;
123  }
124 
125  static SubFlags QUOTE();
126  static SubFlags DEPTH();
127  static SubFlags BROKER();
128  static SubFlags TRADE();
129 };
130 
133 {
134  uint8_t value;
135 
136  bool has_option();
137  bool has_warrant();
138 };
139 
141 enum class Period
142 {
144  Unknown,
146  Min1,
148  Min2,
150  Min3,
152  Min5,
154  Min10,
156  Min15,
158  Min20,
160  Min30,
162  Min45,
164  Min60,
166  Min120,
168  Min180,
170  Min240,
172  Day,
174  Week,
176  Month,
178  Quarter,
180  Year,
181 };
182 
185 {
187  std::string symbol;
191  std::vector<Period> candlesticks;
192 };
193 
195 enum class TradeSession
196 {
198  Intraday,
200  Pre,
202  Post,
204  Overnight,
205 };
206 
208 struct PushQuote
209 {
211  std::string symbol;
221  int64_t timestamp;
223  int64_t volume;
231  int64_t current_volume;
234 };
235 
236 struct Depth
237 {
239  int32_t position;
241  std::optional<Decimal> price;
243  int64_t volume;
245  int64_t order_num;
246 };
247 
249 struct PushDepth
250 {
252  std::string symbol;
254  std::vector<Depth> asks;
256  std::vector<Depth> bids;
257 };
258 
260 struct Brokers
261 {
263  int32_t position;
265  std::vector<int32_t> broker_ids;
266 };
267 
270 {
272  std::string symbol;
274  std::vector<Brokers> ask_brokers;
276  std::vector<Brokers> bid_brokers;
277 };
278 
280 enum class SecurityBoard
281 {
283  Unknown,
285  USMain,
287  USPink,
289  USDJI,
291  USNSDQ,
293  USSector,
295  USOption,
297  USOptionS,
299  HKEquity,
301  HKPreIPO,
303  HKWarrant,
305  HKHS,
307  HKSector,
313  SHSTAR,
315  CNIX,
317  CNSector,
323  SZGEMConnect,
327  SGMain,
329  STI,
331  SGSector,
333  SPXIndex,
335  VIXIndex,
336 };
337 
339 struct Security
340 {
342  std::string symbol;
344  std::string name_cn;
346  std::string name_en;
348  std::string name_hk;
349 };
350 
353 {
355  std::string symbol;
357  std::string name_cn;
359  std::string name_en;
361  std::string name_hk;
363  std::string exchange;
365  std::string currency;
367  int32_t lot_size;
369  int64_t total_shares;
373  int64_t hk_shares;
386 };
387 
389 enum class TradeStatus
390 {
392  Normal,
394  Halted,
396  Delisted,
398  Fuse,
400  PrepareList,
402  CodeMoved,
404  ToBeOpened,
408  Expired,
412  SuspendTrade,
413 };
414 
417 {
421  int64_t timestamp;
423  int64_t volume;
432 };
433 
436 {
438  std::string symbol;
450  int64_t timestamp;
452  int64_t volume;
458  std::optional<PrePostQuote> pre_market_quote;
460  std::optional<PrePostQuote> post_market_quote;
462  std::optional<PrePostQuote> overnight_quote;
463 };
464 
466 enum class OptionType
467 {
469  Unknown,
471  American,
473  Europe,
474 };
475 
477 enum class OptionDirection
478 {
480  Unknown,
482  Put,
484  Call,
485 };
486 
489 {
491  Unknown,
493  Monthly,
495  Weekly,
497  Quarterly,
498 };
499 
503 {
505  Unknown,
507  Normal,
509  Old,
510 };
511 
514 {
515  std::string symbol;
527  int64_t timestamp;
529  int64_t volume;
537  int64_t open_interest;
553  std::string underlying_symbol;
554 };
555 
557 enum class TradeDirection
558 {
560  Neutral,
562  Down,
564  Up
565 };
566 
568 struct Trade
569 {
571  int64_t volume;
572  int64_t timestamp;
573  std::string trade_type;
576 };
577 
580 {
582  std::string symbol;
584  std::vector<Trade> trades;
585 };
586 
589 {
599  int64_t volume;
603  int64_t timestamp;
606 };
607 
610 {
612  std::string symbol;
619 };
620 
622 enum class WarrantType
623 {
625  Unknown,
627  Call,
629  Put,
631  Bull,
633  Bear,
635  Inline
636 };
637 
640 {
641  std::string symbol;
653  int64_t timestamp;
655  int64_t volume;
683  std::string underlying_symbol;
684 };
685 
688 {
690  std::vector<Depth> asks;
692  std::vector<Depth> bids;
693 };
694 
697 {
699  std::vector<Brokers> ask_brokers;
701  std::vector<Brokers> bid_brokers;
702 };
703 
705 {
707  std::vector<int32_t> broker_ids;
709  std::string name_cn;
711  std::string name_en;
713  std::string name_hk;
714 };
715 
718 {
720  int64_t timestamp;
721  int64_t volume;
724 };
725 
727 enum class AdjustType
728 {
729  NoAdjust,
731 };
732 
738 {
740  std::string symbol;
754  int32_t days_to_expiry;
755 };
756 
759 {
761  int32_t issuer_id;
763  std::string name_cn;
765  std::string name_en;
767  std::string name_hk;
768 };
769 
771 {
778 };
779 
782 {
786  std::vector<TradingSessionInfo> trade_session;
787 };
788 
791 {
793  std::vector<Date> trading_days;
795  std::vector<Date> half_trading_days;
796 };
797 
800 {
804  int64_t timestamp;
805 };
806 
809 {
816 };
817 
820 {
822  int64_t timestamp;
827 };
828 
831 {
833  std::string symbol;
837  std::string name;
839  std::optional<Decimal> watched_price;
841  int64_t watched_at;
842 };
843 
846 {
848  int64_t id;
850  std::string name;
852  std::vector<WatchlistSecurity> securities;
853 };
854 
857 {
859  Add,
861  Remove,
863  Replace,
864 };
865 
868 {
870  std::string name;
872  std::vector<std::string> securities;
873 };
874 
877 {
879  int64_t id;
881  std::optional<std::string> name;
883  std::optional<std::vector<std::string>> securities;
886 };
887 
890 {
892  std::string symbol;
902  int64_t timestamp;
904  int64_t volume;
909 };
910 
912 enum class CalcIndex
913 {
915  LastDone,
917  ChangeValue,
919  ChangeRate,
921  Volume,
923  Turnover,
927  TurnoverRate,
931  CapitalFlow,
933  Amplitude,
935  VolumeRatio,
937  PeTtmRatio,
939  PbRatio,
951  ExpiryDate,
953  StrikePrice,
963  Premium,
965  ItmOtm,
969  WarrantDelta,
971  CallPrice,
973  ToCallPrice,
981  BalancePoint,
983  OpenInterest,
985  Delta,
987  Gamma,
989  Theta,
991  Vega,
993  Rho,
994 };
995 
998 {
1000  std::string symbol;
1002  std::optional<Decimal> last_done;
1004  std::optional<Decimal> change_value;
1006  std::optional<Decimal> change_rate;
1008  std::optional<int64_t> volume;
1010  std::optional<Decimal> turnover;
1012  std::optional<Decimal> ytd_change_rate;
1014  std::optional<Decimal> turnover_rate;
1016  std::optional<Decimal> total_market_value;
1018  std::optional<Decimal> capital_flow;
1020  std::optional<Decimal> amplitude;
1022  std::optional<Decimal> volume_ratio;
1024  std::optional<Decimal> pe_ttm_ratio;
1026  std::optional<Decimal> pb_ratio;
1028  std::optional<Decimal> dividend_ratio_ttm;
1030  std::optional<Decimal> five_day_change_rate;
1032  std::optional<Decimal> ten_day_change_rate;
1034  std::optional<Decimal> half_year_change_rate;
1036  std::optional<Decimal> five_minutes_change_rate;
1038  std::optional<Date> expiry_date;
1040  std::optional<Decimal> strike_price;
1042  std::optional<Decimal> upper_strike_price;
1044  std::optional<Decimal> lower_strike_price;
1046  std::optional<int64_t> outstanding_qty;
1048  std::optional<Decimal> outstanding_ratio;
1050  std::optional<Decimal> premium;
1052  std::optional<Decimal> itm_otm;
1054  std::optional<Decimal> implied_volatility;
1056  std::optional<Decimal> warrant_delta;
1058  std::optional<Decimal> call_price;
1060  std::optional<Decimal> to_call_price;
1062  std::optional<Decimal> effective_leverage;
1064  std::optional<Decimal> leverage_ratio;
1066  std::optional<Decimal> conversion_ratio;
1068  std::optional<Decimal> balance_point;
1070  std::optional<int64_t> open_interest;
1073  std::optional<Decimal> delta;
1076  std::optional<Decimal> gamma;
1080  std::optional<Decimal> theta;
1084  std::optional<Decimal> vega;
1088  std::optional<Decimal> rho;
1089 };
1090 
1092 enum class SortOrderType
1093 {
1095  Ascending,
1097  Descending,
1098 };
1099 
1101 enum class WarrantSortBy
1102 {
1104  LastDone,
1106  ChangeRate,
1108  ChangeValue,
1110  Volume,
1112  Turnover,
1114  ExpiryDate,
1116  StrikePrice,
1126  Premium,
1128  ItmOtm,
1132  Delta,
1134  CallPrice,
1136  ToCallPrice,
1140  LeverageRatio,
1144  BalancePoint,
1146  Status,
1147 };
1148 
1151 {
1153  LT_3,
1155  Between_3_6,
1157  Between_6_12,
1159  GT_12,
1160 };
1161 
1164 {
1166  In,
1168  Out,
1169 };
1170 
1172 enum class WarrantStatus
1173 {
1175  Unknown,
1177  Suspend,
1179  PrepareList,
1181  Normal,
1182 };
1183 
1186 {
1188  std::string symbol;
1192  std::string name;
1200  int64_t volume;
1207  std::optional<Date> expiry_date;
1209  std::optional<Decimal> strike_price;
1211  std::optional<Decimal> upper_strike_price;
1213  std::optional<Decimal> lower_strike_price;
1221  std::optional<Decimal> itm_otm;
1223  std::optional<Decimal> implied_volatility;
1225  std::optional<Decimal> delta;
1227  std::optional<Decimal> call_price;
1229  std::optional<Decimal> to_call_price;
1231  std::optional<Decimal> effective_leverage;
1235  std::optional<Decimal> conversion_ratio;
1237  std::optional<Decimal> balance_point;
1240 };
1241 
1244 {
1246  Overnight,
1247 };
1248 
1251 {
1253  std::string key;
1255  std::string name;
1257  std::string description;
1259  int64_t start_at;
1261  int64_t end_at;
1262 };
1263 
1265 enum class TradeSessions
1266 {
1268  Intraday,
1270  All,
1271 };
1272 
1275 {
1277  int32_t temperature;
1279  std::string description;
1281  int32_t valuation;
1283  int32_t sentiment;
1285  int64_t timestamp;
1286 };
1287 
1290 {
1299 };
1300 
1303 {
1307  std::vector<MarketTemperature> records;
1308 };
1309 
1312 {
1314  std::string id;
1316  std::string title;
1318  std::string description;
1320  std::string file_name;
1322  std::vector<std::string> file_urls;
1324  int64_t published_at;
1325 };
1326 
1329 {
1331  std::string timestamp;
1333  std::string rate;
1335  std::string close;
1341  std::string days_to_cover;
1343  std::string amount;
1345  std::string balance;
1347  std::string cost;
1348 };
1349 
1352 {
1354  std::vector<ShortPositionsItem> data;
1355 };
1356 
1359 {
1361  std::string timestamp;
1363  std::string rate;
1365  std::string close;
1367  std::string nus_amount;
1369  std::string ny_amount;
1371  std::string total_amount;
1373  std::string amount;
1375  std::string balance;
1376 };
1377 
1380 {
1382  std::vector<ShortTradesItem> data;
1383 };
1384 
1386 {
1387  std::string symbol;
1388  int64_t call_volume;
1389  int64_t put_volume;
1390 };
1391 
1393 {
1394  std::string symbol;
1396  int64_t call_volume;
1397  int64_t put_volume;
1400  int64_t total_volume;
1402  double pc_vol;
1403  double pc_oi;
1404 };
1405 
1407 {
1408  std::string symbol;
1409  std::vector<OptionVolumeDailyStat> stats;
1410 };
1411 
1412 } // namespace quote
1413 
1414 namespace trade {
1415 
1417 enum class TopicType
1418 {
1420  Private,
1421 };
1422 
1424 enum class OrderSide
1425 {
1427  Unknown,
1429  Buy,
1431  Sell,
1432 };
1433 
1436 {
1437  std::string order_id;
1438  std::string trade_id;
1439  std::string symbol;
1440  int64_t trade_done_at;
1446 };
1447 
1450 {
1452  std::optional<int64_t> start_at;
1454  std::optional<int64_t> end_at;
1456  std::optional<std::string> symbol;
1457 };
1458 
1461 {
1463  std::optional<std::string> symbol;
1465  std::optional<std::string> order_id;
1466 };
1467 
1470 {
1472  std::optional<std::string> symbol;
1474  std::optional<std::string> order_id;
1476  std::optional<int64_t> start_at;
1478  std::optional<int64_t> end_at;
1480  std::optional<uint64_t> page;
1481 };
1482 
1485 {
1487  bool has_more;
1489  std::vector<Execution> trades;
1490 };
1491 
1493 enum class OrderStatus
1494 {
1496  Unknown,
1498  NotReported,
1506  Filled,
1508  WaitToNew,
1510  New,
1512  WaitToReplace,
1516  Replaced,
1518  PartialFilled,
1520  WaitToCancel,
1522  PendingCancel,
1524  Rejected,
1526  Canceled,
1528  Expired,
1533 };
1534 
1536 enum class OrderType
1537 {
1539  Unknown,
1541  LO,
1543  ELO,
1545  MO,
1547  AO,
1549  ALO,
1551  ODD,
1553  LIT,
1555  MIT,
1557  TSLPAMT,
1559  TSLPPCT,
1561  TSMAMT,
1563  TSMPCT,
1565  SLO,
1566 };
1567 
1569 enum class OrderTag
1570 {
1572  Unknown,
1574  Normal,
1576  LongTerm,
1578  Grey,
1579 };
1580 
1583 {
1585  Unknown,
1587  Day,
1591  GoodTilDate,
1592 };
1593 
1595 enum class TriggerStatus
1596 {
1598  Unknown,
1600  Deactive,
1602  Active,
1604  Released,
1605 };
1606 
1608 enum class OutsideRTH
1609 {
1611  Unknown,
1613  RTHOnly,
1615  AnyTime,
1617  Overnight,
1620 };
1621 
1624 {
1626  Unknown,
1628  ProfitTaker,
1630  StopLoss,
1632  Bracket,
1633 };
1634 
1637 {
1638  std::string order_id;
1640  std::optional<Decimal> trigger_price;
1644  int64_t updated_at;
1646  std::optional<Date> gtd;
1648  std::string counter_id;
1649  std::optional<TriggerStatus> trigger_status;
1652  int64_t submitted_at;
1653  std::optional<Decimal> executed_price;
1654  std::optional<OutsideRTH> force_only_rth;
1655  bool reviewed;
1657  std::optional<OutsideRTH> activate_rth;
1658  std::optional<Decimal> submit_price;
1660  std::optional<int32_t> limit_depth_level;
1661 };
1662 
1665 {
1667  std::optional<Decimal> profit_taker_price;
1668  std::optional<Decimal> stop_loss_price;
1669  std::optional<TimeInForceType> time_in_force;
1670  std::optional<int64_t> expire_time;
1671  std::optional<OrderType> activate_order_type;
1672  std::optional<Decimal> profit_taker_submit_price;
1673  std::optional<Decimal> stop_loss_submit_price;
1674  std::optional<OutsideRTH> activate_rth;
1677  std::optional<int32_t> profit_taker_depth_level;
1680  std::optional<int32_t> stop_loss_depth_level;
1681 };
1682 
1685 {
1687  std::optional<Decimal> profit_taker_price;
1688  std::optional<Decimal> stop_loss_price;
1689  std::optional<TimeInForceType> time_in_force;
1690  std::optional<int64_t> expire_time;
1691  std::optional<OrderType> activate_order_type;
1692  std::optional<Decimal> profit_taker_submit_price;
1693  std::optional<Decimal> stop_loss_submit_price;
1694  std::optional<OutsideRTH> activate_rth;
1695  std::optional<int64_t> profit_taker_id;
1696  std::optional<int64_t> stop_loss_id;
1697  std::optional<bool> cancel_all_attached;
1698  std::optional<int64_t> main_id;
1699  std::optional<Decimal> quantity;
1700  std::optional<Decimal> market_price;
1703  std::optional<int32_t> profit_taker_depth_level;
1706  std::optional<int32_t> stop_loss_depth_level;
1707 };
1708 
1711 {
1713  Unknown,
1715  CoveredCall,
1717  CoveredPut,
1723  Collar,
1725  Straddle,
1727  Strangle,
1732 };
1733 
1736 {
1738  Unknown,
1740  Long,
1742  Short,
1743 };
1744 
1747 {
1749  Unknown,
1751  Call,
1753  Put,
1754 };
1755 
1758 {
1760  std::string symbol;
1768  std::optional<Decimal> strike_price;
1770  std::optional<Date> expire_date;
1773 };
1774 
1777 {
1781  std::string strategy_name;
1783  std::string multileg_id;
1785  std::string code;
1787  std::vector<MultiLegOrderLeg> legs;
1788 };
1789 
1791 struct Order
1792 {
1794  std::string order_id;
1798  std::string stock_name;
1804  std::optional<Decimal> price;
1806  std::optional<Decimal> executed_price;
1808  int64_t submitted_at;
1812  std::string symbol;
1816  std::optional<Decimal> last_done;
1818  std::optional<Decimal> trigger_price;
1820  std::string msg;
1826  std::optional<Date> expire_date;
1828  std::optional<int64_t> updated_at;
1830  std::optional<int64_t> trigger_at;
1832  std::optional<Decimal> trailing_amount;
1834  std::optional<Decimal> trailing_percent;
1836  std::optional<Decimal> limit_offset;
1838  std::optional<TriggerStatus> trigger_status;
1840  std::string currency;
1842  std::optional<OutsideRTH> outside_rth;
1844  std::optional<int32_t> limit_depth_level;
1846  std::optional<int32_t> trigger_count;
1848  std::optional<Decimal> monitor_price;
1850  std::string remark;
1853  std::optional<int64_t> delayed_until;
1855  std::vector<AttachedOrderDetail> attached_orders;
1858  std::optional<MultiLegInfo> multi_leg;
1859 };
1860 
1863 {
1867  std::string stock_name;
1871  std::string symbol;
1879  std::optional<Decimal> executed_price;
1881  std::string order_id;
1883  std::string currency;
1887  int64_t submitted_at;
1889  int64_t updated_at;
1891  std::optional<Decimal> trigger_price;
1893  std::string msg;
1897  std::optional<TriggerStatus> trigger_status;
1899  std::optional<int64_t> trigger_at;
1901  std::optional<Decimal> trailing_amount;
1903  std::optional<Decimal> trailing_percent;
1905  std::optional<Decimal> limit_offset;
1907  std::string account_no;
1909  std::optional<Decimal> last_share;
1911  std::optional<Decimal> last_price;
1913  std::string remark;
1916  std::optional<MultiLegInfo> multi_leg;
1917 };
1918 
1921 {
1923  std::optional<std::string> symbol;
1925  std::optional<std::vector<OrderStatus>> status;
1927  std::optional<OrderSide> side;
1929  std::optional<Market> market;
1931  std::optional<int64_t> start_at;
1933  std::optional<int64_t> end_at;
1934 };
1935 
1938 {
1940  std::optional<std::string> symbol;
1942  std::optional<std::vector<OrderStatus>> status;
1944  std::optional<OrderSide> side;
1946  std::optional<Market> market;
1948  std::optional<std::string> order_id;
1950  std::optional<bool> is_attached;
1951 };
1952 
1955 {
1957  std::string order_id;
1961  std::optional<Decimal> price;
1963  std::optional<Decimal> trigger_price;
1965  std::optional<Decimal> limit_offset;
1967  std::optional<Decimal> trailing_amount;
1969  std::optional<Decimal> trailing_percent;
1971  std::optional<int32_t> limit_depth_level;
1973  std::optional<int32_t> trigger_count;
1975  std::optional<Decimal> monitor_price;
1977  std::optional<std::string> remark;
1979  std::optional<ReplaceAttachedParams> attached_params;
1983  std::optional<int64_t> delayed_until;
1986  bool clear_delayed_until = false;
1987 };
1988 
1991 {
1993  std::string symbol;
2003  std::optional<Decimal> submitted_price;
2005  std::optional<Decimal> trigger_price;
2007  std::optional<Decimal> limit_offset;
2009  std::optional<Decimal> trailing_amount;
2011  std::optional<Decimal> trailing_percent;
2014  std::optional<Date> expire_date;
2016  std::optional<OutsideRTH> outside_rth;
2018  std::optional<int32_t> limit_depth_level;
2020  std::optional<int32_t> trigger_count;
2022  std::optional<Decimal> monitor_price;
2024  std::optional<std::string> remark;
2028  std::optional<std::string> client_request_id;
2030  std::optional<SubmitAttachedParams> attached_params;
2034  std::optional<int64_t> delayed_until;
2035 };
2036 
2039 {
2041  std::string order_id;
2042 };
2043 
2046 {
2048  std::string symbol;
2054 };
2055 
2058 {
2068  std::vector<SubmitMultiLegOrderLeg> legs;
2070  std::optional<Decimal> submitted_price;
2072  std::optional<std::string> remark;
2076  std::optional<std::string> client_request_id;
2079  std::optional<int64_t> delayed_until;
2080 };
2081 
2083 struct CashInfo
2084 {
2094  std::string currency;
2095 };
2096 
2099 {
2100  std::string currency;
2102 };
2103 
2106 {
2114  int32_t risk_level;
2118  std::string currency;
2120  std::vector<CashInfo> cash_infos;
2130  std::vector<FrozenTransactionFee> frozen_transaction_fees;
2131 };
2132 
2135 {
2137  Unknown,
2139  Out,
2141  In,
2142 };
2143 
2145 enum class BalanceType
2146 {
2148  Unknown,
2150  Cash,
2152  Stock,
2154  Fund,
2155 };
2156 
2158 struct CashFlow
2159 {
2169  std::string currency;
2171  int64_t business_time;
2173  std::optional<std::string> symbol;
2175  std::string description;
2176 };
2177 
2180 {
2182  int64_t start_at;
2184  int64_t end_at;
2186  std::optional<BalanceType> business_type;
2188  std::optional<std::string> symbol;
2190  std::optional<uintptr_t> page;
2192  std::optional<uintptr_t> size;
2193 };
2194 
2197 {
2199  std::optional<std::vector<std::string>> symbols;
2200 };
2201 
2204 {
2206  std::optional<std::vector<std::string>> symbols;
2207 };
2208 
2211 {
2213  std::string counter_id;
2219  std::string symbol_name;
2221  std::string currency;
2226 };
2227 
2230 {
2232  std::string account_channel;
2234  std::vector<FundPosition> positions;
2235 };
2236 
2239 {
2241  std::vector<FundPositionChannel> channels;
2242 };
2243 
2246 {
2248  std::string symbol;
2250  std::string symbol_name;
2256  std::string currency;
2263  std::optional<Decimal> init_quantity;
2264 };
2265 
2268 {
2270  std::string account_channel;
2272  std::vector<StockPosition> positions;
2273 };
2274 
2277 {
2279  std::vector<StockPositionChannel> channels;
2280 };
2281 
2284 {
2291 };
2292 
2295 {
2296  Unknown,
2297  None,
2298  Calculated,
2299  Pending,
2300  Ready,
2301 };
2302 
2305 {
2306  Unknown,
2307  None,
2308  NoData,
2309  Pending,
2310  Done,
2311 };
2312 
2315 {
2316  Unknown,
2317  Broker,
2318  Third,
2319 };
2320 
2323 {
2333  std::string msg;
2335  int64_t time;
2336 };
2337 
2340 {
2342  std::string code;
2344  std::string name;
2348  std::string currency;
2349 };
2350 
2353 {
2357  std::string name;
2359  std::vector<OrderChargeFee> fees;
2360 };
2361 
2364 {
2368  std::string currency;
2370  std::vector<OrderChargeItem> items;
2371 };
2372 
2375 {
2377  std::string order_id;
2381  std::string stock_name;
2387  std::optional<Decimal> price;
2389  std::optional<Decimal> executed_price;
2391  int64_t submitted_at;
2395  std::string symbol;
2399  std::optional<Decimal> last_done;
2401  std::optional<Decimal> trigger_price;
2403  std::string msg;
2409  std::optional<Date> expire_date;
2411  std::optional<int64_t> updated_at;
2413  std::optional<int64_t> trigger_at;
2415  std::optional<Decimal> trailing_amount;
2417  std::optional<Decimal> trailing_percent;
2419  std::optional<Decimal> limit_offset;
2421  std::optional<TriggerStatus> trigger_status;
2423  std::string currency;
2425  std::optional<OutsideRTH> outside_rth;
2427  std::optional<int32_t> limit_depth_level;
2429  std::optional<int32_t> trigger_count;
2431  std::optional<Decimal> monitor_price;
2433  std::string remark;
2436  std::optional<int64_t> delayed_until;
2440  std::optional<Decimal> free_amount;
2442  std::optional<std::string> free_currency;
2446  std::optional<Decimal> deductions_amount;
2448  std::optional<std::string> deductions_currency;
2452  std::optional<Decimal> platform_deducted_amount;
2454  std::optional<std::string> platform_deducted_currency;
2456  std::vector<OrderHistoryDetail> history;
2458  std::optional<OrderChargeDetail> charge_detail;
2460  std::vector<AttachedOrderDetail> attached_orders;
2463  std::optional<MultiLegInfo> multi_leg;
2464 };
2465 
2468 {
2470  std::string symbol;
2476  std::optional<Decimal> price;
2478  std::optional<std::string> currency;
2481  std::optional<std::string> order_id;
2484 };
2485 
2488 {
2493 };
2494 
2495 
2498 {
2500  std::string order_id;
2502  std::string status;
2504  std::string symbol;
2506  std::string suspend_reason;
2510  std::string current_base_price;
2512  std::string upper_limit_price;
2514  std::string lower_limit_price;
2518  std::string trigger_quantity;
2520  std::string settlement_currency;
2522  int32_t time_in_force;
2524  int32_t rth;
2526  std::string grid_order_type_up;
2529 };
2530 
2531 } // namespace trade
2532 
2533 namespace grid {
2534 
2536 enum class TriggerPriceType : int32_t
2537 {
2539  Unknown = 0,
2541  Spread = 1,
2543  Percent = 2,
2544 };
2545 
2548 enum class GridTimeInForce : int32_t
2549 {
2551  Day = 0,
2553  GoodTilCanceled = 1,
2555  GoodTilDate = 6,
2556 };
2557 
2559 enum class GridLimitEvent : int32_t
2560 {
2562  Unknown = 0,
2564  Ignore = 1,
2566  CloseAtLast = 2,
2567 };
2568 
2573 {
2575  enum class Kind
2576  {
2578  Percent,
2580  Spread,
2581  };
2588 
2591  {
2592  return GridTrigger{ Kind::Percent, up, down };
2593  }
2596  {
2597  return GridTrigger{ Kind::Spread, up, down };
2598  }
2599 };
2600 
2607 {
2609  std::optional<Decimal> submitted_base_price;
2611  std::optional<Decimal> upper_limit_price;
2613  std::optional<Decimal> lower_limit_price;
2615  std::optional<TriggerPriceType> trigger_price_type;
2617  std::optional<Decimal> trigger_spread_up;
2619  std::optional<Decimal> trigger_spread_down;
2621  std::optional<Decimal> trigger_percent_up;
2623  std::optional<Decimal> trigger_percent_down;
2625  std::optional<bool> multiple_trigger;
2627  std::optional<GridTimeInForce> time_in_force;
2629  std::optional<Decimal> upper_limit_quantity;
2631  std::optional<Decimal> lower_limit_quantity;
2633  std::optional<int64_t> expire_time;
2636  std::optional<GridLimitEvent> upper_limit_event;
2639  std::optional<GridLimitEvent> lower_limit_event;
2641  std::optional<int32_t> trigger_sell_depth;
2643  std::optional<int32_t> trigger_buy_depth;
2645  std::optional<Decimal> trigger_quantity;
2647  std::optional<bool> support_shortsell;
2649  std::optional<int32_t> rth;
2651  std::optional<std::string> grid_order_type_up;
2653  std::optional<std::string> grid_order_type_down;
2654 
2658  static GridTradeRule create(Decimal base_price,
2659  Decimal upper_price,
2660  Decimal lower_price,
2661  GridTrigger trigger,
2662  Decimal quantity,
2663  Decimal upper_quantity,
2664  Decimal lower_quantity,
2666  {
2667  GridTradeRule rule;
2668  rule.submitted_base_price = base_price;
2669  rule.upper_limit_price = upper_price;
2670  rule.lower_limit_price = lower_price;
2671  rule.trigger_quantity = quantity;
2672  rule.upper_limit_quantity = upper_quantity;
2673  rule.lower_limit_quantity = lower_quantity;
2675  if (trigger.kind == GridTrigger::Kind::Percent) {
2677  rule.trigger_percent_up = trigger.up;
2678  rule.trigger_percent_down = trigger.down;
2679  } else {
2681  rule.trigger_spread_up = trigger.up;
2682  rule.trigger_spread_down = trigger.down;
2683  }
2684  return rule;
2685  }
2686 
2689  {
2690  upper_limit_event = upper;
2691  lower_limit_event = lower;
2692  return *this;
2693  }
2694 
2696  GridTradeRule& with_depths(int32_t sell, int32_t buy)
2697  {
2698  trigger_sell_depth = sell;
2699  trigger_buy_depth = buy;
2700  return *this;
2701  }
2702 
2704  GridTradeRule& with_order_types(std::string up, std::string down)
2705  {
2706  grid_order_type_up = std::move(up);
2707  grid_order_type_down = std::move(down);
2708  return *this;
2709  }
2710 
2713  {
2714  multiple_trigger = value;
2715  return *this;
2716  }
2717 
2720  {
2721  support_shortsell = value;
2722  return *this;
2723  }
2724 
2726  GridTradeRule& with_rth(int32_t value)
2727  {
2728  rth = value;
2729  return *this;
2730  }
2731 
2733  GridTradeRule& with_expire_time(int64_t unix_seconds)
2734  {
2735  expire_time = unix_seconds;
2736  return *this;
2737  }
2738 };
2739 
2742 {
2744  std::string symbol;
2746  std::string settlement_currency;
2749 };
2750 
2753 {
2755  std::string order_id;
2758 };
2759 
2762 {
2764  std::optional<int32_t> page;
2766  std::optional<int32_t> limit;
2768  std::optional<Market> market;
2770  std::optional<std::string> status;
2772  std::optional<std::string> symbol;
2774  std::optional<std::string> sort_by;
2776  std::optional<std::string> sort_order;
2777 };
2778 
2781 {
2783  std::vector<std::string> order_ids;
2784 };
2785 
2788 {
2790  std::string order_id;
2792  std::optional<std::string> history_id;
2794  std::optional<int32_t> limit;
2795 };
2796 
2799 {
2801  std::string grid_order_id;
2803  std::optional<int32_t> page;
2805  std::optional<int32_t> limit;
2806 };
2807 
2810 {
2812  std::string order_id;
2813 };
2814 
2817 {
2819  std::string order_id;
2821  std::string symbol;
2823  std::string stock_name;
2825  std::string market;
2827  std::string status;
2829  std::string grid_status;
2831  std::optional<Decimal> submitted_base_price;
2833  std::optional<Decimal> current_base_price;
2835  std::optional<Decimal> pre_trigger_base_price;
2837  std::optional<Decimal> post_trigger_base_price;
2839  std::optional<Decimal> upper_limit_price;
2841  std::optional<Decimal> lower_limit_price;
2845  std::optional<Decimal> trigger_spread_up;
2847  std::optional<Decimal> trigger_spread_down;
2849  std::optional<Decimal> trigger_percent_up;
2851  std::optional<Decimal> trigger_percent_down;
2853  std::optional<Decimal> pullback_percent;
2855  std::optional<Decimal> pullback_spread;
2857  std::optional<Decimal> rebound_percent;
2859  std::optional<Decimal> rebound_spread;
2869  std::optional<Decimal> trigger_quantity;
2871  std::optional<Decimal> trigger_sell_quantity;
2873  std::optional<Decimal> trigger_buy_quantity;
2875  std::optional<Decimal> upper_limit_quantity;
2877  std::optional<Decimal> lower_limit_quantity;
2885  int32_t trigger_times;
2887  std::optional<Decimal> total_buy_quantity;
2889  std::optional<Decimal> total_sell_quantity;
2891  std::optional<Decimal> total_profit_balance;
2893  std::string settlement_currency;
2897  std::string gtd;
2899  std::optional<int64_t> created_at;
2901  int32_t rth;
2905  std::string grid_order_type_up;
2908 };
2909 
2912 {
2914  std::string id;
2916  std::optional<Decimal> price;
2918  std::string order_type;
2920  std::optional<Decimal> quantity;
2922  std::optional<Decimal> executed_qty;
2924  int32_t action;
2926  std::string status;
2928  std::optional<int64_t> submitted_at;
2930  int32_t rth;
2931 };
2932 
2935 {
2937  std::string history_id;
2939  std::optional<int64_t> created_at;
2941  std::string status;
2943  std::string suspend_reason;
2945  std::string reason;
2946 };
2947 
2950 {
2952  std::string order_id;
2954  std::string symbol;
2956  std::string stock_name;
2958  std::string status;
2960  std::string grid_status;
2962  std::string suspend_reason;
2964  std::string sleeping_reason;
2966  std::optional<Decimal> submitted_base_price;
2968  std::optional<Decimal> current_base_price;
2970  std::optional<Decimal> upper_limit_price;
2972  std::optional<Decimal> lower_limit_price;
2976  std::optional<Decimal> trigger_spread_up;
2978  std::optional<Decimal> trigger_spread_down;
2980  std::optional<Decimal> trigger_percent_up;
2982  std::optional<Decimal> trigger_percent_down;
2984  std::optional<Decimal> pullback_percent;
2986  std::optional<Decimal> pullback_spread;
2988  std::optional<Decimal> rebound_percent;
2990  std::optional<Decimal> rebound_spread;
2996  std::optional<Decimal> trigger_quantity;
2998  std::optional<Decimal> trigger_sell_quantity;
3000  std::optional<Decimal> trigger_buy_quantity;
3002  std::optional<Decimal> upper_limit_quantity;
3004  std::optional<Decimal> lower_limit_quantity;
3014  std::optional<int64_t> created_at;
3016  std::optional<int64_t> updated_at;
3018  std::string settlement_currency;
3020  std::optional<int64_t> expire_time;
3022  std::string gtd;
3024  std::vector<GridOrderSubOrder> grid_sub_orders;
3028  std::vector<GridOrderHistory> grid_order_history;
3034  int32_t rth;
3036  std::string grid_order_type_up;
3039 };
3040 
3043 {
3045  std::string id;
3047  std::string status;
3049  std::string name;
3051  std::string symbol;
3053  std::optional<Decimal> price;
3055  std::optional<Decimal> quantity;
3057  std::optional<Decimal> executed_price;
3059  std::optional<Decimal> executed_qty;
3061  std::optional<int64_t> submitted_at;
3063  int32_t action;
3065  std::string order_type;
3067  std::optional<Decimal> trigger_price;
3069  std::string msg;
3071  std::string currency;
3073  std::optional<Decimal> last_done;
3075  std::optional<int64_t> updated_at;
3079  std::string gtd;
3081  std::optional<int64_t> trigger_at;
3084 };
3085 
3088 {
3090  std::optional<Decimal> str_proceed;
3092  std::optional<Decimal> end_proceed;
3094  std::optional<Decimal> bid_size;
3095 };
3096 
3099 {
3105  std::string currency;
3107  std::vector<std::string> settlement_currency;
3108 };
3109 
3112 {
3114  std::string name;
3116  std::optional<Decimal> last_done;
3118  std::optional<Decimal> lot_size;
3120  std::optional<Decimal> buy_lot_size;
3122  std::optional<Decimal> sell_lot_size;
3124  std::vector<GridBidSize> bid_sizes;
3127 };
3128 
3131 {
3133  std::vector<GridOrder> grid_order;
3135  bool has_more;
3136 };
3137 
3140 {
3142  std::vector<TriggerOrder> trigger_orders;
3144  bool has_more;
3145 };
3146 } // namespace grid
3147 
3148 namespace content {
3149 
3152 {
3154  std::string id;
3156  std::string title;
3158  std::string description;
3160  std::string url;
3162  int64_t published_at;
3166  int32_t likes_count;
3168  int32_t shares_count;
3169 };
3170 
3172 struct NewsItem
3173 {
3175  std::string id;
3177  std::string title;
3179  std::string description;
3181  std::string url;
3183  int64_t published_at;
3187  int32_t likes_count;
3189  int32_t shares_count;
3190 };
3191 
3194 {
3196  std::string member_id;
3198  std::string name;
3200  std::string avatar;
3201 };
3202 
3205 {
3207  std::string url;
3209  std::string sm;
3211  std::string lg;
3212 };
3213 
3216 {
3218  std::string id;
3220  std::string title;
3222  std::string description;
3224  std::string body;
3228  std::vector<std::string> tickers;
3230  std::vector<std::string> hashtags;
3232  std::vector<TopicImage> images;
3234  int32_t likes_count;
3238  int32_t views_count;
3240  int32_t shares_count;
3242  std::string topic_type;
3244  std::string detail_url;
3246  int64_t created_at;
3248  int64_t updated_at;
3249 };
3250 
3253 {
3255  int32_t page = 0;
3257  int32_t size = 0;
3259  std::string topic_type;
3260 };
3261 
3264 {
3266  std::string title;
3268  std::string body;
3270  std::string topic_type;
3272  std::vector<std::string> tickers;
3274  std::vector<std::string> hashtags;
3275 };
3276 
3277 } // namespace content
3278 
3279 // ── MarketContext types ───────────────────────────────────────────
3280 namespace market {
3281 
3284 {
3286  int32_t trade_status;
3287  std::string timestamp;
3289  std::string delay_timestamp;
3290  int32_t sub_status;
3292 };
3293 
3296 {
3297  std::vector<MarketTimeItem> market_time;
3298 };
3299 
3302 {
3303  std::string name;
3304  std::string parti_number;
3305  std::string chg;
3306  bool strong;
3307 };
3308 
3311 {
3312  std::vector<BrokerHoldingEntry> buy;
3313  std::vector<BrokerHoldingEntry> sell;
3314  std::string updated_at;
3315 };
3316 
3319 {
3320  std::string value;
3321  std::string chg_1;
3322  std::string chg_5;
3323  std::string chg_20;
3324  std::string chg_60;
3325 };
3326 
3329 {
3330  std::string name;
3331  std::string parti_number;
3334  bool strong;
3335 };
3336 
3339 {
3340  std::vector<BrokerHoldingDetailItem> list;
3341  std::string updated_at;
3342 };
3343 
3346 {
3347  std::string date;
3348  std::string holding;
3349  std::string ratio;
3350  std::string chg;
3351 };
3352 
3355 {
3356  std::vector<BrokerHoldingDailyItem> list;
3357 };
3358 
3361 {
3362  std::string aprice;
3363  std::string apreclose;
3364  std::string hprice;
3365  std::string hpreclose;
3366  std::string currency_rate;
3367  std::string ahpremium_rate;
3368  std::string price_spread;
3369  int64_t timestamp;
3370 };
3371 
3374 {
3375  std::vector<AhPremiumKline> klines;
3376 };
3377 
3380 {
3381  std::vector<AhPremiumKline> klines;
3382 };
3383 
3386 {
3387  std::string buy_amount;
3388  std::string neutral_amount;
3389  std::string price;
3390  std::string sell_amount;
3391 };
3392 
3395 {
3396  std::string avgprice;
3397  std::string buy;
3398  std::string neutral;
3399  std::string preclose;
3400  std::string sell;
3401  std::string timestamp;
3402  std::string total_amount;
3403  std::vector<std::string> trade_date;
3404  std::string trades_count;
3405 };
3406 
3409 {
3411  std::vector<TradePriceLevel> trades;
3412 };
3413 
3416 {
3417  std::string symbol;
3418  std::string code;
3419  std::string name;
3420  std::string full_name;
3421  std::string change;
3422  std::string last_done;
3423  std::string market;
3424  std::string logo;
3425  std::vector<std::string> labels;
3426 };
3427 
3430 {
3431  std::string timestamp;
3432  std::string alert_reason;
3433  int64_t alert_type;
3435  std::string post;
3436 };
3437 
3440 {
3441  std::vector<TopMoversEvent> events;
3443  std::string next_params;
3444 };
3445 
3448 {
3449  std::string symbol;
3450  std::string code;
3451  std::string name;
3452  std::string last_done;
3453  std::string chg;
3454  std::string change;
3455  std::string inflow;
3456  std::string market_cap;
3457  std::string industry;
3458  std::string pre_post_price;
3459  std::string pre_post_chg;
3460  std::string amplitude;
3461  std::string five_day_chg;
3462  std::string turnover_rate;
3463  std::string volume_rate;
3464  std::string pb_ttm;
3465 };
3466 
3469 {
3470  bool bmp;
3471  std::vector<RankListItem> lists;
3472 };
3473 
3476 {
3478  std::string key;
3480  std::string name;
3482  std::string market;
3483 };
3484 
3487 {
3489  std::string key;
3491  std::string name;
3492  std::vector<RankSubCategory> sub_categories;
3493 };
3494 
3497 {
3498  std::vector<RankCategory> categories;
3499 };
3500 
3503 {
3504  std::string symbol;
3505  std::string name;
3506  std::string alert_name;
3507  int64_t alert_time;
3508  std::vector<std::string> change_values;
3509  int32_t emotion;
3510 };
3511 
3514 {
3515  bool all_off;
3516  std::vector<AnomalyItem> changes;
3517 };
3518 
3521 {
3522  std::string symbol;
3523  std::string name;
3524  std::string last_done;
3525  std::string prev_close;
3526  std::string inflow;
3527  std::string balance;
3528  std::string amount;
3529  std::string total_shares;
3530  std::vector<std::string> tags;
3531  std::string intro;
3532  std::string market;
3533  std::string circulating_shares;
3534  bool delay;
3535  std::string chg;
3536  int32_t trade_status;
3537 };
3538 
3541 {
3542  int32_t fall_num;
3543  int32_t flat_num;
3544  int32_t rise_num;
3545  std::vector<ConstituentStock> stocks;
3546 };
3547 
3548 } // namespace market
3549 
3550 // ── FundamentalContext types ──────────────────────────────────────
3551 namespace fundamental {
3552 
3555 {
3556  Unknown = 0,
3557  StrongBuy = 1,
3558  Buy = 2,
3559  Hold = 3,
3560  Sell = 4,
3561  StrongSell = 5,
3562  Underperform = 6,
3563 };
3564 
3567 {
3568  std::string symbol;
3569  std::string id;
3570  std::string desc;
3571  std::string record_date;
3572  std::string ex_date;
3573  std::string payment_date;
3574 };
3575 
3578 {
3579  std::vector<DividendItem> list;
3580 };
3581 
3584 {
3585  int32_t buy;
3586  int32_t over;
3587  int32_t hold;
3588  int32_t under;
3589  int32_t sell;
3590  int32_t no_opinion;
3591  int32_t total;
3592  std::string start_date;
3593  std::string end_date;
3594 };
3595 
3598 {
3599  std::string highest_price;
3600  std::string lowest_price;
3601  std::string prev_close;
3602  std::string start_date;
3603  std::string end_date;
3604 };
3605 
3608 {
3609  int32_t buy;
3610  std::string date;
3611  int32_t hold;
3612  int32_t sell;
3613  int32_t strong_buy;
3614  int32_t under;
3615 };
3616 
3619 {
3622  int64_t industry_id;
3623  std::string industry_name;
3624  int32_t industry_rank;
3626  int32_t industry_mean;
3628 };
3629 
3632 {
3633  std::string ccy_symbol;
3634  std::string change;
3637  std::string target;
3638  std::string updated_at;
3639 };
3640 
3643 {
3646 };
3647 
3650 {
3651  int32_t buy;
3652  std::string date;
3653  int32_t hold;
3654  int32_t sell;
3655  int32_t strong_buy;
3656  int32_t under;
3657 };
3658 
3661 {
3662  std::string avg_target;
3663  std::string date;
3664  std::string max_target;
3665  std::string min_target;
3666  bool meet;
3667  std::string price;
3668  std::string timestamp;
3669 };
3670 
3673 {
3674  std::string ccy_symbol;
3675  std::vector<InstitutionRatingDetailEvaluateItem> evaluate_list;
3676  std::string data_percent;
3677  std::string prediction_accuracy;
3678  std::string updated_at;
3679  std::vector<InstitutionRatingDetailTargetItem> target_list;
3680 };
3681 
3684 {
3685  std::string forecast_eps_median;
3686  std::string forecast_eps_mean;
3687  std::string forecast_eps_lowest;
3694 };
3695 
3698 {
3699  std::vector<ForecastEpsItem> items;
3700 };
3701 
3704 {
3705  int64_t timestamp;
3706  std::string value;
3707 };
3708 
3711 {
3712  std::string desc;
3713  std::string high;
3714  std::string low;
3715  std::string median;
3716  std::vector<ValuationPoint> list;
3717 };
3718 
3721 {
3722  std::optional<ValuationMetricData> pe;
3723  std::optional<ValuationMetricData> pb;
3724  std::optional<ValuationMetricData> ps;
3725  std::optional<ValuationMetricData> dvd_yld;
3726 };
3727 
3730 {
3732 };
3733 
3736 {
3737  std::optional<ValuationMetricData> pe;
3738  std::optional<ValuationMetricData> pb;
3739  std::optional<ValuationMetricData> ps;
3740 };
3741 
3744 {
3745  std::string name;
3746  std::string company_name;
3747  std::string founded;
3748  std::string listing_date;
3749  std::string market;
3750  std::string region;
3751  std::string address;
3752  std::string office_address;
3753  std::string website;
3754  std::string issue_price;
3755  std::string shares_offered;
3756  std::string chairman;
3757  std::string secretary;
3758  std::string audit_inst;
3759  std::string category;
3760  std::string year_end;
3761  std::string employees;
3762  std::string phone;
3763  std::string fax;
3764  std::string email;
3765  std::string legal_repr;
3766  std::string manager;
3767  std::string ticker;
3768  std::string profile;
3769  int32_t sector;
3770 };
3771 
3774 {
3775  std::string symbol;
3776  std::string code;
3777  std::string market;
3778  std::string chg;
3779 };
3780 
3783 {
3784  std::string shareholder_id;
3785  std::string shareholder_name;
3786  std::string institution_type;
3787  std::string percent_of_shares;
3788  std::string shares_changed;
3789  std::string report_date;
3790  std::vector<ShareholderStock> stocks;
3791 };
3792 
3795 {
3796  std::vector<Shareholder> shareholder_list;
3797  std::string forward_url;
3798  int32_t total;
3799 };
3800 
3803 {
3804  std::string code;
3805  std::string symbol;
3806  std::string currency;
3807  std::string name;
3808  std::string position_ratio;
3809  std::string report_date;
3810 };
3811 
3814 {
3815  std::vector<FundHolder> lists;
3816 };
3817 
3820 {
3821  std::string id;
3822  std::string date;
3823  std::string date_str;
3824  std::string date_type;
3825  std::string date_zone;
3826  std::string act_type;
3827  std::string act_desc;
3828  std::string action;
3829  bool recent;
3830  bool is_delay;
3831  std::string delay_content;
3832 };
3833 
3836 {
3837  std::vector<CorpActionItem> items;
3838 };
3839 
3842 {
3843  std::string company_id;
3844  std::string company_name;
3845  std::string company_name_en;
3846  std::string company_name_zhcn;
3847  std::string symbol;
3848  std::string currency;
3849  std::string percent_of_shares;
3850  std::string shares_rank;
3851  std::string shares_value;
3852 };
3853 
3856 {
3857  std::string forward_url;
3858  std::vector<InvestSecurity> invest_securities;
3859 };
3860 
3863 {
3864  std::string field_name;
3865  std::string indicator_name;
3866  std::string indicator_value;
3867  std::string yoy;
3868 };
3869 
3872 {
3873  std::string id;
3874  std::string report;
3875  std::string title;
3876  std::string txt;
3877  bool latest;
3878  std::string web_url;
3879  std::string financial_currency;
3880  std::string financial_name;
3881  std::string financial_region;
3882  std::string financial_report;
3883  std::vector<OperatingIndicator> indicators;
3884 };
3885 
3888 {
3889  std::vector<OperatingItem> list;
3890 };
3891 
3894 {
3895  std::string list_json;
3896 };
3897 
3900 {
3901  std::string key;
3902  std::string name;
3903  std::string description;
3904  std::string actual;
3905  std::string estimate;
3906  std::string comp_value;
3907  std::string comp_desc;
3908  std::string comp;
3910 };
3911 
3914 {
3915  int32_t fiscal_year;
3916  std::string fiscal_period;
3917  std::string period_text;
3918  std::vector<ConsensusDetail> details;
3919 };
3920 
3923 {
3924  std::vector<ConsensusReport> list;
3925  int32_t current_index;
3926  std::string currency;
3927  std::vector<std::string> opt_periods;
3928  std::string current_period;
3929 };
3930 
3933 {
3934  std::string date;
3935  std::string pe;
3936  std::string pb;
3937  std::string ps;
3938 };
3939 
3942 {
3943  std::string symbol;
3944  std::string name;
3945  std::string currency;
3946  std::string assets;
3947  std::string bps;
3948  std::string eps;
3949  std::string dps;
3950  std::string div_yld;
3951  std::string div_payout_ratio;
3952  std::string five_y_avg_dps;
3953  std::string pe;
3954  std::vector<IndustryValuationHistory> history;
3955 };
3956 
3959 {
3960  std::vector<IndustryValuationItem> list;
3961 };
3962 
3965 {
3966  std::string low;
3967  std::string high;
3968  std::string median;
3969  std::string value;
3970  std::string ranking;
3971  std::string rank_index;
3972  std::string rank_total;
3973 };
3974 
3977 {
3978  std::optional<ValuationDist> pe;
3979  std::optional<ValuationDist> pb;
3980  std::optional<ValuationDist> ps;
3981 };
3982 
3985 {
3986  std::string id;
3987  std::string name;
3988  std::string name_zhcn;
3989  std::string name_en;
3990  std::string title;
3991  std::string biography;
3992  std::string photo;
3993  std::string wiki_url;
3994 };
3995 
3998 {
3999  std::string symbol;
4000  std::string forward_url;
4001  int32_t total;
4002  std::vector<Professional> professionals;
4003 };
4004 
4007 {
4008  std::vector<ExecutiveGroup> professional_list;
4009 };
4010 
4013 {
4014  std::string currency;
4015  std::string net_buyback_ttm;
4017 };
4018 
4021 {
4022  std::string fiscal_year;
4023  std::string fiscal_year_range;
4024  std::string net_buyback;
4025  std::string net_buyback_yield;
4027  std::string currency;
4028 };
4029 
4032 {
4035 };
4036 
4039 {
4040  std::optional<RecentBuybacks> recent_buybacks;
4041  std::vector<BuybackHistoryItem> buyback_history;
4042  std::vector<BuybackRatios> buyback_ratios;
4043 };
4044 
4047 {
4048  std::string name;
4049  std::string value;
4050  std::string value_type;
4051  std::string score;
4052  std::string letter;
4053 };
4054 
4057 {
4058  std::string name;
4059  std::string score;
4060  std::string letter;
4061 };
4062 
4065 {
4067  std::vector<RatingLeafIndicator> sub_indicators;
4068 };
4069 
4072 {
4073  int32_t kind;
4074  std::vector<RatingSubIndicatorGroup> sub_indicators;
4075 };
4076 
4079 {
4080  std::string style_txt_name;
4081  std::string scale_txt_name;
4082  std::string report_period_txt;
4083  std::string multi_score;
4084  std::string multi_letter;
4086  std::string industry_name;
4087  std::string industry_rank;
4088  std::string industry_total;
4089  std::string industry_mean_score;
4091  std::vector<RatingCategory> ratings;
4092 };
4093 
4096 {
4097  std::string name;
4098  std::string percent;
4099 };
4100 
4103 {
4104  std::string date;
4105  std::string total;
4106  std::string currency;
4107  std::vector<BusinessSegmentItem> business;
4108 };
4109 
4112 {
4113  std::string name;
4114  std::string percent;
4115  std::string value;
4116 };
4117 
4120 {
4121  std::string date;
4122  std::string total;
4123  std::string currency;
4124  std::vector<BusinessSegmentHistoryItem> business;
4125  std::vector<BusinessSegmentHistoryItem> regionals;
4126 };
4127 
4130 {
4131  std::vector<BusinessSegmentsHistoricalItem> historical;
4132 };
4133 
4136 {
4137  std::string date;
4138  std::string buy;
4139  std::string over;
4140  std::string hold;
4141  std::string under;
4142  std::string sell;
4143  std::string total;
4144 };
4145 
4148 {
4149  std::vector<InstitutionRatingViewItem> elist;
4150 };
4151 
4154 {
4155  std::string name;
4156  std::string symbol;
4157  std::string chg;
4158  std::string leading_name;
4159  std::string leading_ticker;
4160  std::string leading_chg;
4161  std::string value_name;
4162  std::string value_data;
4163 };
4164 
4167 {
4168  std::vector<IndustryRankItem> lists;
4169 };
4170 
4173 {
4174  std::vector<IndustryRankGroup> items;
4175 };
4176 
4179 {
4180  std::string name;
4181  std::string market;
4182 };
4183 
4188 {
4189  std::string name;
4190  std::string symbol;
4191  int32_t stock_num;
4192  std::string chg;
4193  std::string ytd_chg;
4194  std::string next_json;
4195 };
4196 
4199 {
4200  std::optional<IndustryPeersTop> top;
4201  std::optional<IndustryPeerNode> chain;
4202 };
4203 
4206 {
4207  std::string value;
4208  std::string yoy;
4209  std::string cmp_desc;
4210  std::string est_value;
4211 };
4212 
4215 {
4216  std::string value;
4217  std::string yoy;
4218 };
4219 
4222 {
4223  std::string name;
4224  std::string ticker;
4225  std::string fp_start;
4226  std::string fp_end;
4227  std::string currency;
4228  std::string report_desc;
4229  std::optional<SnapshotForecastMetric> fo_revenue;
4230  std::optional<SnapshotForecastMetric> fo_ebit;
4231  std::optional<SnapshotForecastMetric> fo_eps;
4232  std::optional<SnapshotReportedMetric> fr_revenue;
4233  std::optional<SnapshotReportedMetric> fr_profit;
4234  std::optional<SnapshotReportedMetric> fr_operate_cash;
4235  std::optional<SnapshotReportedMetric> fr_invest_cash;
4236  std::optional<SnapshotReportedMetric> fr_finance_cash;
4237  std::optional<SnapshotReportedMetric> fr_total_assets;
4238  std::optional<SnapshotReportedMetric> fr_total_liability;
4239  std::string fr_roe_ttm;
4240  std::string fr_profit_margin;
4242  std::string fr_asset_turn_ttm;
4243  std::string fr_leverage_ttm;
4245 };
4246 
4249 {
4250  std::string date;
4251  std::string pe;
4252  std::string pb;
4253  std::string ps;
4254 };
4255 
4258 {
4259  std::string symbol;
4260  std::string name;
4261  std::string currency;
4262  std::string market_value;
4263  std::string price_close;
4264  std::string pe;
4265  std::string pb;
4266  std::string ps;
4267  std::string roe;
4268  std::string eps;
4269  std::string bps;
4270  std::string dps;
4271  std::string div_yld;
4272  std::string assets;
4273  std::vector<ValuationHistoryPoint> history;
4274 };
4275 
4278 {
4279  std::vector<ValuationComparisonItem> list;
4280 };
4281 
4283 enum class ElementType
4284 {
4286  Unknown,
4288  Holdings,
4290  Regional,
4292  AssetClass,
4294  Industry,
4295 };
4296 
4299 {
4301  std::string industry_id;
4303  std::string industry_name;
4305  std::string index;
4307  std::string index_name;
4309  std::string holding_type;
4311  std::string holding_type_name;
4312 };
4313 
4316 {
4318  std::string name;
4320  std::string code;
4322  std::string position_ratio;
4324  std::string symbol;
4326  std::map<std::string, std::string> name_locales;
4328  std::optional<HoldingDetail> holding_detail;
4329 };
4330 
4333 {
4335  std::string report_date;
4339  std::vector<AssetAllocationItem> lists;
4340 };
4341 
4344 {
4346  std::vector<AssetAllocationGroup> info;
4347 };
4348 
4349 } // namespace fundamental
4350 
4351 namespace alert {
4352 
4357 {
4359  std::string price;
4361  std::optional<double> chg;
4362 };
4363 
4365 {
4367  std::string id;
4369  std::string indicator_id;
4371  bool enabled;
4373  int32_t frequency;
4375  int32_t scope;
4377  std::string text;
4379  std::vector<int32_t> state;
4382 };
4383 
4386 {
4388  std::string symbol;
4390  std::string code;
4392  std::string market;
4394  std::string name;
4396  std::string price;
4398  std::string chg;
4400  std::string p_chg;
4402  std::string product;
4404  std::vector<AlertItem> indicators;
4405 };
4406 
4409 {
4411  std::vector<AlertSymbolGroup> lists;
4412 };
4413 
4414 } // namespace alert
4415 
4416 namespace dca {
4417 
4419 enum class DCAFrequency
4420 {
4421  Daily = 0,
4422  Weekly = 1,
4423  Fortnightly = 2,
4424  Monthly = 3,
4425 };
4426 
4428 enum class DCAStatus
4429 {
4430  Active = 0,
4431  Suspended = 1,
4432  Finished = 2,
4433 };
4434 
4436 struct DcaPlan
4437 {
4439  std::string plan_id;
4443  std::string symbol;
4445  std::string member_id;
4447  std::string aaid;
4449  std::string account_channel;
4451  std::string display_account;
4455  std::string per_invest_amount;
4459  std::string invest_day_of_week;
4461  std::string invest_day_of_month;
4465  std::string alter_hours;
4467  std::string created_at;
4469  std::string updated_at;
4471  std::string next_trd_date;
4473  std::string stock_name;
4475  std::string cum_amount;
4477  int64_t issue_number;
4479  std::string average_cost;
4481  std::string cum_profit;
4482 };
4483 
4485 struct DcaList
4486 {
4488  std::vector<DcaPlan> plans;
4489 };
4490 
4492 struct DcaStats
4493 {
4495  std::string active_count;
4497  std::string finished_count;
4499  std::string suspended_count;
4501  std::vector<DcaPlan> nearest_plans;
4503  std::string rest_days;
4505  std::string total_amount;
4507  std::string total_profit;
4508 };
4509 
4512 {
4514  std::string symbol;
4517 };
4518 
4521 {
4523  std::vector<DcaSupportInfo> infos;
4524 };
4525 
4528 {
4530  std::string trade_date;
4531 };
4532 
4535 {
4537  std::string plan_id;
4538 };
4539 
4542 {
4543  std::string created_at;
4544  std::string order_id;
4545  std::string status;
4546  std::string action;
4547  std::string order_type;
4548  std::string executed_qty;
4549  std::string executed_price;
4550  std::string executed_amount;
4551  std::string rejected_reason;
4552  std::string symbol;
4553 };
4554 
4557 {
4558  std::vector<DcaHistoryRecord> records;
4559  bool has_more;
4560 };
4561 
4562 } // namespace dca
4563 
4564 namespace sharelist {
4565 
4568 {
4570  std::string symbol;
4572  std::string name;
4574  std::string market;
4576  std::string code;
4578  std::string intro;
4582  std::optional<std::string> change;
4584  std::optional<std::string> last_done;
4586  std::optional<int32_t> trade_status;
4587 };
4588 
4591 {
4595  bool is_self;
4596 };
4597 
4600 {
4602  int64_t id;
4604  std::string name;
4606  std::string description;
4608  std::string cover;
4612  int64_t created_at;
4614  int64_t edited_at;
4616  std::string this_year_chg;
4618  std::string creator;
4620  std::vector<SharelistStock> stocks;
4624  std::string chg;
4628  std::string industry_code;
4629 };
4630 
4633 {
4635  std::vector<SharelistInfo> sharelists;
4637  std::vector<SharelistInfo> subscribed_sharelists;
4639  std::string tail_mark;
4640 };
4641 
4644 {
4649 };
4650 
4651 } // namespace sharelist
4652 
4653 namespace agent {
4654 
4657 {
4659  std::string id;
4661  std::string name;
4663  int64_t created_at;
4665  int64_t updated_at;
4666 };
4667 
4670 {
4672  std::vector<Workspace> workspaces;
4673 };
4674 
4676 struct Agent
4677 {
4679  std::string uid;
4681  std::string name;
4683  std::string description;
4685  std::string mode;
4687  std::string icon;
4691  int64_t published_at;
4693  int64_t created_at;
4695  int64_t updated_at;
4696 };
4697 
4700 {
4702  std::vector<Agent> agents;
4704  int32_t total;
4705 };
4706 
4709 {
4711  std::optional<int32_t> page;
4713  std::optional<int32_t> limit;
4715  std::optional<std::string> name;
4716 };
4717 
4720 {
4722  int32_t index;
4726  std::string ref_type;
4728  std::string id;
4730  std::string title;
4732  std::string url;
4734  std::string content_json;
4735 };
4736 
4739 {
4741  std::string label;
4743  std::string description;
4744 };
4745 
4747 struct Question
4748 {
4750  std::string question;
4752  std::vector<QuestionOption> options;
4755 };
4756 
4759 {
4761  std::string tool_call_id;
4763  std::string interrupt_id;
4765  std::string interaction_type;
4767  std::string tool_name;
4769  std::vector<Question> questions;
4771  std::string tool_args_json;
4772 };
4773 
4777 {
4779  std::string node_id;
4781  std::string tool_call_id;
4783  std::vector<Question> questions;
4785  std::vector<HumanInteraction> interactions;
4787  int64_t message_id;
4789  int64_t chat_id;
4790 };
4791 
4794 {
4796  int32_t code;
4798  std::string message;
4799 };
4800 
4803 {
4805  Succeeded,
4807  Interrupted,
4809  Failed,
4811  Stopped,
4812 };
4813 
4817 {
4820  std::string chat_uid;
4822  std::string message_id;
4826  std::string answer;
4828  std::vector<Reference> references;
4830  std::vector<std::string> further_questions;
4834  std::optional<Interrupt> interrupt;
4836  std::optional<AgentError> error;
4837 };
4838 
4841 {
4843  std::string chat_uid;
4845  int64_t chat_id;
4847  std::string message_id;
4849  std::string error;
4851  std::string error_message;
4852 };
4853 
4858 {
4860  std::string text;
4863  std::string message_type;
4867  std::string key;
4869  int64_t started_at;
4871  std::string stage;
4874  std::string stage_title;
4880  std::string outputs_json;
4881 };
4882 
4885 {
4887  int64_t chat_id;
4889  std::string chat_uid;
4891  std::string message_id;
4893  std::string query;
4894 };
4895 
4899 {
4905  int64_t started_at;
4907  int64_t workflow_id;
4908 };
4909 
4915 {
4917  int64_t started_at;
4918 };
4919 
4924 {
4926  int64_t finished_at;
4928  int32_t elapsed_time;
4929 };
4930 
4935 {
4937  std::string tool_use_id;
4939  std::string tool_name;
4942  std::string tool_func_name;
4944  std::string tool_args;
4947  std::string tips;
4949  std::vector<std::string> tip_chips;
4952  int32_t iteration;
4954  int64_t started_at;
4955 };
4956 
4960 {
4962  std::vector<Reference> references;
4964  std::vector<std::string> reference_domains;
4966  std::string query;
4968  std::string text;
4970  std::string tool_args_json;
4973  std::string data_json;
4974 };
4975 
4979 {
4981  std::string tool_use_id;
4983  std::string status;
4985  std::string error;
4989  int64_t started_at;
4991  std::string tool_name;
4993  std::string tool_func_name;
4995  std::string tool_args;
4997  std::string tool_type;
4999  std::string tips;
5001  std::vector<std::string> tip_chips;
5003  int32_t iteration;
5008 };
5009 
5014 {
5016  std::string node_id;
5018  std::string tool_use_id;
5020  int64_t started_at;
5022  std::string goal;
5024  std::string prompt;
5026  std::string subagent_id;
5029  std::string tools_json;
5030 };
5031 
5036 {
5038  std::string node_id;
5040  std::string parent_tool_call_id;
5042  std::string subagent_tool_name;
5044  std::string subagent_tool_args;
5046  std::string subagent_status;
5052  int64_t started_at;
5053 };
5054 
5057 {
5059  std::string goal;
5061  std::string result;
5064  std::string subagent_tools_json;
5065 };
5066 
5069 {
5071  std::string node_id;
5073  std::string tool_use_id;
5075  std::string status;
5077  int64_t started_at;
5081  std::string error;
5084 };
5085 
5090 {
5092  std::string node_id;
5094  std::string tool_use_id;
5096  std::string agent_tool_name;
5098  std::string title;
5100  int64_t started_at;
5102  std::string tool_args;
5104  std::string tool_name;
5106  std::string tips;
5108  std::vector<std::string> tip_chips;
5111 };
5112 
5116 {
5118  std::string node_id;
5120  std::string parent_tool_call_id;
5122  std::string agent_tool_name;
5124  std::string inner_tool_name;
5126  std::string inner_tool_args;
5128  std::string status;
5130  int64_t duration_ms;
5132  int64_t started_at;
5135 };
5136 
5139 {
5141  std::string node_id;
5143  std::string tool_use_id;
5145  std::string agent_tool_name;
5147  std::string status;
5149  int64_t started_at;
5153  std::string error;
5155  std::string tool_args;
5157  std::string outputs_json;
5159  std::string tool_type;
5161  std::string tips;
5163  std::vector<std::string> tip_chips;
5166 };
5167 
5172 {
5174  std::string raw_query;
5176  std::string masked_query;
5177 };
5178 
5182 {
5184  std::string node_id;
5186  int64_t started_at;
5188  std::string outputs_json;
5190  std::string tool_name;
5191 };
5192 
5198 {
5200  std::string started_at;
5202  std::string inputs_json;
5203 };
5204 
5208 {
5210  std::string created_at;
5212  std::string inputs_json;
5214  std::string outputs_json;
5215 };
5216 
5221 {
5223  int64_t chat_id;
5225  std::string chat_uid;
5227  std::string message_id;
5229  std::string error;
5231  std::string error_message;
5232 };
5233 
5239 {
5241  int64_t chat_id;
5243  std::string chat_uid;
5245  std::string source;
5247  std::string title;
5249  int64_t updated_at;
5250 };
5251 
5255 {
5257  ChatStarted,
5262  Message,
5266  Ping,
5303  QueryMasked,
5306  PlanChanged,
5315  ChatFinished,
5325  Other,
5326 };
5327 
5338 {
5342  std::optional<ChatStartedPayload> chat_started;
5345  std::optional<WorkflowStartedPayload> workflow_started;
5347  std::optional<MessagePayload> message;
5350  std::optional<ThinkingStartedPayload> thinking_started;
5353  std::optional<ThinkingFinishedPayload> thinking_finished;
5356  std::optional<NodeToolUseStartedPayload> node_tool_use_started;
5359  std::optional<NodeToolUseFinishedPayload> node_tool_use_finished;
5362  std::optional<SubagentStartedPayload> subagent_started;
5365  std::optional<SubagentProgressPayload> subagent_progress;
5368  std::optional<SubagentFinishedPayload> subagent_finished;
5371  std::optional<AgentToolStartedPayload> agent_tool_started;
5374  std::optional<AgentToolProgressPayload> agent_tool_progress;
5377  std::optional<AgentToolFinishedPayload> agent_tool_finished;
5382  std::optional<ConversationResponse> human_interaction_required;
5385  std::optional<QueryMaskedPayload> query_masked;
5388  std::optional<PlanChangedPayload> plan_changed;
5391  std::optional<ContextCompressStartedPayload> context_compress_started;
5394  std::optional<ContextCompressFinishedPayload> context_compress_finished;
5397  std::optional<ChatFinishedPayload> chat_finished;
5403  std::optional<ConversationResponse> workflow_finished;
5406  std::optional<ChatTitleUpdatedPayload> chat_title_updated;
5409  std::optional<std::string> other_event;
5412  std::optional<std::string> other_json;
5413 };
5414 
5415 } // namespace agent
5416 
5417 namespace fund {
5418 
5419 // ── Request options ──────────────────────────────────────────────────────────
5420 
5423 {
5425  std::optional<std::string> filter;
5427  std::vector<int64_t> quick_ids;
5429  std::vector<std::string> time_interval;
5430 };
5431 
5434 {
5436  std::optional<int32_t> period;
5437 };
5438 
5441 {
5443  std::optional<int32_t> page;
5445  std::optional<int32_t> size;
5446 };
5447 
5450 {
5452  std::optional<int32_t> month_before;
5454  std::optional<int32_t> year_before;
5455 };
5456 
5459 {
5461  std::optional<int32_t> scene;
5462 };
5463 
5466 {
5468  std::optional<int32_t> limit;
5469 };
5470 
5473 {
5475  std::optional<std::string> account_channel;
5477  std::optional<int64_t> aaid;
5478 };
5479 
5482 {
5484  std::optional<std::string> account_channel;
5486  std::optional<int64_t> aaid;
5488  std::optional<std::string> start;
5490  std::optional<std::string> end;
5491 };
5492 
5495 {
5497  std::optional<std::string> account_channel;
5499  std::optional<int64_t> aaid;
5501  std::optional<std::string> start;
5503  std::optional<std::string> end;
5505  std::optional<int32_t> page;
5507  std::optional<int32_t> size;
5508 };
5509 
5512 {
5514  std::optional<std::string> account_channel;
5516  std::optional<int64_t> aaid;
5518  std::optional<std::string> currency;
5520  std::optional<int64_t> start;
5522  std::optional<int64_t> end;
5524  std::optional<int32_t> page;
5526  std::optional<int32_t> size;
5527 };
5528 
5531 {
5533  std::vector<std::string> counter_ids;
5535  std::optional<std::string> actions;
5537  std::optional<std::string> states;
5539  std::optional<std::string> currency;
5541  std::optional<int64_t> start;
5543  std::optional<int64_t> end;
5545  std::optional<int32_t> page;
5547  std::optional<int32_t> size;
5548 };
5549 
5552 {
5554  std::optional<std::string> account_channel;
5556  std::optional<std::string> business_type;
5558  std::optional<std::string> category;
5560  std::optional<std::string> currencies;
5562  std::optional<int64_t> start;
5564  std::optional<int64_t> end;
5566  std::optional<int32_t> page;
5568  std::optional<int32_t> size;
5569 };
5570 
5573 {
5575  std::string counter_id;
5577  std::string action;
5579  std::string currency;
5581  std::optional<std::string> amount;
5583  std::optional<std::string> units;
5585  std::optional<int32_t> dividend_option;
5587  std::optional<int32_t> fund_source;
5589  std::optional<std::string> account_channel;
5590 };
5591 
5594 {
5596  std::string counter_id;
5598  std::string action;
5600  std::string currency;
5602  std::optional<std::string> amount;
5604  std::optional<std::string> units;
5606  std::optional<int32_t> dividend_option;
5608  std::optional<std::string> fee;
5610  std::optional<bool> is_sell_all;
5612  std::optional<std::string> remark;
5614  std::optional<int32_t> trade_method;
5615 };
5616 
5617 // ── Response types ───────────────────────────────────────────────────────────
5618 
5621 {
5623  std::string change;
5625  std::string change_percent;
5629  std::string counter_id;
5631  std::string counter_name;
5633  std::string currency;
5635  std::string date_format;
5637  std::string isin;
5641  std::string value;
5643  std::string value_format;
5644 };
5645 
5648 {
5650  std::string date;
5652  std::string last_done;
5653 };
5654 
5656 struct HotFund
5657 {
5659  int32_t asset_class;
5661  std::string asset_class_name;
5663  std::string counter_id;
5665  std::string currency;
5667  std::string earning_rate;
5669  std::vector<FundPerformancePoint> fund_performances;
5671  std::string name;
5673  std::string purchase_amount;
5675  std::string recommendation_text;
5677  int32_t risk_level;
5679  std::string risk_level_name;
5681  std::string time_interval;
5682 };
5683 
5686 {
5688  int32_t asset_class;
5690  std::string asset_class_name;
5692  std::string code;
5694  std::string counter_id;
5696  std::string currency;
5698  std::string description;
5700  std::string earning_rate;
5702  bool holding;
5704  std::string isin;
5706  std::string name;
5708  std::string product;
5710  std::string purchase_amount;
5712  std::string recommendation_text;
5714  int32_t risk_level;
5716  std::string risk_level_name;
5718  std::string time_interval;
5720  std::string unit_value;
5721 };
5722 
5725 {
5727  std::vector<std::string> asset_class;
5729  std::vector<std::string> company;
5731  std::vector<std::string> currency;
5733  std::vector<std::string> industry_category_name;
5735  std::vector<std::string> risk_level;
5736 };
5737 
5740 {
5742  std::string code;
5744  std::string counter_id;
5746  std::string name;
5748  std::string position_ratio;
5749 };
5750 
5753 {
5755  int32_t asset_type;
5757  std::vector<FundAssetAllocationItem> lists;
5759  std::string report_date;
5760 };
5761 
5764 {
5768  int32_t affirm_day;
5770  std::string amount_affirm_day;
5772  std::optional<FundAssetAllocation> asset_allocation;
5774  int32_t asset_class;
5776  std::string asset_class_name;
5778  std::string bill_purchase_rate;
5780  std::string channel;
5782  std::string close_period;
5784  std::string code;
5786  std::string currency;
5788  std::string cut_off_time;
5792  int32_t done_day;
5794  std::string excess_return_fee;
5796  std::string gst_rate;
5798  std::string introduce;
5808  std::string isin;
5810  std::string manage_rate;
5812  std::string manager;
5814  std::string min_hold_cash;
5816  std::string min_hold_share;
5818  std::string min_sell_share;
5820  std::string month_raise_day;
5822  std::string name;
5824  std::string nav_deadline;
5826  bool no_load;
5828  std::string open_date;
5830  std::string open_period;
5832  std::string product;
5836  std::string profile;
5838  int32_t purchasable;
5840  std::string purchase_affirm_day;
5842  std::string purchase_amount;
5844  std::string purchase_rate;
5846  int32_t rating;
5848  int32_t redeemable;
5852  std::string redemption_amount;
5856  std::string redemption_done_day;
5860  int32_t risk_level;
5862  std::string risk_level_name;
5864  int32_t verify_status;
5868  std::string year_to_date_yield;
5871 };
5872 
5875 {
5877  int32_t actual_period;
5879  std::string cost_level;
5881  std::string return_ability;
5883  std::string risk_ability;
5885  std::string updated_at;
5887  std::string value_for_money;
5889  bool visible;
5890 };
5891 
5894 {
5896  int32_t actual_period;
5898  std::vector<int32_t> available_periods;
5900  std::string cost_level;
5902  std::string return_ability;
5904  std::string risk_ability;
5906  std::string updated_at;
5908  std::string value_for_money;
5910  bool visible;
5911 };
5912 
5915 {
5917  std::string benchmark_name;
5919  std::vector<std::string> performances;
5920 };
5921 
5924 {
5926  int32_t actual_period;
5928  std::vector<int32_t> available_periods;
5930  std::vector<std::string> category_average_performances;
5932  std::optional<FundTrendContrast> contrast_performances;
5934  std::vector<std::string> fund_performances;
5935 };
5936 
5939 {
5941  std::string name;
5943  std::vector<std::string> performances;
5944 };
5945 
5948 {
5950  std::vector<FundNamedContrast> contrast_performances;
5952  std::vector<std::string> fund_performances;
5953 };
5954 
5957 {
5959  std::string change_percent;
5961  int32_t year;
5962 };
5963 
5966 {
5968  std::string change_percent;
5970  int32_t quarter;
5972  int32_t year;
5973 };
5974 
5977 {
5989  std::string counter_id;
5991  std::string fund_name;
6061  std::string ten_thousand_price;
6063  int64_t update_time;
6064 };
6065 
6068 {
6070  std::string bond_type;
6072  std::string bond_type_name;
6074  std::string country_name;
6076  std::string holding_type;
6078  std::string industry_name;
6080  std::string market_value;
6082  std::string maturity_date;
6084  std::string name;
6086  std::string share_change;
6090  std::string shares;
6092  std::string weighting;
6093 };
6094 
6097 {
6099  std::vector<FundHolding> holdings;
6101  std::string report_date;
6103  std::string weighting;
6104 };
6105 
6108 {
6110  std::string code;
6112  std::string counter_id;
6114  std::string currency;
6116  std::string name;
6118  std::string position_ratio;
6120  std::string report_date;
6121 };
6122 
6125 {
6127  std::string amount;
6129  std::string counter_id;
6131  std::string currency;
6133  std::string freeze_units;
6135  std::string holding_profit;
6137  std::string holding_units;
6139  std::string name;
6141  std::string recent_profit;
6145  std::string sum_recent_profit;
6146 };
6147 
6150 {
6152  std::string account_channel;
6154  std::vector<FundPosition> list;
6156  std::string pending_buy_orders;
6161 };
6162 
6165 {
6167  int64_t date;
6169  std::string value;
6170 };
6171 
6174 {
6176  int64_t date;
6178  std::string day_increase_rate;
6180  std::string total_value;
6182  std::string unit_value;
6183 };
6184 
6187 {
6189  std::string amount;
6191  std::string currency;
6193  std::string holding_cost;
6195  std::string holding_profit;
6197  std::string holding_profit_rate;
6199  std::string holding_units;
6201  std::string holding_value;
6203  std::string pending_buy_value;
6205  std::string pending_sell_value;
6211  std::string recent_profit;
6215  std::string recent_unit_value;
6218 };
6219 
6222 {
6224  std::optional<FundPositionDetailValues> detail_values;
6226  std::vector<FundDatedValue> sum_profit;
6228  std::vector<FundUnitValue> ut_value;
6229 };
6230 
6233 {
6245  std::string counter_id;
6247  std::string fund_name;
6271  int64_t update_time;
6272 };
6273 
6276 {
6278  std::string currency;
6280  std::vector<FundDatedValue> history_value;
6284  std::string sum_profit;
6285 };
6286 
6289 {
6291  std::string change;
6293  std::string change_percent;
6295  std::string counter_id;
6297  std::string counter_name;
6301  std::string value;
6302 };
6303 
6306 {
6308  std::string amount;
6310  std::string counter_id;
6312  std::string currency;
6314  int64_t date;
6316  std::string div_method;
6318  std::string name;
6319 };
6320 
6323 {
6325  std::string currency;
6327  std::vector<FundDividend> div_cash_infos;
6329  int64_t lastest_date;
6331  std::string total_div_cash;
6332 };
6333 
6336 {
6338  std::string action;
6340  std::string amount;
6342  std::string counter_id;
6344  int64_t created_at;
6346  std::string currency;
6348  std::string fund_name;
6350  int64_t id;
6352  bool is_auto;
6354  std::string net_worth;
6356  std::string product_type;
6358  std::string state;
6360  std::string state_desc;
6362  std::string units;
6363 };
6364 
6367 {
6369  std::string content;
6371  std::string group;
6373  std::string key;
6375  std::string line_strategy;
6377  std::string title;
6378 };
6379 
6382 {
6384  std::string desc;
6386  std::string key;
6388  std::string link;
6390  std::string link_text;
6392  std::string progress;
6394  std::string stage;
6395 };
6396 
6399 {
6401  int64_t aaid;
6403  std::string account_channel;
6405  std::string action;
6407  std::string amount;
6409  std::string channel;
6411  std::string counter_id;
6413  int64_t created_at;
6415  std::string currency;
6417  std::string dividend_option;
6419  int64_t eq_at;
6421  std::string fee;
6423  std::string fund_name;
6425  std::string fund_source;
6427  std::string histories;
6429  int64_t id;
6431  std::string message;
6433  std::string net_worth;
6435  int64_t price_at;
6437  int64_t processed_at;
6439  std::string product_type;
6443  std::string sale_proceeds;
6445  std::string sales_charge;
6447  std::string sales_price;
6449  std::string sales_unit;
6451  std::string state;
6453  std::string state_desc;
6455  int32_t status;
6457  int32_t status_ex;
6459  std::string t_description;
6461  std::string time_partition;
6463  std::string total_amount;
6467  std::string units;
6469  int64_t withdraw_at;
6472 };
6473 
6476 {
6478  std::vector<FundOrderKeyword> keywords;
6480  std::optional<FundOrderInfo> order;
6482  std::vector<FundOrderStage> stages;
6483 };
6484 
6487 {
6489  std::string amount;
6491  std::string category;
6493  int64_t created_at;
6495  std::string currency;
6497  std::string description;
6501  std::string detail_type;
6503  int64_t done_at;
6507  std::string redirect_page;
6509  std::string redirect_page_v2;
6511  std::string ref_no;
6513  std::string stock_quantity;
6515  std::string tx_type;
6517  std::string type_name;
6518 };
6519 
6522 {
6524  std::string auth_token;
6526  std::string eval_address;
6530  std::string msg;
6532  int32_t user_pi;
6535 };
6536 
6539 {
6541  std::string action;
6543  std::string amount;
6545  std::string counter_id;
6547  int64_t created_at;
6549  std::string fund_name;
6551  int64_t id;
6553  std::string msg;
6555  int32_t status;
6557  std::string units;
6558 };
6559 
6560 } // namespace fund
6561 
6562 } // namespace longbridge
Definition: decimal.hpp:13
Subscription flags.
Definition: types.hpp:84
static SubFlags QUOTE()
bool operator==(const SubFlags &other) const
Definition: types.hpp:115
static SubFlags BROKER()
static SubFlags DEPTH()
SubFlags(uint8_t value)
Definition: types.hpp:89
SubFlags & operator|=(const SubFlags &other)
Definition: types.hpp:98
SubFlags operator&(const SubFlags &other) const
Definition: types.hpp:104
static SubFlags TRADE()
bool contains(const SubFlags &other) const
Definition: types.hpp:120
SubFlags operator|(const SubFlags &other) const
Definition: types.hpp:93
SubFlags & operator&=(const SubFlags &other)
Definition: types.hpp:109
ConversationStatus
Final run status of a conversation.
Definition: types.hpp:4803
@ Interrupted
The run is paused, waiting for AgentContext::continue_conversation.
@ Succeeded
The run completed successfully.
ConversationStreamEventKind
Definition: types.hpp:5255
@ 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:4429
DCAFrequency
DCA investment frequency.
Definition: types.hpp:4420
InstitutionRecommend
Institutional analyst recommendation.
Definition: types.hpp:3555
ElementType
ETF asset allocation element type.
Definition: types.hpp:4284
TriggerPriceType
How grid trigger thresholds are interpreted (wire: int32_t).
Definition: types.hpp:2537
@ Spread
Trigger by absolute price spread.
GridTimeInForce
Definition: types.hpp:2549
@ GoodTilCanceled
Good-til-canceled.
GridLimitEvent
Action taken when a grid boundary is reached (wire: int32_t).
Definition: types.hpp:2560
@ CloseAtLast
Close the position at the last price.
@ Ignore
Ignore — keep the grid running.
WarrantSortBy
Warrant sort by.
Definition: types.hpp:1102
@ 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:1266
SecuritiesUpdateMode
Securities update mode.
Definition: types.hpp:857
OptionDirection
Option direction.
Definition: types.hpp:478
Period
Candlestick period.
Definition: types.hpp:142
@ Min45
Forty-Five Minutes.
@ Min20
Twenty Minutes.
@ Min15
Fifteen Minutes.
@ Min30
Thirty Minutes.
TradeSession
Trade session.
Definition: types.hpp:196
SecurityBoard
Security board.
Definition: types.hpp:281
@ 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:1164
TradeStatus
Trade status.
Definition: types.hpp:390
@ SplitStockHalts
Split Stock Halts.
@ WarrantPrepareList
Warrant To BeListed.
AdjustType
Adjust type.
Definition: types.hpp:728
OptionStandardAttr
Definition: types.hpp:503
@ Normal
A normal, active contract.
@ Old
A legacy contract produced by a corporate action.
TradeDirection
Trade direction.
Definition: types.hpp:558
WarrantType
Warrant type.
Definition: types.hpp:623
Granularity
Data granularity.
Definition: types.hpp:1290
@ Unknown
Unknown.
Definition: types.hpp:1292
@ Monthly
Monthly.
Definition: types.hpp:1298
@ Weekly
Weekly.
Definition: types.hpp:1296
@ Daily
Daily.
Definition: types.hpp:1294
SecurityListCategory
Security list category.
Definition: types.hpp:1244
WarrantStatus
Warrant status.
Definition: types.hpp:1173
CalcIndex
Calc index.
Definition: types.hpp:913
@ 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.
OptionExpiryCycleType
Special expiration cycle of an option contract.
Definition: types.hpp:489
@ Quarterly
Quarterly option, expires quarterly.
SortOrderType
Sort order type.
Definition: types.hpp:1093
OptionType
Option type.
Definition: types.hpp:467
FilterWarrantExpiryDate
Filter warrant expiry date type.
Definition: types.hpp:1151
ContractDirection
Option contract type.
Definition: types.hpp:1747
OrderTag
Order tag.
Definition: types.hpp:1570
@ LongTerm
Long term Order.
CashFlowDirection
Cash flow direction.
Definition: types.hpp:2135
OutsideRTH
Enable or disable outside regular trading hours.
Definition: types.hpp:1609
@ RTHOnly
Regular trading hour only.
@ OptionPreMarket
Overnight option.
TriggerStatus
Trigger status.
Definition: types.hpp:1596
TopicType
Topic type.
Definition: types.hpp:1418
@ Private
Private notification for trade.
BalanceType
Balance type.
Definition: types.hpp:2146
DeductionStatus
Deduction status.
Definition: types.hpp:2305
AttachedOrderType
Attached order type.
Definition: types.hpp:1624
OrderSide
Order side.
Definition: types.hpp:1425
CommissionFreeStatus
Commission-free Status.
Definition: types.hpp:2295
ChargeCategoryCode
Charge category code.
Definition: types.hpp:2315
OrderStatus
Order status.
Definition: types.hpp:1494
@ 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)
@ DelayedNotReported
Monitoring (Time-Conditional Order)
@ ProtectedNotReported
Not reported (Protected Order)
OrderType
Order type.
Definition: types.hpp:1537
@ 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)
MultiLegPosition
Multi-leg position direction.
Definition: types.hpp:1736
MultiLegStrategy
Multi-leg strategy.
Definition: types.hpp:1711
@ CoveredPut
Covered put (covered stock)
@ VerticalCallSpread
Vertical call spread.
@ CalendarCallSpread
Calendar call spread.
@ CalendarPutSpread
Calendar put spread.
@ VerticalPutSpread
Vertical put spread.
@ CoveredCall
Covered call (covered stock)
TimeInForceType
Time in force Type.
Definition: types.hpp:1583
@ GoodTilDate
Good Til Date Order.
@ GoodTilCanceled
Good Til Canceled Order.
Definition: agent_context.hpp:13
QuoteTransport
Transport used by the quote pull APIs.
Definition: types.hpp:52
@ WebSocket
Send pull requests over the quote WebSocket connection (default)
PushCandlestickMode
Push candlestick mode.
Definition: types.hpp:43
Market
Market.
Definition: types.hpp:63
@ 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:4794
int32_t code
Error code.
Definition: types.hpp:4796
std::string message
Error message.
Definition: types.hpp:4798
An Agent in a Workspace.
Definition: types.hpp:4677
int64_t created_at
Creation time, Unix timestamp in seconds.
Definition: types.hpp:4693
int64_t published_at
Publish time, Unix timestamp in seconds; 0 if unpublished.
Definition: types.hpp:4691
bool is_published
Whether published; only published Agents can start conversations.
Definition: types.hpp:4689
std::string mode
Agent mode, e.g. "chat".
Definition: types.hpp:4685
std::string icon
Icon URL.
Definition: types.hpp:4687
int64_t updated_at
Last updated time, Unix timestamp in seconds.
Definition: types.hpp:4695
std::string description
Agent description.
Definition: types.hpp:4683
std::string uid
Agent UID, used as the path parameter of AgentContext::conversation.
Definition: types.hpp:4679
std::string name
Agent name.
Definition: types.hpp:4681
Payload of an AgentToolFinished conversation stream event.
Definition: types.hpp:5139
std::string node_id
ID of the calling node.
Definition: types.hpp:5141
std::string tips
Progress text; may be empty.
Definition: types.hpp:5161
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5149
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:5163
std::string tool_use_id
Matches the tool_use_id of AgentToolStarted.
Definition: types.hpp:5143
std::string error
Error description on failure.
Definition: types.hpp:5153
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:5145
std::string outputs_json
Result of the delegated Agent, as a JSON string; empty when absent.
Definition: types.hpp:5157
std::string status
succeeded / failed
Definition: types.hpp:5147
std::string tool_type
Tool category.
Definition: types.hpp:5159
bool is_thinking
true if during the thinking phase
Definition: types.hpp:5165
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:5155
double elapsed_time
Total duration in seconds.
Definition: types.hpp:5151
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5132
bool is_thinking
true if during the thinking phase
Definition: types.hpp:5134
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:5122
std::string node_id
ID of the calling node.
Definition: types.hpp:5118
int64_t duration_ms
Duration of the inner call in milliseconds.
Definition: types.hpp:5130
std::string inner_tool_args
Arguments of that inner call, as a JSON string.
Definition: types.hpp:5126
std::string inner_tool_name
Name of the inner tool the delegated Agent called.
Definition: types.hpp:5124
std::string status
Status of the inner call: running / succeeded / failed.
Definition: types.hpp:5128
std::string parent_tool_call_id
tool_use_id of the owning AgentToolStarted event
Definition: types.hpp:5120
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:5102
std::string agent_tool_name
Identifier of the Agent being called.
Definition: types.hpp:5096
std::string node_id
ID of the calling node.
Definition: types.hpp:5092
std::string tool_use_id
Unique ID of this call; matches the finished event.
Definition: types.hpp:5094
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5100
bool is_thinking
true if called during the thinking phase
Definition: types.hpp:5110
std::string title
Display title; may be empty.
Definition: types.hpp:5098
std::string tips
Progress text; may be empty.
Definition: types.hpp:5106
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:5108
std::string tool_name
Localized display name.
Definition: types.hpp:5104
Response for AgentContext::agents.
Definition: types.hpp:4700
int32_t total
Total number of matching Agents.
Definition: types.hpp:4704
std::vector< Agent > agents
Agent list.
Definition: types.hpp:4702
Definition: types.hpp:5221
std::string error
Empty string in every run observed so far.
Definition: types.hpp:5229
std::string chat_uid
Conversation identifier.
Definition: types.hpp:5225
std::string error_message
Empty string in every run observed so far.
Definition: types.hpp:5231
std::string message_id
Message ID of this round.
Definition: types.hpp:5227
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:5223
Payload of a ChatStarted conversation stream event.
Definition: types.hpp:4841
std::string chat_uid
Conversation identifier.
Definition: types.hpp:4843
std::string error_message
Error message; empty when absent.
Definition: types.hpp:4851
std::string message_id
Message ID of this round.
Definition: types.hpp:4847
int64_t chat_id
Numeric conversation identifier.
Definition: types.hpp:4845
std::string error
Error code; empty when absent.
Definition: types.hpp:4849
std::string title
The new (possibly truncated) title.
Definition: types.hpp:5247
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:5241
std::string source
Where the title came from, e.g. "ai_generated".
Definition: types.hpp:5245
std::string chat_uid
Conversation identifier.
Definition: types.hpp:5243
int64_t updated_at
Unix timestamp in seconds.
Definition: types.hpp:5249
std::string inputs_json
Compression input summary, as a JSON string; empty when absent.
Definition: types.hpp:5212
std::string created_at
Finish time, RFC 3339.
Definition: types.hpp:5210
std::string outputs_json
Compression result summary, as a JSON string; empty when absent.
Definition: types.hpp:5214
std::string started_at
Start time, RFC 3339.
Definition: types.hpp:5200
std::string inputs_json
Compression input summary, as a JSON string; empty when absent.
Definition: types.hpp:5202
Definition: types.hpp:4817
std::string chat_uid
Definition: types.hpp:4820
std::optional< Interrupt > interrupt
Present only when status is ConversationStatus::Interrupted.
Definition: types.hpp:4834
ConversationStatus status
Final run status.
Definition: types.hpp:4824
std::vector< Reference > references
Sources referenced by the answer.
Definition: types.hpp:4828
double elapsed_time
Run duration in seconds.
Definition: types.hpp:4832
std::string message_id
Message ID of this round.
Definition: types.hpp:4822
std::vector< std::string > further_questions
Suggested follow-up questions ("you might also ask"); empty when absent.
Definition: types.hpp:4830
std::optional< AgentError > error
Present only when the run failed.
Definition: types.hpp:4836
std::string answer
Final answer text; valid when status is ConversationStatus::Succeeded.
Definition: types.hpp:4826
ConversationStreamEventKind kind
Discriminant, tells you which field below is populated.
Definition: types.hpp:5340
std::optional< NodeToolUseFinishedPayload > node_tool_use_finished
Definition: types.hpp:5359
std::optional< ThinkingStartedPayload > thinking_started
Definition: types.hpp:5350
std::optional< ConversationResponse > workflow_finished
Definition: types.hpp:5403
std::optional< ConversationResponse > human_interaction_required
Definition: types.hpp:5382
std::optional< AgentToolProgressPayload > agent_tool_progress
Definition: types.hpp:5374
std::optional< WorkflowStartedPayload > workflow_started
Definition: types.hpp:5345
std::optional< ChatStartedPayload > chat_started
Populated when kind is ChatStarted
Definition: types.hpp:5342
std::optional< SubagentStartedPayload > subagent_started
Definition: types.hpp:5362
std::optional< ContextCompressStartedPayload > context_compress_started
Definition: types.hpp:5391
std::optional< NodeToolUseStartedPayload > node_tool_use_started
Definition: types.hpp:5356
std::optional< PlanChangedPayload > plan_changed
Definition: types.hpp:5388
std::optional< ThinkingFinishedPayload > thinking_finished
Definition: types.hpp:5353
std::optional< MessagePayload > message
Populated when kind is Message
Definition: types.hpp:5347
std::optional< std::string > other_json
Definition: types.hpp:5412
std::optional< SubagentProgressPayload > subagent_progress
Definition: types.hpp:5365
std::optional< AgentToolStartedPayload > agent_tool_started
Definition: types.hpp:5371
std::optional< std::string > other_event
Definition: types.hpp:5409
std::optional< ContextCompressFinishedPayload > context_compress_finished
Definition: types.hpp:5394
std::optional< AgentToolFinishedPayload > agent_tool_finished
Definition: types.hpp:5377
std::optional< ChatTitleUpdatedPayload > chat_title_updated
Definition: types.hpp:5406
std::optional< ChatFinishedPayload > chat_finished
Definition: types.hpp:5397
std::optional< QueryMaskedPayload > query_masked
Definition: types.hpp:5385
std::optional< SubagentFinishedPayload > subagent_finished
Definition: types.hpp:5368
Options for AgentContext::agents (all fields optional).
Definition: types.hpp:4709
std::optional< int32_t > page
Page number, starts at 1.
Definition: types.hpp:4711
std::optional< int32_t > limit
Page size.
Definition: types.hpp:4713
std::optional< std::string > name
Fuzzy search by Agent name.
Definition: types.hpp:4715
A single interaction requested while an Agent workflow is paused.
Definition: types.hpp:4759
std::string interaction_type
Interaction type such as ask_human or trade_password
Definition: types.hpp:4765
std::string tool_args_json
Original tool arguments as a JSON string; empty when absent.
Definition: types.hpp:4771
std::string tool_call_id
Tool call that requested the interaction.
Definition: types.hpp:4761
std::string tool_name
Human-readable tool name.
Definition: types.hpp:4767
std::vector< Question > questions
Questions and answer options presented to the user.
Definition: types.hpp:4769
std::string interrupt_id
Stable key expected by the answers map when continuing.
Definition: types.hpp:4763
Definition: types.hpp:4777
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:4789
std::string tool_call_id
Tool call ID of this inquiry; used as the answer key when continuing.
Definition: types.hpp:4781
int64_t message_id
ID of the paused message.
Definition: types.hpp:4787
std::vector< HumanInteraction > interactions
Full interaction descriptors used to render and answer the pause.
Definition: types.hpp:4785
std::string node_id
ID of the node that triggered the interrupt.
Definition: types.hpp:4779
std::vector< Question > questions
Questions you need to answer.
Definition: types.hpp:4783
Definition: types.hpp:4858
std::string stage_title
Definition: types.hpp:4874
std::string outputs_json
Definition: types.hpp:4880
std::string stage_finished_title
Definition: types.hpp:4877
std::string message_type
Definition: types.hpp:4863
std::string stage
Stage identifier; only present when message_type is "process".
Definition: types.hpp:4871
std::string text
Incremental text fragment.
Definition: types.hpp:4860
std::string key
Definition: types.hpp:4867
int64_t started_at
Time this segment started, Unix timestamp in seconds.
Definition: types.hpp:4869
bool is_thinking
true if the call happened during the thinking phase
Definition: types.hpp:5005
std::string tool_type
Tool category.
Definition: types.hpp:4997
double elapsed_time
Call duration in seconds.
Definition: types.hpp:4987
std::string error
Error description on failure.
Definition: types.hpp:4985
std::vector< std::string > tip_chips
Short tags; may be empty.
Definition: types.hpp:5001
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:4995
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4989
std::string tips
Progress text.
Definition: types.hpp:4999
NodeToolUseOutputs outputs
Filtered call results, for display.
Definition: types.hpp:5007
int32_t iteration
Round number.
Definition: types.hpp:5003
std::string tool_name
Localized display name.
Definition: types.hpp:4991
std::string tool_use_id
Matches the tool_use_id of the started event.
Definition: types.hpp:4981
std::string tool_func_name
Locale-stable tool identifier.
Definition: types.hpp:4993
std::string status
succeeded / failed
Definition: types.hpp:4983
Definition: types.hpp:4960
std::string text
Raw response text of the tool; empty when absent.
Definition: types.hpp:4968
std::string query
The query the tool executed; empty when absent.
Definition: types.hpp:4966
std::string tool_args_json
Parsed request arguments, as a JSON string; empty when absent.
Definition: types.hpp:4970
std::vector< std::string > reference_domains
Domains of the referenced sources.
Definition: types.hpp:4964
std::string data_json
Definition: types.hpp:4973
std::vector< Reference > references
Sources referenced by the tool result.
Definition: types.hpp:4962
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4954
std::string tool_func_name
Definition: types.hpp:4942
int32_t iteration
Definition: types.hpp:4952
std::string tool_args
Call arguments as a JSON string.
Definition: types.hpp:4944
std::string tool_use_id
Unique ID of this call; matches the finished event.
Definition: types.hpp:4937
std::vector< std::string > tip_chips
Short tags accompanying tips; may be empty.
Definition: types.hpp:4949
std::string tips
Definition: types.hpp:4947
std::string tool_name
Localized display name of the tool.
Definition: types.hpp:4939
Definition: types.hpp:5182
std::string outputs_json
The current plan content, as a JSON string; empty when absent.
Definition: types.hpp:5188
std::string tool_name
Identifies the planning tool.
Definition: types.hpp:5190
int64_t started_at
Time of the change, Unix timestamp in seconds.
Definition: types.hpp:5186
std::string node_id
ID of the planning node.
Definition: types.hpp:5184
Definition: types.hpp:5172
std::string masked_query
The masked query.
Definition: types.hpp:5176
std::string raw_query
The original user query.
Definition: types.hpp:5174
One question the Agent needs you to answer.
Definition: types.hpp:4748
bool multi_select
Whether multiple options may be selected.
Definition: types.hpp:4754
std::string question
Question text.
Definition: types.hpp:4750
std::vector< QuestionOption > options
Options; empty means free-form answer.
Definition: types.hpp:4752
One option of a Question.
Definition: types.hpp:4739
std::string description
Option text.
Definition: types.hpp:4743
std::string label
Short UI label for the option.
Definition: types.hpp:4741
A source referenced by the answer.
Definition: types.hpp:4720
int32_t original_index
Original reference index as provided by the source.
Definition: types.hpp:4724
std::string content_json
Full nested reference payload, as a JSON string; empty when absent.
Definition: types.hpp:4734
std::string title
Reference title.
Definition: types.hpp:4730
std::string ref_type
Reference type (wire field type)
Definition: types.hpp:4726
std::string id
Reference identifier.
Definition: types.hpp:4728
int32_t index
Reference index.
Definition: types.hpp:4722
std::string url
Reference URL.
Definition: types.hpp:4732
Payload of a SubagentFinished conversation stream event.
Definition: types.hpp:5069
std::string status
succeeded / failed
Definition: types.hpp:5075
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:5071
SubagentOutputs outputs
Subagent result: goal, result, and the timeline of tool calls it made.
Definition: types.hpp:5083
std::string error
Error description on failure.
Definition: types.hpp:5081
std::string tool_use_id
Matches the tool_use_id of SubagentStarted.
Definition: types.hpp:5073
double elapsed_time
Total subagent duration in seconds.
Definition: types.hpp:5079
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5077
outputs of a SubagentFinished conversation stream event.
Definition: types.hpp:5057
std::string result
The subagent's result; empty when absent.
Definition: types.hpp:5061
std::string goal
The goal that was assigned to the subagent; empty when absent.
Definition: types.hpp:5059
std::string subagent_tools_json
Definition: types.hpp:5064
std::string subagent_tool_name
Name of the tool the subagent called.
Definition: types.hpp:5042
std::string subagent_status
Status of that call: running / succeeded / failed.
Definition: types.hpp:5046
std::string subagent_tool_args
Arguments of that call, as a JSON string.
Definition: types.hpp:5044
int32_t subagent_iteration
The subagent's internal round number.
Definition: types.hpp:5050
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:5038
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5052
std::string parent_tool_call_id
tool_use_id of the owning SubagentStarted event
Definition: types.hpp:5040
int64_t subagent_duration_ms
Duration of that call in milliseconds.
Definition: types.hpp:5048
std::string tool_use_id
Unique ID of this spawn; matches the finished event.
Definition: types.hpp:5018
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:5020
std::string prompt
Full task prompt given to the subagent.
Definition: types.hpp:5024
std::string tools_json
Definition: types.hpp:5029
std::string subagent_id
Subagent identifier; may be empty.
Definition: types.hpp:5026
std::string goal
Goal assigned to the subagent.
Definition: types.hpp:5022
std::string node_id
ID of the node that spawned the subagent.
Definition: types.hpp:5016
int32_t elapsed_time
Reasoning duration in seconds.
Definition: types.hpp:4928
int64_t finished_at
Finish time, Unix timestamp in seconds.
Definition: types.hpp:4926
int64_t started_at
Start time, Unix timestamp in seconds.
Definition: types.hpp:4917
inputs of a WorkflowStarted conversation stream event.
Definition: types.hpp:4885
std::string message_id
Message ID of this round.
Definition: types.hpp:4891
std::string chat_uid
Conversation identifier.
Definition: types.hpp:4889
int64_t chat_id
ID of the owning conversation.
Definition: types.hpp:4887
std::string query
The question that was asked.
Definition: types.hpp:4893
int64_t workflow_id
Internal workflow run ID.
Definition: types.hpp:4907
int64_t started_at
Unix timestamp in seconds.
Definition: types.hpp:4905
WorkflowStartedInputs inputs
Echoes the run's inputs.
Definition: types.hpp:4903
bool hit_cache
Whether this run's answer was served from a cache.
Definition: types.hpp:4901
A Workspace the current account belongs to.
Definition: types.hpp:4657
std::string name
Workspace name.
Definition: types.hpp:4661
int64_t created_at
Creation time, Unix timestamp in seconds.
Definition: types.hpp:4663
std::string id
Workspace ID.
Definition: types.hpp:4659
int64_t updated_at
Last updated time, Unix timestamp in seconds.
Definition: types.hpp:4665
Response for AgentContext::workspaces.
Definition: types.hpp:4670
std::vector< Workspace > workspaces
Workspaces the current account belongs to.
Definition: types.hpp:4672
Definition: types.hpp:4365
int32_t scope
Scope.
Definition: types.hpp:4375
int32_t frequency
Trigger frequency: 1=daily, 2=every_time, 3=once.
Definition: types.hpp:4373
std::string id
Alert ID.
Definition: types.hpp:4367
std::string indicator_id
Condition: "1"=price_rise, "2"=price_fall, "3"=pct_rise, "4"=pct_fall.
Definition: types.hpp:4369
AlertValueMap value_map
Trigger threshold.
Definition: types.hpp:4381
bool enabled
Whether the alert is currently active.
Definition: types.hpp:4371
std::string text
Human-readable description of the trigger condition.
Definition: types.hpp:4377
std::vector< int32_t > state
Trigger state flags.
Definition: types.hpp:4379
Response for AlertContext::list — alerts grouped by security.
Definition: types.hpp:4409
std::vector< AlertSymbolGroup > lists
Alert groups, one per security.
Definition: types.hpp:4411
All price alerts for one security.
Definition: types.hpp:4386
std::string p_chg
Day change percentage.
Definition: types.hpp:4400
std::vector< AlertItem > indicators
Alert items for this security.
Definition: types.hpp:4404
std::string name
Security name.
Definition: types.hpp:4394
std::string code
Ticker code (without market)
Definition: types.hpp:4390
std::string market
Market, e.g. "HK".
Definition: types.hpp:4392
std::string chg
Day change amount.
Definition: types.hpp:4398
std::string price
Latest price.
Definition: types.hpp:4396
std::string product
Product type (may be empty)
Definition: types.hpp:4402
std::string symbol
Security symbol.
Definition: types.hpp:4388
Definition: types.hpp:4357
std::optional< double > chg
Percentage-change threshold (nullopt if not set)
Definition: types.hpp:4361
std::string price
Absolute price threshold as a decimal string (empty if not set)
Definition: types.hpp:4359
Options for creating a topic.
Definition: types.hpp:3264
std::vector< std::string > tickers
Related stock tickers, format: {symbol}.{market}, max 10.
Definition: types.hpp:3272
std::string body
Topic body in Markdown format (required)
Definition: types.hpp:3268
std::string title
Topic title (required)
Definition: types.hpp:3266
std::vector< std::string > hashtags
Hashtag names, max 5.
Definition: types.hpp:3274
std::string topic_type
Content type: "article" or "post" (empty = default "post")
Definition: types.hpp:3270
Options for listing topics created by the current authenticated user.
Definition: types.hpp:3253
int32_t page
Page number (0 = default 1)
Definition: types.hpp:3255
int32_t size
Records per page, range 1~500 (0 = default 50)
Definition: types.hpp:3257
std::string topic_type
Filter by content type: "article" or "post" (empty = all)
Definition: types.hpp:3259
News item.
Definition: types.hpp:3173
std::string title
Title.
Definition: types.hpp:3177
int32_t likes_count
Likes count.
Definition: types.hpp:3187
std::string url
URL.
Definition: types.hpp:3181
int32_t shares_count
Shares count.
Definition: types.hpp:3189
std::string description
Description.
Definition: types.hpp:3179
int32_t comments_count
Comments count.
Definition: types.hpp:3185
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:3183
std::string id
News ID.
Definition: types.hpp:3175
My topic item (created by the current authenticated user)
Definition: types.hpp:3216
std::vector< std::string > hashtags
Hashtag names.
Definition: types.hpp:3230
int32_t comments_count
Comments count.
Definition: types.hpp:3236
std::string title
Title.
Definition: types.hpp:3220
int32_t views_count
Views count.
Definition: types.hpp:3238
std::string id
Topic ID.
Definition: types.hpp:3218
int64_t updated_at
Updated time (Unix timestamp)
Definition: types.hpp:3248
std::vector< std::string > tickers
Related stock tickers.
Definition: types.hpp:3228
int64_t created_at
Created time (Unix timestamp)
Definition: types.hpp:3246
std::string description
Plain text excerpt.
Definition: types.hpp:3222
int32_t shares_count
Shares count.
Definition: types.hpp:3240
std::vector< TopicImage > images
Images.
Definition: types.hpp:3232
int32_t likes_count
Likes count.
Definition: types.hpp:3234
std::string detail_url
URL to the full topic page.
Definition: types.hpp:3244
std::string topic_type
Content type: "article" or "post".
Definition: types.hpp:3242
TopicAuthor author
Author.
Definition: types.hpp:3226
std::string body
Markdown body.
Definition: types.hpp:3224
Topic author.
Definition: types.hpp:3194
std::string member_id
Member ID.
Definition: types.hpp:3196
std::string avatar
Avatar URL.
Definition: types.hpp:3200
std::string name
Display name.
Definition: types.hpp:3198
Topic image.
Definition: types.hpp:3205
std::string lg
Large image URL.
Definition: types.hpp:3211
std::string url
Original image URL.
Definition: types.hpp:3207
std::string sm
Small thumbnail URL.
Definition: types.hpp:3209
Topic item.
Definition: types.hpp:3152
std::string url
URL.
Definition: types.hpp:3160
int32_t likes_count
Likes count.
Definition: types.hpp:3166
std::string description
Description.
Definition: types.hpp:3158
std::string title
Title.
Definition: types.hpp:3156
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:3162
int32_t shares_count
Shares count.
Definition: types.hpp:3168
std::string id
Topic ID.
Definition: types.hpp:3154
int32_t comments_count
Comments count.
Definition: types.hpp:3164
Response for DCAContext::calc_date — next projected trade date.
Definition: types.hpp:4528
std::string trade_date
Next projected trade date (unix timestamp string)
Definition: types.hpp:4530
Response for DCAContext::create_dca and DCAContext::update_dca.
Definition: types.hpp:4535
std::string plan_id
The plan ID of the created or updated DCA plan.
Definition: types.hpp:4537
One DCA execution history record.
Definition: types.hpp:4542
std::string order_id
Definition: types.hpp:4544
std::string action
Definition: types.hpp:4546
std::string order_type
Definition: types.hpp:4547
std::string created_at
Definition: types.hpp:4543
std::string rejected_reason
Definition: types.hpp:4551
std::string executed_price
Definition: types.hpp:4549
std::string executed_amount
Definition: types.hpp:4550
std::string symbol
Definition: types.hpp:4552
std::string executed_qty
Definition: types.hpp:4548
std::string status
Definition: types.hpp:4545
Paginated DCA execution history response.
Definition: types.hpp:4557
bool has_more
Definition: types.hpp:4559
std::vector< DcaHistoryRecord > records
Definition: types.hpp:4558
Response for DCAContext::list and write operations.
Definition: types.hpp:4486
std::vector< DcaPlan > plans
DCA plans.
Definition: types.hpp:4488
One DCA (dollar-cost averaging) investment plan.
Definition: types.hpp:4437
std::string updated_at
Last updated time.
Definition: types.hpp:4469
std::string average_cost
Average cost.
Definition: types.hpp:4479
DCAFrequency invest_frequency
Investment frequency.
Definition: types.hpp:4457
std::string aaid
Account ID.
Definition: types.hpp:4447
std::string next_trd_date
Next investment date.
Definition: types.hpp:4471
std::string cum_amount
Cumulative invested amount.
Definition: types.hpp:4475
std::string invest_day_of_week
Day of week for weekly plans (e.g. "Mon")
Definition: types.hpp:4459
std::string stock_name
Security name.
Definition: types.hpp:4473
std::string alter_hours
Advance reminder hours ("1", "6", or "12")
Definition: types.hpp:4465
bool allow_margin_finance
Whether margin finance is allowed.
Definition: types.hpp:4463
std::string symbol
Security symbol.
Definition: types.hpp:4443
DCAStatus status
Plan status.
Definition: types.hpp:4441
int64_t issue_number
Number of completed investment periods.
Definition: types.hpp:4477
std::string display_account
Display account.
Definition: types.hpp:4451
std::string plan_id
Plan ID.
Definition: types.hpp:4439
std::string created_at
Creation time.
Definition: types.hpp:4467
std::string account_channel
Account channel.
Definition: types.hpp:4449
std::string per_invest_amount
Investment amount per period.
Definition: types.hpp:4455
std::string invest_day_of_month
Day of month for monthly plans.
Definition: types.hpp:4461
std::string member_id
Member ID.
Definition: types.hpp:4445
std::string cum_profit
Cumulative profit/loss.
Definition: types.hpp:4481
longbridge::Market market
Market.
Definition: types.hpp:4453
Response for DCAContext::stats — aggregate DCA statistics.
Definition: types.hpp:4493
std::string suspended_count
Number of suspended plans.
Definition: types.hpp:4499
std::string finished_count
Number of finished plans.
Definition: types.hpp:4497
std::vector< DcaPlan > nearest_plans
Nearest upcoming plans.
Definition: types.hpp:4501
std::string active_count
Number of active plans.
Definition: types.hpp:4495
std::string total_amount
Total invested amount.
Definition: types.hpp:4505
std::string total_profit
Total profit/loss.
Definition: types.hpp:4507
std::string rest_days
Days until next investment.
Definition: types.hpp:4503
DCA support info for one security.
Definition: types.hpp:4512
std::string symbol
Security symbol.
Definition: types.hpp:4514
bool support_regular_saving
Whether DCA is supported for this security.
Definition: types.hpp:4516
Response for DCAContext::check_support.
Definition: types.hpp:4521
std::vector< DcaSupportInfo > infos
Support info per security.
Definition: types.hpp:4523
Fund analysis detail (level 2).
Definition: types.hpp:5894
int32_t actual_period
Actual period.
Definition: types.hpp:5896
std::string updated_at
Updated at.
Definition: types.hpp:5906
std::vector< int32_t > available_periods
Available periods.
Definition: types.hpp:5898
std::string cost_level
Cost level (raw JSON string)
Definition: types.hpp:5900
std::string return_ability
Return ability (raw JSON string)
Definition: types.hpp:5902
std::string value_for_money
Value for money (raw JSON string)
Definition: types.hpp:5908
bool visible
Whether visible.
Definition: types.hpp:5910
std::string risk_ability
Risk ability (raw JSON string)
Definition: types.hpp:5904
Fund analysis (level 1).
Definition: types.hpp:5875
std::string cost_level
Cost level (raw JSON string)
Definition: types.hpp:5879
std::string updated_at
Updated at.
Definition: types.hpp:5885
bool visible
Whether visible.
Definition: types.hpp:5889
std::string risk_ability
Risk ability (raw JSON string)
Definition: types.hpp:5883
std::string return_ability
Return ability (raw JSON string)
Definition: types.hpp:5881
int32_t actual_period
Actual period.
Definition: types.hpp:5877
std::string value_for_money
Value for money (raw JSON string)
Definition: types.hpp:5887
A fund annual return entry.
Definition: types.hpp:5957
std::string change_percent
Change percent.
Definition: types.hpp:5959
int32_t year
Year.
Definition: types.hpp:5961
A fund's asset allocation.
Definition: types.hpp:5753
std::vector< FundAssetAllocationItem > lists
Allocation entries.
Definition: types.hpp:5757
std::string report_date
Report date.
Definition: types.hpp:5759
int32_t asset_type
Asset type.
Definition: types.hpp:5755
A single holding entry inside a fund's asset allocation.
Definition: types.hpp:5740
std::string code
Security code.
Definition: types.hpp:5742
std::string counter_id
Security counter id.
Definition: types.hpp:5744
std::string name
Name.
Definition: types.hpp:5746
std::string position_ratio
Position ratio.
Definition: types.hpp:5748
A fund entry in the fund list.
Definition: types.hpp:5686
std::string code
Fund code.
Definition: types.hpp:5692
std::string time_interval
Time interval of the earning rate.
Definition: types.hpp:5718
std::string currency
Currency.
Definition: types.hpp:5696
std::string earning_rate
Earning rate.
Definition: types.hpp:5700
std::string counter_id
Fund counter id.
Definition: types.hpp:5694
std::string risk_level_name
Risk level name.
Definition: types.hpp:5716
bool holding
Whether the user is holding this fund.
Definition: types.hpp:5702
std::string isin
ISIN.
Definition: types.hpp:5704
std::string unit_value
Unit value.
Definition: types.hpp:5720
int32_t risk_level
Risk level.
Definition: types.hpp:5714
std::string description
Description.
Definition: types.hpp:5698
std::string product
Product.
Definition: types.hpp:5708
std::string name
Fund name.
Definition: types.hpp:5706
std::string recommendation_text
Recommendation text.
Definition: types.hpp:5712
std::string purchase_amount
Minimum purchase amount.
Definition: types.hpp:5710
std::string asset_class_name
Asset class name.
Definition: types.hpp:5690
int32_t asset_class
Asset class.
Definition: types.hpp:5688
A dated value point.
Definition: types.hpp:6165
int64_t date
Date (unix seconds)
Definition: types.hpp:6167
std::string value
Value.
Definition: types.hpp:6169
Fund detail.
Definition: types.hpp:5764
std::string amount_affirm_day
Amount affirm day.
Definition: types.hpp:5770
std::string year_to_date_yield
Year to date yield.
Definition: types.hpp:5868
bool derivatives
Whether it is a derivative.
Definition: types.hpp:5790
bool is_complex
Whether it is a complex product.
Definition: types.hpp:5802
std::string purchase_rate
Purchase rate.
Definition: types.hpp:5844
std::string open_period
Open period.
Definition: types.hpp:5830
int32_t risk_level
Risk level.
Definition: types.hpp:5860
int32_t done_day
Done day.
Definition: types.hpp:5792
std::string isin
ISIN.
Definition: types.hpp:5808
std::string name
Fund name.
Definition: types.hpp:5822
std::string code
Fund code.
Definition: types.hpp:5784
std::string nav_deadline
Net value deadline.
Definition: types.hpp:5824
std::string open_date
Open date.
Definition: types.hpp:5828
std::string min_hold_share
Minimum holding share.
Definition: types.hpp:5816
std::string currency
Currency.
Definition: types.hpp:5786
int32_t rating
Rating.
Definition: types.hpp:5846
int32_t ytd_yield_type
Year to date yield type.
Definition: types.hpp:5870
std::string redemption_advance_day
Redemption advance day.
Definition: types.hpp:5850
std::string asset_class_name
Asset class name.
Definition: types.hpp:5776
std::string redemption_close_period_shows
Redemption close period text.
Definition: types.hpp:5854
std::string product_information_locals
Product information locals.
Definition: types.hpp:5834
bool is_cash_plus
Whether it is a cash-plus fund.
Definition: types.hpp:5800
std::string additional_purchase_amount
Additional purchase amount.
Definition: types.hpp:5766
std::string manager
Manager.
Definition: types.hpp:5812
std::string month_raise_day
Month raise day.
Definition: types.hpp:5820
std::string redemption_done_day
Redemption done day.
Definition: types.hpp:5856
std::string manage_rate
Management rate.
Definition: types.hpp:5810
std::string channel
Channel.
Definition: types.hpp:5780
int32_t purchasable
Whether purchasable.
Definition: types.hpp:5838
bool virtual_currency
Whether it is a virtual currency fund.
Definition: types.hpp:5866
std::string cut_off_time
Cut off time.
Definition: types.hpp:5788
std::string purchase_amount
Minimum purchase amount.
Definition: types.hpp:5842
std::string close_period
Close period.
Definition: types.hpp:5782
std::string min_hold_cash
Minimum holding cash.
Definition: types.hpp:5814
int32_t affirm_day
Affirm day.
Definition: types.hpp:5768
std::string min_sell_share
Minimum sell share.
Definition: types.hpp:5818
std::string risk_level_name
Risk level name.
Definition: types.hpp:5862
std::string redemption_open_day_shows
Redemption open day text.
Definition: types.hpp:5858
std::string redemption_amount
Redemption amount.
Definition: types.hpp:5852
int32_t verify_status
Verify status.
Definition: types.hpp:5864
int32_t asset_class
Asset class.
Definition: types.hpp:5774
std::string product
Product.
Definition: types.hpp:5832
std::string profile
Profile.
Definition: types.hpp:5836
std::optional< FundAssetAllocation > asset_allocation
Asset allocation.
Definition: types.hpp:5772
std::string excess_return_fee
Excess return fee.
Definition: types.hpp:5794
bool no_load
Whether it is no-load.
Definition: types.hpp:5826
std::string gst_rate
GST rate.
Definition: types.hpp:5796
std::string introduce
Introduction.
Definition: types.hpp:5798
bool is_yinghebao
Whether it is a Yinghebao fund.
Definition: types.hpp:5806
std::string purchase_affirm_day
Purchase affirm day.
Definition: types.hpp:5840
int32_t redeemable
Whether redeemable.
Definition: types.hpp:5848
std::string bill_purchase_rate
Bill purchase rate.
Definition: types.hpp:5778
bool is_new_cash_plus
Whether it is a new cash-plus fund.
Definition: types.hpp:5804
A cash dividend record for a held fund.
Definition: types.hpp:6306
std::string div_method
Dividend method.
Definition: types.hpp:6316
std::string name
Fund name.
Definition: types.hpp:6318
std::string currency
Currency.
Definition: types.hpp:6312
std::string amount
Amount.
Definition: types.hpp:6308
std::string counter_id
Fund counter id.
Definition: types.hpp:6310
int64_t date
Date (unix seconds)
Definition: types.hpp:6314
The user's dividend records for a held fund.
Definition: types.hpp:6323
std::string currency
Currency.
Definition: types.hpp:6325
std::string total_div_cash
Total cash dividend.
Definition: types.hpp:6331
int64_t lastest_date
Latest dividend date (unix seconds)
Definition: types.hpp:6329
std::vector< FundDividend > div_cash_infos
Dividend records.
Definition: types.hpp:6327
Fund list filter options. Each list holds raw JSON option objects.
Definition: types.hpp:5725
std::vector< std::string > industry_category_name
Industry category options (raw JSON strings)
Definition: types.hpp:5733
std::vector< std::string > company
Company options (raw JSON strings)
Definition: types.hpp:5729
std::vector< std::string > asset_class
Asset class options (raw JSON strings)
Definition: types.hpp:5727
std::vector< std::string > risk_level
Risk level options (raw JSON strings)
Definition: types.hpp:5735
std::vector< std::string > currency
Currency options (raw JSON strings)
Definition: types.hpp:5731
A single fund holding (top-10 holdings).
Definition: types.hpp:6068
std::string maturity_date
Maturity date.
Definition: types.hpp:6082
std::string market_value
Market value.
Definition: types.hpp:6080
std::string weighting
Weighting.
Definition: types.hpp:6092
std::string industry_name
Industry name.
Definition: types.hpp:6078
std::string shares
Shares.
Definition: types.hpp:6090
std::string share_change_percent
Share change percent.
Definition: types.hpp:6088
std::string country_name
Country name.
Definition: types.hpp:6074
std::string holding_type
Holding type.
Definition: types.hpp:6076
std::string share_change
Share change.
Definition: types.hpp:6086
std::string bond_type_name
Bond type name.
Definition: types.hpp:6072
std::string bond_type
Bond type.
Definition: types.hpp:6070
std::string name
Name.
Definition: types.hpp:6084
A fund's top-10 holdings.
Definition: types.hpp:6097
std::vector< FundHolding > holdings
Holding entries.
Definition: types.hpp:6099
std::string report_date
Report date.
Definition: types.hpp:6101
std::string weighting
Total weighting.
Definition: types.hpp:6103
A named contrast performance series.
Definition: types.hpp:5939
std::vector< std::string > performances
Performance points (raw JSON strings)
Definition: types.hpp:5943
std::string name
Series name.
Definition: types.hpp:5941
Net-value range options (relative months / years before now).
Definition: types.hpp:5450
std::optional< int32_t > month_before
Number of months before now.
Definition: types.hpp:5452
std::optional< int32_t > year_before
Number of years before now.
Definition: types.hpp:5454
A fund net-asset-value data point (latest / historical).
Definition: types.hpp:5621
std::string counter_id
Fund counter id.
Definition: types.hpp:5629
std::string value_format
Formatted net value.
Definition: types.hpp:5643
int64_t last_update_time
Last update time (unix seconds)
Definition: types.hpp:5639
std::string change_percent
Net value change percent.
Definition: types.hpp:5625
std::string isin
ISIN.
Definition: types.hpp:5637
std::string change
Net value change.
Definition: types.hpp:5623
std::string counter_name
Fund name.
Definition: types.hpp:5631
std::string value
Net value.
Definition: types.hpp:5641
std::string date_format
Formatted date.
Definition: types.hpp:5635
std::string change_percent_format
Formatted change percent.
Definition: types.hpp:5627
std::string currency
Currency.
Definition: types.hpp:5633
Fund order detail.
Definition: types.hpp:6476
std::vector< FundOrderKeyword > keywords
Keyword blocks.
Definition: types.hpp:6478
std::optional< FundOrderInfo > order
The order.
Definition: types.hpp:6480
std::vector< FundOrderStage > stages
Processing stages.
Definition: types.hpp:6482
A fund order (list view).
Definition: types.hpp:6336
std::string currency
Currency.
Definition: types.hpp:6346
std::string fund_name
Fund name.
Definition: types.hpp:6348
int64_t created_at
Created at (unix seconds)
Definition: types.hpp:6344
std::string counter_id
Fund counter id.
Definition: types.hpp:6342
std::string product_type
Product type.
Definition: types.hpp:6356
std::string net_worth
Net worth.
Definition: types.hpp:6354
bool is_auto
Whether it is an auto (DCA) order.
Definition: types.hpp:6352
std::string state
State.
Definition: types.hpp:6358
std::string units
Units.
Definition: types.hpp:6362
int64_t id
Order id.
Definition: types.hpp:6350
std::string state_desc
State description.
Definition: types.hpp:6360
std::string amount
Amount.
Definition: types.hpp:6340
std::string action
Action (buy/sell)
Definition: types.hpp:6338
The full information of a fund order.
Definition: types.hpp:6399
std::string time_partition
Time partition.
Definition: types.hpp:6461
bool repurchaseable
Whether repurchaseable.
Definition: types.hpp:6441
std::string amount
Amount.
Definition: types.hpp:6407
std::string fund_name
Fund name.
Definition: types.hpp:6423
int64_t transaction_at
Transaction at (unix seconds)
Definition: types.hpp:6465
std::string sale_proceeds
Sale proceeds.
Definition: types.hpp:6443
int32_t status_ex
Extended status.
Definition: types.hpp:6457
std::string account_channel
Account channel.
Definition: types.hpp:6403
std::string fee
Fee.
Definition: types.hpp:6421
std::string units
Units.
Definition: types.hpp:6467
int64_t eq_at
Equity time (unix seconds)
Definition: types.hpp:6419
std::string counter_id
Fund counter id.
Definition: types.hpp:6411
int64_t id
Order id.
Definition: types.hpp:6429
std::string message
Message.
Definition: types.hpp:6431
std::string state
State.
Definition: types.hpp:6451
std::string fund_source
Fund source.
Definition: types.hpp:6425
bool withdrawable
Whether withdrawable.
Definition: types.hpp:6471
std::string state_desc
State description.
Definition: types.hpp:6453
std::string histories
Histories.
Definition: types.hpp:6427
std::string sales_charge
Sales charge.
Definition: types.hpp:6445
std::string product_type
Product type.
Definition: types.hpp:6439
std::string action
Action (buy/sell)
Definition: types.hpp:6405
std::string currency
Currency.
Definition: types.hpp:6415
int64_t withdraw_at
Withdraw at (unix seconds)
Definition: types.hpp:6469
std::string net_worth
Net worth.
Definition: types.hpp:6433
std::string sales_unit
Sales unit.
Definition: types.hpp:6449
int64_t price_at
Price time (unix seconds)
Definition: types.hpp:6435
int64_t processed_at
Processed at (unix seconds)
Definition: types.hpp:6437
std::string dividend_option
Dividend option.
Definition: types.hpp:6417
int32_t status
Status.
Definition: types.hpp:6455
int64_t created_at
Created at (unix seconds)
Definition: types.hpp:6413
std::string total_amount
Total amount.
Definition: types.hpp:6463
std::string sales_price
Sales price.
Definition: types.hpp:6447
int64_t aaid
Account id.
Definition: types.hpp:6401
std::string channel
Channel.
Definition: types.hpp:6409
std::string t_description
T+ description.
Definition: types.hpp:6459
A keyword block in a fund order detail.
Definition: types.hpp:6367
std::string content
Content.
Definition: types.hpp:6369
std::string line_strategy
Line strategy.
Definition: types.hpp:6375
std::string group
Group.
Definition: types.hpp:6371
std::string title
Title.
Definition: types.hpp:6377
std::string key
Key.
Definition: types.hpp:6373
A processing stage in a fund order detail.
Definition: types.hpp:6382
std::string key
Key.
Definition: types.hpp:6386
std::string progress
Progress.
Definition: types.hpp:6392
std::string desc
Description.
Definition: types.hpp:6384
std::string stage
Stage.
Definition: types.hpp:6394
std::string link
Link.
Definition: types.hpp:6388
std::string link_text
Link text.
Definition: types.hpp:6390
The result of submitting a fund order.
Definition: types.hpp:6539
int32_t status
Status.
Definition: types.hpp:6555
std::string fund_name
Fund name.
Definition: types.hpp:6549
std::string msg
Message.
Definition: types.hpp:6553
std::string amount
Amount.
Definition: types.hpp:6543
int64_t created_at
Created at (unix seconds)
Definition: types.hpp:6547
int64_t id
Order id.
Definition: types.hpp:6551
std::string counter_id
Fund counter id.
Definition: types.hpp:6545
std::string action
Action (buy/sell)
Definition: types.hpp:6541
std::string units
Units.
Definition: types.hpp:6557
The result of validating a fund order.
Definition: types.hpp:6522
std::string eval_address
Risk-assessment eval address.
Definition: types.hpp:6526
int32_t user_pi
User PI status.
Definition: types.hpp:6532
std::string msg
Message.
Definition: types.hpp:6530
std::string auth_token
Auth token to carry into submit.
Definition: types.hpp:6524
int32_t fund_risk_level
Fund risk level.
Definition: types.hpp:6528
int32_t user_risk_level
User risk level.
Definition: types.hpp:6534
Paging options (page / size).
Definition: types.hpp:5441
std::optional< int32_t > page
Page number.
Definition: types.hpp:5443
std::optional< int32_t > size
Page size.
Definition: types.hpp:5445
Fund performance comparison.
Definition: types.hpp:5948
std::vector< FundNamedContrast > contrast_performances
Contrast performance series.
Definition: types.hpp:5950
std::vector< std::string > fund_performances
Fund performances (raw JSON strings)
Definition: types.hpp:5952
A fund's detailed performance figures.
Definition: types.hpp:5977
int32_t performance_total_five_years
Total peers (5y)
Definition: types.hpp:6037
int64_t update_time
Update time (unix seconds)
Definition: types.hpp:6063
std::string performance_return_five_years
Return (5y)
Definition: types.hpp:6015
std::string performance_return_one_week
Return (1w)
Definition: types.hpp:6021
int32_t performance_rank_six_months
Rank (6m)
Definition: types.hpp:6003
int32_t performance_rank_ten_years
Rank (10y)
Definition: types.hpp:6005
int32_t performance_total_ten_years
Total peers (10y)
Definition: types.hpp:6049
std::string annualized_return_ten
Annualized return (10y)
Definition: types.hpp:5983
int32_t performance_total_one_month
Total peers (1m)
Definition: types.hpp:6041
int32_t performance_rank_three_years
Rank (3y)
Definition: types.hpp:6009
std::string performance_return_three_months
Return (3m)
Definition: types.hpp:6029
int32_t performance_total_six_months
Total peers (6m)
Definition: types.hpp:6047
int32_t performance_rank_one_year
Rank (1y)
Definition: types.hpp:6001
std::string annualized_return_one
Annualized return (1y)
Definition: types.hpp:5981
std::string annualized_return_two
Annualized return (2y)
Definition: types.hpp:5987
std::string fund_name
Fund name.
Definition: types.hpp:5991
std::string annualized_return_three
Annualized return (3y)
Definition: types.hpp:5985
int32_t performance_total_one_year
Total peers (1y)
Definition: types.hpp:6045
std::string seven_days_annualized
Seven days annualized.
Definition: types.hpp:6059
std::string performance_return_one_month
Return (1m)
Definition: types.hpp:6019
std::string annualized_return_five
Annualized return (5y)
Definition: types.hpp:5979
int32_t performance_total_three_months
Total peers (3m)
Definition: types.hpp:6051
int32_t performance_rank_two_years
Rank (2y)
Definition: types.hpp:6011
int32_t performance_rank_one_day
Rank (1d)
Definition: types.hpp:5995
int32_t performance_total_one_week
Total peers (1w)
Definition: types.hpp:6043
int32_t performance_rank_ytd
Rank (ytd)
Definition: types.hpp:6013
std::string performance_return_six_months
Return (6m)
Definition: types.hpp:6025
std::string performance_return_three_years
Return (3y)
Definition: types.hpp:6031
std::string ten_thousand_price
Ten thousand price.
Definition: types.hpp:6061
int32_t performance_rank_one_month
Rank (1m)
Definition: types.hpp:5997
int32_t performance_total_ytd
Total peers (ytd)
Definition: types.hpp:6057
int32_t performance_total_two_years
Total peers (2y)
Definition: types.hpp:6055
std::string performance_return_one_year
Return (1y)
Definition: types.hpp:6023
int32_t performance_rank_one_week
Rank (1w)
Definition: types.hpp:5999
int32_t performance_total_one_day
Total peers (1d)
Definition: types.hpp:6039
std::string performance_return_two_years
Return (2y)
Definition: types.hpp:6033
int32_t performance_total_three_years
Total peers (3y)
Definition: types.hpp:6053
std::string performance_return_ytd
Return (ytd)
Definition: types.hpp:6035
int32_t performance_rank_three_months
Rank (3m)
Definition: types.hpp:6007
int32_t performance_rank_five_years
Rank (5y)
Definition: types.hpp:5993
std::string performance_return_ten_years
Return (10y)
Definition: types.hpp:6027
std::string counter_id
Fund counter id.
Definition: types.hpp:5989
std::string performance_return_one_day
Return (1d)
Definition: types.hpp:6017
A recent performance point used by the hot-fund list.
Definition: types.hpp:5648
std::string date
Date.
Definition: types.hpp:5650
std::string last_done
Last done value.
Definition: types.hpp:5652
Detail of a single fund position.
Definition: types.hpp:6222
std::vector< FundDatedValue > sum_profit
Accumulated profit series.
Definition: types.hpp:6226
std::optional< FundPositionDetailValues > detail_values
Detail values.
Definition: types.hpp:6224
std::vector< FundUnitValue > ut_value
Unit value series.
Definition: types.hpp:6228
Detail values of a single fund position.
Definition: types.hpp:6187
std::string amount
Amount.
Definition: types.hpp:6189
std::string holding_units
Holding units.
Definition: types.hpp:6199
std::string pending_buy_value
Pending buy value.
Definition: types.hpp:6203
std::string holding_profit_rate
Holding profit rate.
Definition: types.hpp:6197
std::string recent_unit_value
Recent unit value.
Definition: types.hpp:6215
std::string holding_cost
Holding cost.
Definition: types.hpp:6193
std::string sold_pending_confirm_units
Sold pending-confirm units.
Definition: types.hpp:6217
std::string profit_amount_accum_td_rate
Accumulated profit rate (to date)
Definition: types.hpp:6209
std::string holding_value
Holding value.
Definition: types.hpp:6201
std::string pending_sell_value
Pending sell value.
Definition: types.hpp:6205
std::string holding_profit
Holding profit.
Definition: types.hpp:6195
int64_t recent_tradingday
Recent trading day (unix seconds)
Definition: types.hpp:6213
std::string recent_profit
Recent profit.
Definition: types.hpp:6211
std::string currency
Currency.
Definition: types.hpp:6191
std::string profit_amount_accum_td
Accumulated profit (to date)
Definition: types.hpp:6207
A single fund position held by the user.
Definition: types.hpp:6125
std::string name
Fund name.
Definition: types.hpp:6139
std::string currency
Currency.
Definition: types.hpp:6131
std::string sum_recent_profit
Accumulated recent profit.
Definition: types.hpp:6145
std::string holding_profit
Holding profit.
Definition: types.hpp:6135
std::string amount
Holding amount.
Definition: types.hpp:6127
std::string freeze_units
Frozen units.
Definition: types.hpp:6133
std::string holding_units
Holding units.
Definition: types.hpp:6137
std::string recent_profit
Recent profit.
Definition: types.hpp:6141
std::string counter_id
Fund counter id.
Definition: types.hpp:6129
int64_t recent_trading_day
Recent trading day (unix seconds)
Definition: types.hpp:6143
A held-fund net-value point (position view).
Definition: types.hpp:6289
int64_t last_update_time
Last update time (unix seconds)
Definition: types.hpp:6299
std::string change
Net value change.
Definition: types.hpp:6291
std::string value
Net value.
Definition: types.hpp:6301
std::string change_percent
Net value change percent.
Definition: types.hpp:6293
std::string counter_name
Fund name.
Definition: types.hpp:6297
std::string counter_id
Fund counter id.
Definition: types.hpp:6295
Performance figures for a held fund.
Definition: types.hpp:6233
std::string counter_id
Fund counter id.
Definition: types.hpp:6245
int64_t update_time
Update time (unix seconds)
Definition: types.hpp:6271
std::string performance_return_one_week
Return (1w)
Definition: types.hpp:6255
std::string annualized_return_three
Annualized return (3y)
Definition: types.hpp:6241
std::string performance_return_one_month
Return (1m)
Definition: types.hpp:6253
std::string annualized_return_two
Annualized return (2y)
Definition: types.hpp:6243
std::string performance_return_six_months
Return (6m)
Definition: types.hpp:6259
std::string annualized_return_five
Annualized return (5y)
Definition: types.hpp:6235
std::string performance_return_three_years
Return (3y)
Definition: types.hpp:6265
std::string fund_name
Fund name.
Definition: types.hpp:6247
std::string performance_return_ten_years
Return (10y)
Definition: types.hpp:6261
std::string performance_return_two_years
Return (2y)
Definition: types.hpp:6267
std::string performance_return_five_years
Return (5y)
Definition: types.hpp:6249
std::string performance_return_ytd
Return (ytd)
Definition: types.hpp:6269
std::string annualized_return_ten
Annualized return (10y)
Definition: types.hpp:6239
std::string annualized_return_one
Annualized return (1y)
Definition: types.hpp:6237
std::string performance_return_one_year
Return (1y)
Definition: types.hpp:6257
std::string performance_return_three_months
Return (3m)
Definition: types.hpp:6263
std::string performance_return_one_day
Return (1d)
Definition: types.hpp:6251
The user's cumulative profit for a held fund.
Definition: types.hpp:6276
std::string currency
Currency.
Definition: types.hpp:6278
int64_t last_update_time
Last update time (unix seconds)
Definition: types.hpp:6282
std::string sum_profit
Total profit.
Definition: types.hpp:6284
std::vector< FundDatedValue > history_value
Profit series.
Definition: types.hpp:6280
The user's fund positions overview.
Definition: types.hpp:6150
std::string pending_buy_orders
Pending buy orders amount.
Definition: types.hpp:6156
std::string account_channel
Account channel.
Definition: types.hpp:6152
std::string sold_pending_credit_orders
Sold pending credit orders amount.
Definition: types.hpp:6160
std::vector< FundPosition > list
Position entries.
Definition: types.hpp:6154
int64_t recent_trading_day
Recent trading day (unix seconds)
Definition: types.hpp:6158
A fund quarterly return entry.
Definition: types.hpp:5966
std::string change_percent
Change percent.
Definition: types.hpp:5968
int32_t year
Year.
Definition: types.hpp:5972
int32_t quarter
Quarter.
Definition: types.hpp:5970
A stock held by the fund (reverse lookup).
Definition: types.hpp:6108
std::string name
Stock name.
Definition: types.hpp:6116
std::string currency
Currency.
Definition: types.hpp:6114
std::string counter_id
Stock counter id.
Definition: types.hpp:6112
std::string code
Stock code.
Definition: types.hpp:6110
std::string position_ratio
Position ratio.
Definition: types.hpp:6118
std::string report_date
Report date.
Definition: types.hpp:6120
A fund transaction / cash-flow record.
Definition: types.hpp:6487
std::string quantity_description
Quantity description.
Definition: types.hpp:6505
std::string currency
Currency.
Definition: types.hpp:6495
std::string ref_no
Reference number.
Definition: types.hpp:6511
std::string redirect_page_v2
Redirect page (v2)
Definition: types.hpp:6509
std::string type_name
Type name.
Definition: types.hpp:6517
int64_t created_at
Created at (unix seconds)
Definition: types.hpp:6493
std::string tx_type
Transaction type.
Definition: types.hpp:6515
int64_t done_at
Done at (unix seconds)
Definition: types.hpp:6503
std::string description
Description.
Definition: types.hpp:6497
std::string stock_quantity
Stock quantity.
Definition: types.hpp:6513
std::string amount
Amount.
Definition: types.hpp:6489
int64_t detail_created_at
Detail created at (unix seconds)
Definition: types.hpp:6499
std::string category
Category.
Definition: types.hpp:6491
std::string detail_type
Detail type.
Definition: types.hpp:6501
std::string redirect_page
Redirect page.
Definition: types.hpp:6507
A benchmark contrast series in a fund trend chart.
Definition: types.hpp:5915
std::vector< std::string > performances
Performance points (raw JSON strings)
Definition: types.hpp:5919
std::string benchmark_name
Benchmark name.
Definition: types.hpp:5917
Fund trend chart.
Definition: types.hpp:5924
std::optional< FundTrendContrast > contrast_performances
Benchmark contrast performances.
Definition: types.hpp:5932
std::vector< std::string > category_average_performances
Category average performances (raw JSON strings)
Definition: types.hpp:5930
int32_t actual_period
Actual period.
Definition: types.hpp:5926
std::vector< std::string > fund_performances
Fund performances (raw JSON strings)
Definition: types.hpp:5934
std::vector< int32_t > available_periods
Available periods.
Definition: types.hpp:5928
A fund unit-value point (position view).
Definition: types.hpp:6174
std::string unit_value
Unit value.
Definition: types.hpp:6182
int64_t date
Date (unix seconds)
Definition: types.hpp:6176
std::string day_increase_rate
Day increase rate.
Definition: types.hpp:6178
std::string total_value
Total value.
Definition: types.hpp:6180
Options for the fund analysis / trend / comparison request.
Definition: types.hpp:5434
std::optional< int32_t > period
Analysis period.
Definition: types.hpp:5436
Options for the fund holdings request.
Definition: types.hpp:5459
std::optional< int32_t > scene
Scene.
Definition: types.hpp:5461
Options for the fund orders list request.
Definition: types.hpp:5531
std::optional< std::string > currency
Filter by currency.
Definition: types.hpp:5539
std::optional< std::string > actions
Filter by actions (comma-separated)
Definition: types.hpp:5535
std::optional< int32_t > page
Page number.
Definition: types.hpp:5545
std::vector< std::string > counter_ids
Filter by fund counter ids.
Definition: types.hpp:5533
std::optional< int64_t > start
Range start (unix seconds)
Definition: types.hpp:5541
std::optional< int32_t > size
Page size.
Definition: types.hpp:5547
std::optional< std::string > states
Filter by states (comma-separated)
Definition: types.hpp:5537
std::optional< int64_t > end
Range end (unix seconds)
Definition: types.hpp:5543
Options for a single fund position dividend request.
Definition: types.hpp:5512
std::optional< int64_t > aaid
Account id.
Definition: types.hpp:5516
std::optional< int32_t > page
Page number.
Definition: types.hpp:5524
std::optional< int32_t > size
Page size.
Definition: types.hpp:5526
std::optional< std::string > currency
Currency.
Definition: types.hpp:5518
std::optional< int64_t > end
Range end (unix seconds)
Definition: types.hpp:5522
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5514
std::optional< int64_t > start
Range start (unix seconds)
Definition: types.hpp:5520
Options for a single fund position detail request.
Definition: types.hpp:5482
std::optional< std::string > start
Range start.
Definition: types.hpp:5488
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5484
std::optional< int64_t > aaid
Account id.
Definition: types.hpp:5486
std::optional< std::string > end
Range end.
Definition: types.hpp:5490
Options for a single fund position cumulative-profit request.
Definition: types.hpp:5495
std::optional< int32_t > size
Page size.
Definition: types.hpp:5507
std::optional< int32_t > page
Page number.
Definition: types.hpp:5505
std::optional< std::string > end
Range end.
Definition: types.hpp:5503
std::optional< std::string > start
Range start.
Definition: types.hpp:5501
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5497
std::optional< int64_t > aaid
Account id.
Definition: types.hpp:5499
Options for the fund positions overview request.
Definition: types.hpp:5473
std::optional< int64_t > aaid
Account id.
Definition: types.hpp:5477
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5475
Options for the fund stock-holdings (reverse) request.
Definition: types.hpp:5466
std::optional< int32_t > limit
Maximum number of stocks to return.
Definition: types.hpp:5468
Options for the fund transactions (cash-flow) list request.
Definition: types.hpp:5552
std::optional< int64_t > end
Range end (unix seconds)
Definition: types.hpp:5564
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5554
std::optional< std::string > category
Category.
Definition: types.hpp:5558
std::optional< int32_t > page
Page number.
Definition: types.hpp:5566
std::optional< int32_t > size
Page size.
Definition: types.hpp:5568
std::optional< std::string > currencies
Currencies (comma-separated)
Definition: types.hpp:5560
std::optional< std::string > business_type
Business type.
Definition: types.hpp:5556
std::optional< int64_t > start
Range start (unix seconds)
Definition: types.hpp:5562
Options for the fund list request.
Definition: types.hpp:5423
std::vector< std::string > time_interval
Earning-rate time intervals.
Definition: types.hpp:5429
std::optional< std::string > filter
Server-defined filter object as a raw JSON string.
Definition: types.hpp:5425
std::vector< int64_t > quick_ids
Quick-filter ids.
Definition: types.hpp:5427
A hot-selling fund entry.
Definition: types.hpp:5657
std::string recommendation_text
Recommendation text.
Definition: types.hpp:5675
std::string name
Fund name.
Definition: types.hpp:5671
std::string earning_rate
Earning rate.
Definition: types.hpp:5667
std::string time_interval
Time interval of the earning rate.
Definition: types.hpp:5681
std::string counter_id
Fund counter id.
Definition: types.hpp:5663
int32_t asset_class
Asset class.
Definition: types.hpp:5659
std::string purchase_amount
Minimum purchase amount.
Definition: types.hpp:5673
int32_t risk_level
Risk level.
Definition: types.hpp:5677
std::vector< FundPerformancePoint > fund_performances
Recent performance points.
Definition: types.hpp:5669
std::string asset_class_name
Asset class name.
Definition: types.hpp:5661
std::string risk_level_name
Risk level name.
Definition: types.hpp:5679
std::string currency
Currency.
Definition: types.hpp:5665
Options for submitting a fund order.
Definition: types.hpp:5594
std::optional< std::string > amount
Amount (for amount-based orders)
Definition: types.hpp:5602
std::optional< int32_t > dividend_option
Dividend option.
Definition: types.hpp:5606
std::string action
Action (buy/sell)
Definition: types.hpp:5598
std::optional< bool > is_sell_all
Whether to sell all.
Definition: types.hpp:5610
std::string currency
Currency.
Definition: types.hpp:5600
std::optional< std::string > units
Units (for unit-based orders)
Definition: types.hpp:5604
std::optional< int32_t > trade_method
Trade method.
Definition: types.hpp:5614
std::optional< std::string > remark
Remark.
Definition: types.hpp:5612
std::optional< std::string > fee
Fee.
Definition: types.hpp:5608
std::string counter_id
Fund counter id.
Definition: types.hpp:5596
Options for validating a fund order.
Definition: types.hpp:5573
std::string action
Action (buy/sell)
Definition: types.hpp:5577
std::string currency
Currency.
Definition: types.hpp:5579
std::optional< std::string > amount
Amount (for amount-based orders)
Definition: types.hpp:5581
std::optional< int32_t > dividend_option
Dividend option.
Definition: types.hpp:5585
std::optional< int32_t > fund_source
Fund source.
Definition: types.hpp:5587
std::optional< std::string > units
Units (for unit-based orders)
Definition: types.hpp:5583
std::string counter_id
Fund counter id.
Definition: types.hpp:5575
std::optional< std::string > account_channel
Account channel.
Definition: types.hpp:5589
One ETF asset allocation group (grouped by element type)
Definition: types.hpp:4333
ElementType asset_type
Element type of this group.
Definition: types.hpp:4337
std::string report_date
Report date (e.g. 20260601)
Definition: types.hpp:4335
std::vector< AssetAllocationItem > lists
Elements.
Definition: types.hpp:4339
One element of an ETF asset allocation group.
Definition: types.hpp:4316
std::string symbol
Security symbol (holdings only, e.g. NVDA.US)
Definition: types.hpp:4324
std::string position_ratio
Position ratio (e.g. 0.0861114)
Definition: types.hpp:4322
std::optional< HoldingDetail > holding_detail
Holding detail (holdings only)
Definition: types.hpp:4328
std::string name
Element name.
Definition: types.hpp:4318
std::map< std::string, std::string > name_locales
Localized names (locale → name)
Definition: types.hpp:4326
std::string code
Security code (holdings only, e.g. NVDA)
Definition: types.hpp:4320
ETF asset allocation response.
Definition: types.hpp:4344
std::vector< AssetAllocationGroup > info
Asset allocation groups.
Definition: types.hpp:4346
One business/regional segment item in a historical snapshot.
Definition: types.hpp:4112
std::string percent
Definition: types.hpp:4114
std::string value
Definition: types.hpp:4115
std::string name
Definition: types.hpp:4113
One business segment item (latest snapshot).
Definition: types.hpp:4096
std::string percent
Definition: types.hpp:4098
std::string name
Definition: types.hpp:4097
One historical business segments snapshot.
Definition: types.hpp:4120
std::string date
Definition: types.hpp:4121
std::vector< BusinessSegmentHistoryItem > business
Definition: types.hpp:4124
std::string currency
Definition: types.hpp:4123
std::string total
Definition: types.hpp:4122
std::vector< BusinessSegmentHistoryItem > regionals
Definition: types.hpp:4125
Business segments history response.
Definition: types.hpp:4130
std::vector< BusinessSegmentsHistoricalItem > historical
Definition: types.hpp:4131
Business segments response.
Definition: types.hpp:4103
std::string currency
Definition: types.hpp:4106
std::vector< BusinessSegmentItem > business
Definition: types.hpp:4107
std::string total
Definition: types.hpp:4105
std::string date
Definition: types.hpp:4104
Buyback data response.
Definition: types.hpp:4039
std::vector< BuybackHistoryItem > buyback_history
Definition: types.hpp:4041
std::optional< RecentBuybacks > recent_buybacks
Definition: types.hpp:4040
std::vector< BuybackRatios > buyback_ratios
Definition: types.hpp:4042
Historical annual buyback data point.
Definition: types.hpp:4021
std::string fiscal_year_range
Definition: types.hpp:4023
std::string currency
Definition: types.hpp:4027
std::string net_buyback_growth_rate
Definition: types.hpp:4026
std::string fiscal_year
Definition: types.hpp:4022
std::string net_buyback_yield
Definition: types.hpp:4025
std::string net_buyback
Definition: types.hpp:4024
Buyback payout and cash-flow ratios.
Definition: types.hpp:4032
std::string net_buyback_to_cashflow_ratio
Definition: types.hpp:4034
std::string net_buyback_payout_ratio
Definition: types.hpp:4033
Company overview and profile information.
Definition: types.hpp:3744
std::string fax
Definition: types.hpp:3763
std::string founded
Definition: types.hpp:3747
std::string address
Definition: types.hpp:3751
std::string website
Definition: types.hpp:3753
std::string ticker
Definition: types.hpp:3767
std::string year_end
Definition: types.hpp:3760
std::string profile
Definition: types.hpp:3768
std::string audit_inst
Definition: types.hpp:3758
int32_t sector
Definition: types.hpp:3769
std::string listing_date
Definition: types.hpp:3748
std::string category
Definition: types.hpp:3759
std::string chairman
Definition: types.hpp:3756
std::string name
Definition: types.hpp:3745
std::string phone
Definition: types.hpp:3762
std::string email
Definition: types.hpp:3764
std::string issue_price
Definition: types.hpp:3754
std::string employees
Definition: types.hpp:3761
std::string manager
Definition: types.hpp:3766
std::string legal_repr
Definition: types.hpp:3765
std::string region
Definition: types.hpp:3750
std::string office_address
Definition: types.hpp:3752
std::string secretary
Definition: types.hpp:3757
std::string company_name
Definition: types.hpp:3746
std::string shares_offered
Definition: types.hpp:3755
std::string market
Definition: types.hpp:3749
One consensus estimate detail for a financial metric.
Definition: types.hpp:3900
std::string comp_desc
Definition: types.hpp:3907
std::string key
Definition: types.hpp:3901
std::string estimate
Definition: types.hpp:3905
std::string description
Definition: types.hpp:3903
std::string name
Definition: types.hpp:3902
std::string comp
Definition: types.hpp:3908
bool is_released
Definition: types.hpp:3909
std::string actual
Definition: types.hpp:3904
std::string comp_value
Definition: types.hpp:3906
Consensus report for one fiscal period.
Definition: types.hpp:3914
std::string period_text
Definition: types.hpp:3917
int32_t fiscal_year
Definition: types.hpp:3915
std::vector< ConsensusDetail > details
Definition: types.hpp:3918
std::string fiscal_period
Definition: types.hpp:3916
One corporate action event (dividend, split, etc.).
Definition: types.hpp:3820
std::string id
Definition: types.hpp:3821
bool is_delay
Definition: types.hpp:3830
std::string date_str
Definition: types.hpp:3823
std::string act_desc
Definition: types.hpp:3827
std::string date_zone
Definition: types.hpp:3825
std::string act_type
Definition: types.hpp:3826
bool recent
Definition: types.hpp:3829
std::string date_type
Definition: types.hpp:3824
std::string date
Definition: types.hpp:3822
std::string action
Definition: types.hpp:3828
std::string delay_content
Definition: types.hpp:3831
Collection of corporate action events.
Definition: types.hpp:3836
std::vector< CorpActionItem > items
Definition: types.hpp:3837
One dividend event for a security.
Definition: types.hpp:3567
std::string symbol
Definition: types.hpp:3568
std::string record_date
Definition: types.hpp:3571
std::string desc
Definition: types.hpp:3570
std::string ex_date
Definition: types.hpp:3572
std::string id
Definition: types.hpp:3569
std::string payment_date
Definition: types.hpp:3573
List of dividend events.
Definition: types.hpp:3578
std::vector< DividendItem > list
Definition: types.hpp:3579
Executives for one security.
Definition: types.hpp:3998
std::string symbol
Definition: types.hpp:3999
int32_t total
Definition: types.hpp:4001
std::vector< Professional > professionals
Definition: types.hpp:4002
std::string forward_url
Definition: types.hpp:4000
List of executive groups per security.
Definition: types.hpp:4007
std::vector< ExecutiveGroup > professional_list
Definition: types.hpp:4008
Financial consensus response.
Definition: types.hpp:3923
int32_t current_index
Definition: types.hpp:3925
std::string current_period
Definition: types.hpp:3928
std::vector< ConsensusReport > list
Definition: types.hpp:3924
std::string currency
Definition: types.hpp:3926
std::vector< std::string > opt_periods
Definition: types.hpp:3927
Financial report snapshot response.
Definition: types.hpp:4222
std::string fr_asset_turn_ttm
Definition: types.hpp:4242
std::optional< SnapshotForecastMetric > fo_ebit
Definition: types.hpp:4230
std::string fp_end
Definition: types.hpp:4226
std::string name
Definition: types.hpp:4223
std::optional< SnapshotReportedMetric > fr_invest_cash
Definition: types.hpp:4235
std::string currency
Definition: types.hpp:4227
std::string fp_start
Definition: types.hpp:4225
std::string fr_leverage_ttm
Definition: types.hpp:4243
std::string report_desc
Definition: types.hpp:4228
std::optional< SnapshotReportedMetric > fr_profit
Definition: types.hpp:4233
std::optional< SnapshotReportedMetric > fr_operate_cash
Definition: types.hpp:4234
std::optional< SnapshotReportedMetric > fr_total_assets
Definition: types.hpp:4237
std::optional< SnapshotReportedMetric > fr_revenue
Definition: types.hpp:4232
std::string fr_roe_ttm
Definition: types.hpp:4239
std::optional< SnapshotForecastMetric > fo_eps
Definition: types.hpp:4231
std::string fr_profit_margin_ttm
Definition: types.hpp:4241
std::string fr_profit_margin
Definition: types.hpp:4240
std::optional< SnapshotForecastMetric > fo_revenue
Definition: types.hpp:4229
std::optional< SnapshotReportedMetric > fr_finance_cash
Definition: types.hpp:4236
std::optional< SnapshotReportedMetric > fr_total_liability
Definition: types.hpp:4238
std::string fr_debt_assets_ratio
Definition: types.hpp:4244
std::string ticker
Definition: types.hpp:4224
Financial reports — list_json contains serialized JSON.
Definition: types.hpp:3894
std::string list_json
Definition: types.hpp:3895
Collection of forecast EPS items.
Definition: types.hpp:3698
std::vector< ForecastEpsItem > items
Definition: types.hpp:3699
Forecast EPS data point from institutional analysts.
Definition: types.hpp:3684
std::string forecast_eps_highest
Definition: types.hpp:3688
std::string forecast_eps_median
Definition: types.hpp:3685
int64_t forecast_start_date
Definition: types.hpp:3692
int32_t institution_total
Definition: types.hpp:3689
std::string forecast_eps_mean
Definition: types.hpp:3686
int32_t institution_up
Definition: types.hpp:3690
int64_t forecast_end_date
Definition: types.hpp:3693
std::string forecast_eps_lowest
Definition: types.hpp:3687
int32_t institution_down
Definition: types.hpp:3691
One fund's holding record for a security.
Definition: types.hpp:3803
std::string code
Definition: types.hpp:3804
std::string name
Definition: types.hpp:3807
std::string currency
Definition: types.hpp:3806
std::string report_date
Definition: types.hpp:3809
std::string position_ratio
Definition: types.hpp:3808
std::string symbol
Definition: types.hpp:3805
Collection of fund holders for a security.
Definition: types.hpp:3814
std::vector< FundHolder > lists
Definition: types.hpp:3815
Holding detail of an ETF asset allocation element (holdings only)
Definition: types.hpp:4299
std::string industry_id
Industry ID.
Definition: types.hpp:4301
std::string index_name
Index name.
Definition: types.hpp:4307
std::string industry_name
Industry name.
Definition: types.hpp:4303
std::string holding_type_name
Holding type name.
Definition: types.hpp:4311
std::string holding_type
Holding type (e.g. E for stock)
Definition: types.hpp:4309
std::string index
Index counter ID (e.g. BK/US/CP99000)
Definition: types.hpp:4305
std::string ytd_chg
Definition: types.hpp:4193
std::string chg
Definition: types.hpp:4192
std::string symbol
Definition: types.hpp:4190
std::string next_json
Definition: types.hpp:4194
std::string name
Definition: types.hpp:4189
int32_t stock_num
Definition: types.hpp:4191
Industry peers response.
Definition: types.hpp:4199
std::optional< IndustryPeersTop > top
Definition: types.hpp:4200
std::optional< IndustryPeerNode > chain
Definition: types.hpp:4201
Top-level industry info in the peers response.
Definition: types.hpp:4179
std::string name
Definition: types.hpp:4180
std::string market
Definition: types.hpp:4181
A group of ranked industry items.
Definition: types.hpp:4167
std::vector< IndustryRankItem > lists
Definition: types.hpp:4168
One ranked industry item.
Definition: types.hpp:4154
std::string leading_ticker
Definition: types.hpp:4159
std::string leading_name
Definition: types.hpp:4158
std::string symbol
Definition: types.hpp:4156
std::string value_name
Definition: types.hpp:4161
std::string value_data
Definition: types.hpp:4162
std::string leading_chg
Definition: types.hpp:4160
std::string chg
Definition: types.hpp:4157
std::string name
Definition: types.hpp:4155
Industry rank response.
Definition: types.hpp:4173
std::vector< IndustryRankGroup > items
Definition: types.hpp:4174
Industry valuation distribution for PE, PB, PS ratios.
Definition: types.hpp:3977
std::optional< ValuationDist > pb
Definition: types.hpp:3979
std::optional< ValuationDist > pe
Definition: types.hpp:3978
std::optional< ValuationDist > ps
Definition: types.hpp:3980
Historical valuation snapshot for an industry peer.
Definition: types.hpp:3933
std::string ps
Definition: types.hpp:3937
std::string date
Definition: types.hpp:3934
std::string pe
Definition: types.hpp:3935
std::string pb
Definition: types.hpp:3936
Valuation data for one industry peer security.
Definition: types.hpp:3942
std::string currency
Definition: types.hpp:3945
std::string five_y_avg_dps
Definition: types.hpp:3952
std::string dps
Definition: types.hpp:3949
std::string div_yld
Definition: types.hpp:3950
std::string pe
Definition: types.hpp:3953
std::string assets
Definition: types.hpp:3946
std::vector< IndustryValuationHistory > history
Definition: types.hpp:3954
std::string bps
Definition: types.hpp:3947
std::string div_payout_ratio
Definition: types.hpp:3951
std::string name
Definition: types.hpp:3944
std::string eps
Definition: types.hpp:3948
std::string symbol
Definition: types.hpp:3943
List of industry valuation items.
Definition: types.hpp:3959
std::vector< IndustryValuationItem > list
Definition: types.hpp:3960
One evaluation data point in an institutional rating detail series.
Definition: types.hpp:3650
Detailed institutional rating including historical evaluate and target series.
Definition: types.hpp:3673
std::string prediction_accuracy
Definition: types.hpp:3677
std::string updated_at
Definition: types.hpp:3678
std::vector< InstitutionRatingDetailTargetItem > target_list
Definition: types.hpp:3679
std::string ccy_symbol
Definition: types.hpp:3674
std::string data_percent
Definition: types.hpp:3676
std::vector< InstitutionRatingDetailEvaluateItem > evaluate_list
Definition: types.hpp:3675
One target price data point in an institutional rating detail series.
Definition: types.hpp:3661
std::string min_target
Definition: types.hpp:3665
std::string avg_target
Definition: types.hpp:3662
std::string max_target
Definition: types.hpp:3664
std::string timestamp
Definition: types.hpp:3668
Combined latest and summary institutional rating data.
Definition: types.hpp:3643
InstitutionRatingLatest latest
Definition: types.hpp:3644
InstitutionRatingSummary summary
Definition: types.hpp:3645
Latest institutional rating data including industry comparison.
Definition: types.hpp:3619
RatingEvaluate evaluate
Definition: types.hpp:3620
int32_t industry_median
Definition: types.hpp:3627
RatingTarget target
Definition: types.hpp:3621
int32_t industry_rank
Definition: types.hpp:3624
std::string industry_name
Definition: types.hpp:3623
int32_t industry_mean
Definition: types.hpp:3626
int32_t industry_total
Definition: types.hpp:3625
int64_t industry_id
Definition: types.hpp:3622
Institutional rating summary with current recommendation and target price.
Definition: types.hpp:3632
std::string updated_at
Definition: types.hpp:3638
std::string target
Definition: types.hpp:3637
std::string change
Definition: types.hpp:3634
std::string ccy_symbol
Definition: types.hpp:3633
RatingSummaryEvaluate evaluate
Definition: types.hpp:3635
InstitutionRecommend recommend
Definition: types.hpp:3636
One historical rating distribution snapshot.
Definition: types.hpp:4136
std::string sell
Definition: types.hpp:4142
std::string over
Definition: types.hpp:4139
std::string under
Definition: types.hpp:4141
std::string hold
Definition: types.hpp:4140
std::string total
Definition: types.hpp:4143
std::string buy
Definition: types.hpp:4138
std::string date
Definition: types.hpp:4137
Institution rating views response.
Definition: types.hpp:4148
std::vector< InstitutionRatingViewItem > elist
Definition: types.hpp:4149
Investment relationship data including parent/subsidiary securities.
Definition: types.hpp:3856
std::string forward_url
Definition: types.hpp:3857
std::vector< InvestSecurity > invest_securities
Definition: types.hpp:3858
One security in an investment relationship (parent/subsidiary holding).
Definition: types.hpp:3842
std::string company_name_en
Definition: types.hpp:3845
std::string company_id
Definition: types.hpp:3843
std::string symbol
Definition: types.hpp:3847
std::string shares_value
Definition: types.hpp:3851
std::string percent_of_shares
Definition: types.hpp:3849
std::string company_name
Definition: types.hpp:3844
std::string currency
Definition: types.hpp:3848
std::string company_name_zhcn
Definition: types.hpp:3846
std::string shares_rank
Definition: types.hpp:3850
One operating indicator from a financial report.
Definition: types.hpp:3863
std::string indicator_value
Definition: types.hpp:3866
std::string indicator_name
Definition: types.hpp:3865
std::string field_name
Definition: types.hpp:3864
std::string yoy
Definition: types.hpp:3867
One operating report item with associated indicators.
Definition: types.hpp:3872
std::vector< OperatingIndicator > indicators
Definition: types.hpp:3883
std::string txt
Definition: types.hpp:3876
std::string financial_currency
Definition: types.hpp:3879
std::string title
Definition: types.hpp:3875
bool latest
Definition: types.hpp:3877
std::string financial_region
Definition: types.hpp:3881
std::string web_url
Definition: types.hpp:3878
std::string financial_name
Definition: types.hpp:3880
std::string financial_report
Definition: types.hpp:3882
std::string id
Definition: types.hpp:3873
std::string report
Definition: types.hpp:3874
List of operating report items.
Definition: types.hpp:3888
std::vector< OperatingItem > list
Definition: types.hpp:3889
One executive or board member.
Definition: types.hpp:3985
std::string title
Definition: types.hpp:3990
std::string id
Definition: types.hpp:3986
std::string name_en
Definition: types.hpp:3989
std::string photo
Definition: types.hpp:3992
std::string name
Definition: types.hpp:3987
std::string name_zhcn
Definition: types.hpp:3988
std::string biography
Definition: types.hpp:3991
std::string wiki_url
Definition: types.hpp:3993
One rating category (e.g. growth, profitability).
Definition: types.hpp:4072
int32_t kind
Definition: types.hpp:4073
std::vector< RatingSubIndicatorGroup > sub_indicators
Definition: types.hpp:4074
Buy/sell/hold evaluation counts from institutional analysts.
Definition: types.hpp:3584
std::string end_date
Definition: types.hpp:3593
int32_t total
Definition: types.hpp:3591
int32_t under
Definition: types.hpp:3588
int32_t buy
Definition: types.hpp:3585
int32_t over
Definition: types.hpp:3586
int32_t hold
Definition: types.hpp:3587
int32_t sell
Definition: types.hpp:3589
std::string start_date
Definition: types.hpp:3592
int32_t no_opinion
Definition: types.hpp:3590
A rating indicator node (parent or leaf).
Definition: types.hpp:4057
std::string letter
Definition: types.hpp:4060
std::string name
Definition: types.hpp:4058
std::string score
Definition: types.hpp:4059
A leaf rating indicator with a raw value.
Definition: types.hpp:4047
std::string value_type
Definition: types.hpp:4050
std::string score
Definition: types.hpp:4051
std::string name
Definition: types.hpp:4048
std::string letter
Definition: types.hpp:4052
std::string value
Definition: types.hpp:4049
A group of sub-indicators under one category indicator.
Definition: types.hpp:4065
RatingIndicator indicator
Definition: types.hpp:4066
std::vector< RatingLeafIndicator > sub_indicators
Definition: types.hpp:4067
Summary evaluation counts for one rating period.
Definition: types.hpp:3608
int32_t under
Definition: types.hpp:3614
int32_t sell
Definition: types.hpp:3612
int32_t strong_buy
Definition: types.hpp:3613
std::string date
Definition: types.hpp:3610
int32_t buy
Definition: types.hpp:3609
int32_t hold
Definition: types.hpp:3611
Analyst price target range.
Definition: types.hpp:3598
std::string prev_close
Definition: types.hpp:3601
std::string start_date
Definition: types.hpp:3602
std::string end_date
Definition: types.hpp:3603
std::string lowest_price
Definition: types.hpp:3600
std::string highest_price
Definition: types.hpp:3599
TTM (trailing twelve months) buyback summary.
Definition: types.hpp:4013
std::string net_buyback_yield_ttm
Definition: types.hpp:4016
std::string currency
Definition: types.hpp:4014
std::string net_buyback_ttm
Definition: types.hpp:4015
One institutional or major shareholder record.
Definition: types.hpp:3783
std::string percent_of_shares
Definition: types.hpp:3787
std::vector< ShareholderStock > stocks
Definition: types.hpp:3790
std::string shares_changed
Definition: types.hpp:3788
std::string shareholder_name
Definition: types.hpp:3785
std::string institution_type
Definition: types.hpp:3786
std::string report_date
Definition: types.hpp:3789
std::string shareholder_id
Definition: types.hpp:3784
Paginated list of shareholders.
Definition: types.hpp:3795
std::string forward_url
Definition: types.hpp:3797
int32_t total
Definition: types.hpp:3798
std::vector< Shareholder > shareholder_list
Definition: types.hpp:3796
A security held by a shareholder.
Definition: types.hpp:3774
std::string market
Definition: types.hpp:3777
std::string chg
Definition: types.hpp:3778
std::string symbol
Definition: types.hpp:3775
std::string code
Definition: types.hpp:3776
A forecast metric in the financial report snapshot.
Definition: types.hpp:4206
std::string est_value
Definition: types.hpp:4210
std::string cmp_desc
Definition: types.hpp:4209
std::string yoy
Definition: types.hpp:4208
std::string value
Definition: types.hpp:4207
A reported metric in the financial report snapshot.
Definition: types.hpp:4215
std::string yoy
Definition: types.hpp:4217
std::string value
Definition: types.hpp:4216
Stock ratings response.
Definition: types.hpp:4079
int32_t multi_score_change
Definition: types.hpp:4085
std::string multi_score
Definition: types.hpp:4083
std::string industry_rank
Definition: types.hpp:4087
std::string multi_letter
Definition: types.hpp:4084
std::string style_txt_name
Definition: types.hpp:4080
std::string industry_median_score
Definition: types.hpp:4090
std::string industry_total
Definition: types.hpp:4088
std::vector< RatingCategory > ratings
Definition: types.hpp:4091
std::string scale_txt_name
Definition: types.hpp:4081
std::string report_period_txt
Definition: types.hpp:4082
std::string industry_name
Definition: types.hpp:4086
std::string industry_mean_score
Definition: types.hpp:4089
One security's valuation comparison item.
Definition: types.hpp:4258
std::string currency
Definition: types.hpp:4261
std::string pb
Definition: types.hpp:4265
std::string market_value
Definition: types.hpp:4262
std::string assets
Definition: types.hpp:4272
std::string eps
Definition: types.hpp:4268
std::string pe
Definition: types.hpp:4264
std::string symbol
Definition: types.hpp:4259
std::string name
Definition: types.hpp:4260
std::vector< ValuationHistoryPoint > history
Definition: types.hpp:4273
std::string ps
Definition: types.hpp:4266
std::string price_close
Definition: types.hpp:4263
std::string dps
Definition: types.hpp:4270
std::string roe
Definition: types.hpp:4267
std::string div_yld
Definition: types.hpp:4271
std::string bps
Definition: types.hpp:4269
Valuation comparison response.
Definition: types.hpp:4278
std::vector< ValuationComparisonItem > list
Definition: types.hpp:4279
Valuation data container.
Definition: types.hpp:3730
ValuationMetricsData metrics
Definition: types.hpp:3731
Distribution statistics for one valuation metric within an industry.
Definition: types.hpp:3965
std::string ranking
Definition: types.hpp:3970
std::string rank_total
Definition: types.hpp:3972
std::string high
Definition: types.hpp:3967
std::string low
Definition: types.hpp:3966
std::string value
Definition: types.hpp:3969
std::string rank_index
Definition: types.hpp:3971
std::string median
Definition: types.hpp:3968
One historical valuation data point.
Definition: types.hpp:4249
std::string ps
Definition: types.hpp:4253
std::string pe
Definition: types.hpp:4251
std::string date
Definition: types.hpp:4250
std::string pb
Definition: types.hpp:4252
Historical valuation response (PE, PB, PS without dividend yield).
Definition: types.hpp:3736
std::optional< ValuationMetricData > pe
Definition: types.hpp:3737
std::optional< ValuationMetricData > ps
Definition: types.hpp:3739
std::optional< ValuationMetricData > pb
Definition: types.hpp:3738
Historical data for one valuation metric (PE, PB, PS, or dividend yield).
Definition: types.hpp:3711
std::vector< ValuationPoint > list
Definition: types.hpp:3716
std::string high
Definition: types.hpp:3713
std::string low
Definition: types.hpp:3714
std::string desc
Definition: types.hpp:3712
std::string median
Definition: types.hpp:3715
All valuation metrics for a security.
Definition: types.hpp:3721
std::optional< ValuationMetricData > dvd_yld
Definition: types.hpp:3725
std::optional< ValuationMetricData > ps
Definition: types.hpp:3724
std::optional< ValuationMetricData > pb
Definition: types.hpp:3723
std::optional< ValuationMetricData > pe
Definition: types.hpp:3722
One data point in a valuation time series.
Definition: types.hpp:3704
int64_t timestamp
Definition: types.hpp:3705
std::string value
Definition: types.hpp:3706
Options for get grid trading order detail request.
Definition: types.hpp:2788
std::optional< int32_t > limit
Page size.
Definition: types.hpp:2794
std::string order_id
Grid master order ID.
Definition: types.hpp:2790
std::optional< std::string > history_id
History cursor for paging through the trigger history.
Definition: types.hpp:2792
Options for query grid trading orders by IDs request.
Definition: types.hpp:2781
std::vector< std::string > order_ids
Grid master order IDs.
Definition: types.hpp:2783
Options for get grid trading orders (list) request.
Definition: types.hpp:2762
std::optional< int32_t > limit
Page size.
Definition: types.hpp:2766
std::optional< std::string > sort_order
Sort order.
Definition: types.hpp:2776
std::optional< std::string > status
Comma-joined status filter (e.g. Performing,Suspended)
Definition: types.hpp:2770
std::optional< int32_t > page
Page number.
Definition: types.hpp:2764
std::optional< Market > market
Market.
Definition: types.hpp:2768
std::optional< std::string > sort_by
Sort field.
Definition: types.hpp:2774
std::optional< std::string > symbol
Security symbol filter (e.g. 700.HK)
Definition: types.hpp:2772
Options for get grid trading trigger history request.
Definition: types.hpp:2799
std::optional< int32_t > page
Page number.
Definition: types.hpp:2803
std::string grid_order_id
Grid master order ID.
Definition: types.hpp:2801
std::optional< int32_t > limit
Page size.
Definition: types.hpp:2805
A price-step (bid-size) rule entry from the symbol-info response.
Definition: types.hpp:3088
std::optional< Decimal > end_proceed
Range end price.
Definition: types.hpp:3092
std::optional< Decimal > str_proceed
Range start price (inclusive)
Definition: types.hpp:3090
std::optional< Decimal > bid_size
Price step within the range.
Definition: types.hpp:3094
Channel / authorization info nested in the symbol-info response.
Definition: types.hpp:3099
bool strategy_granted
Whether the strategy compliance authorization has been granted.
Definition: types.hpp:3101
std::string currency
Trading currency.
Definition: types.hpp:3105
std::vector< std::string > settlement_currency
Supported settlement currencies.
Definition: types.hpp:3107
bool support_rth
Whether the RTH toggle is supported.
Definition: types.hpp:3103
Detail of a grid trading order.
Definition: types.hpp:2950
GridLimitEvent upper_limit_event
Action at the upper bound.
Definition: types.hpp:3006
bool sub_has_more
Whether there are more sub-orders to page.
Definition: types.hpp:3026
std::string grid_status
Grid running status.
Definition: types.hpp:2960
std::optional< Decimal > pullback_spread
Pullback spread.
Definition: types.hpp:2986
std::vector< GridOrderHistory > grid_order_history
Lifecycle history entries.
Definition: types.hpp:3028
std::optional< Decimal > trigger_percent_up
Upward trigger percent.
Definition: types.hpp:2980
std::optional< int64_t > created_at
Created time (unix timestamp)
Definition: types.hpp:3014
std::vector< GridOrderSubOrder > grid_sub_orders
Triggered sub-orders.
Definition: types.hpp:3024
std::string stock_name
Stock name.
Definition: types.hpp:2956
GridLimitEvent lower_limit_event
Action at the lower bound.
Definition: types.hpp:3008
std::string status
Order status.
Definition: types.hpp:2958
std::string sleeping_reason
Sleeping reason, if any.
Definition: types.hpp:2964
std::string order_id
Grid master order ID.
Definition: types.hpp:2952
std::optional< int64_t > expire_time
Expiry time (unix timestamp)
Definition: types.hpp:3020
std::optional< Decimal > current_base_price
Current base price.
Definition: types.hpp:2968
std::optional< Decimal > lower_limit_price
Lower price bound.
Definition: types.hpp:2972
std::optional< Decimal > rebound_spread
Rebound spread.
Definition: types.hpp:2990
std::string grid_order_type_up
Sell-side grid order type (GMO / GLO / GTG)
Definition: types.hpp:3036
std::optional< int64_t > updated_at
Last updated time (unix timestamp)
Definition: types.hpp:3016
std::optional< Decimal > trigger_spread_down
Downward trigger spread.
Definition: types.hpp:2978
std::string gtd
Expiry date (YYYY-MM-DD, GTD)
Definition: types.hpp:3022
std::string settlement_currency
Settlement currency.
Definition: types.hpp:3018
std::optional< Decimal > upper_limit_price
Upper price bound.
Definition: types.hpp:2970
GridTimeInForce time_in_force
Time in force.
Definition: types.hpp:2994
int32_t trigger_buy_depth
Buy-side order-book depth.
Definition: types.hpp:3012
std::optional< Decimal > trigger_sell_quantity
Quantity per sell trigger.
Definition: types.hpp:2998
bool history_has_more
Whether there are more history entries to page.
Definition: types.hpp:3030
std::string suspend_reason
Suspend reason, if any.
Definition: types.hpp:2962
std::optional< Decimal > upper_limit_quantity
Quantity handled at the upper bound.
Definition: types.hpp:3002
int32_t trigger_sell_depth
Sell-side order-book depth.
Definition: types.hpp:3010
std::string symbol
Security symbol (e.g. 700.HK)
Definition: types.hpp:2954
std::optional< Decimal > trigger_spread_up
Upward trigger spread.
Definition: types.hpp:2976
std::optional< Decimal > trigger_percent_down
Downward trigger percent.
Definition: types.hpp:2982
TriggerPriceType trigger_price_type
Trigger price type.
Definition: types.hpp:2974
int32_t rth
Regular trading hours flag.
Definition: types.hpp:3034
bool multiple_trigger
Whether a single grid level may trigger multiple times.
Definition: types.hpp:2992
std::optional< Decimal > rebound_percent
Rebound percent.
Definition: types.hpp:2988
std::optional< Decimal > trigger_quantity
Quantity per trigger.
Definition: types.hpp:2996
std::optional< Decimal > pullback_percent
Pullback percent.
Definition: types.hpp:2984
std::optional< Decimal > lower_limit_quantity
Quantity handled at the lower bound.
Definition: types.hpp:3004
std::optional< Decimal > submitted_base_price
Submitted base price.
Definition: types.hpp:2966
std::string grid_order_type_down
Buy-side grid order type (GMO / GLO / GTG)
Definition: types.hpp:3038
std::optional< Decimal > trigger_buy_quantity
Quantity per buy trigger.
Definition: types.hpp:3000
bool support_shortsell
Whether short selling is allowed.
Definition: types.hpp:3032
A grid order lifecycle-history entry carried in the grid order detail.
Definition: types.hpp:2935
std::optional< int64_t > created_at
Created time (unix timestamp)
Definition: types.hpp:2939
std::string reason
Additional reason detail, if any.
Definition: types.hpp:2945
std::string history_id
History entry ID (paging cursor)
Definition: types.hpp:2937
std::string status
Status at this point.
Definition: types.hpp:2941
std::string suspend_reason
Suspend reason, if any.
Definition: types.hpp:2943
A grid trading order (element of the list / by-ids responses).
Definition: types.hpp:2817
std::optional< Decimal > current_base_price
Current base price.
Definition: types.hpp:2833
int32_t trigger_times
Number of times the grid has triggered.
Definition: types.hpp:2885
std::string symbol
Security symbol (e.g. 700.HK)
Definition: types.hpp:2821
std::string status
Order status.
Definition: types.hpp:2827
std::optional< Decimal > total_sell_quantity
Accumulated sold quantity.
Definition: types.hpp:2889
std::string settlement_currency
Settlement currency.
Definition: types.hpp:2893
std::optional< Decimal > submitted_base_price
Submitted base price.
Definition: types.hpp:2831
std::string order_id
Grid master order ID.
Definition: types.hpp:2819
GridLimitEvent upper_limit_event
Action at the upper bound.
Definition: types.hpp:2879
std::optional< Decimal > lower_limit_quantity
Quantity handled at the lower bound.
Definition: types.hpp:2877
std::optional< Decimal > rebound_percent
Rebound percent.
Definition: types.hpp:2857
bool support_shortsell
Whether short selling is allowed.
Definition: types.hpp:2903
std::optional< Decimal > lower_limit_price
Lower price bound.
Definition: types.hpp:2841
GridLimitEvent lower_limit_event
Action at the lower bound.
Definition: types.hpp:2881
std::optional< Decimal > post_trigger_base_price
Base price after the last trigger.
Definition: types.hpp:2837
std::optional< Decimal > pullback_percent
Pullback percent.
Definition: types.hpp:2853
int32_t rth
Regular trading hours flag.
Definition: types.hpp:2901
std::optional< Decimal > trigger_percent_down
Downward trigger percent.
Definition: types.hpp:2851
std::string grid_order_type_up
Sell-side grid order type (GMO / GLO / GTG)
Definition: types.hpp:2905
std::optional< Decimal > rebound_spread
Rebound spread.
Definition: types.hpp:2859
std::string trigger_buy_order_type
Buy-side execution order type (e.g. MO)
Definition: types.hpp:2863
std::optional< Decimal > trigger_quantity
Quantity per trigger.
Definition: types.hpp:2869
std::optional< Decimal > upper_limit_quantity
Quantity handled at the upper bound.
Definition: types.hpp:2875
std::string grid_order_type_down
Buy-side grid order type (GMO / GLO / GTG)
Definition: types.hpp:2907
std::optional< Decimal > pre_trigger_base_price
Base price before the last trigger.
Definition: types.hpp:2835
std::optional< Decimal > trigger_buy_quantity
Quantity per buy trigger.
Definition: types.hpp:2873
std::optional< Decimal > trigger_spread_up
Upward trigger spread.
Definition: types.hpp:2845
std::optional< Decimal > trigger_spread_down
Downward trigger spread.
Definition: types.hpp:2847
std::optional< Decimal > total_profit_balance
Accumulated profit balance.
Definition: types.hpp:2891
std::string stock_name
Stock name.
Definition: types.hpp:2823
bool multiple_trigger
Whether a single grid level may trigger multiple times.
Definition: types.hpp:2883
int32_t trigger_buy_depth
Buy-side order-book depth.
Definition: types.hpp:2867
std::string market
Market.
Definition: types.hpp:2825
std::string gtd
Expiry date (YYYY-MM-DD, GTD)
Definition: types.hpp:2897
std::optional< Decimal > trigger_percent_up
Upward trigger percent.
Definition: types.hpp:2849
GridTimeInForce time_in_force
Time in force.
Definition: types.hpp:2895
std::optional< Decimal > total_buy_quantity
Accumulated bought quantity.
Definition: types.hpp:2887
std::optional< Decimal > pullback_spread
Pullback spread.
Definition: types.hpp:2855
std::string grid_status
Grid running status.
Definition: types.hpp:2829
std::string trigger_sell_order_type
Sell-side execution order type (e.g. MO)
Definition: types.hpp:2861
std::optional< int64_t > created_at
Created time (unix timestamp)
Definition: types.hpp:2899
TriggerPriceType trigger_price_type
Trigger price type.
Definition: types.hpp:2843
std::optional< Decimal > trigger_sell_quantity
Quantity per sell trigger.
Definition: types.hpp:2871
std::optional< Decimal > upper_limit_price
Upper price bound.
Definition: types.hpp:2839
int32_t trigger_sell_depth
Sell-side order-book depth.
Definition: types.hpp:2865
A triggered sub-order carried in the grid order detail.
Definition: types.hpp:2912
std::string id
Sub-order ID.
Definition: types.hpp:2914
std::optional< Decimal > executed_qty
Executed quantity.
Definition: types.hpp:2922
std::optional< Decimal > price
Order price.
Definition: types.hpp:2916
std::optional< int64_t > submitted_at
Submitted time (unix timestamp)
Definition: types.hpp:2928
std::optional< Decimal > quantity
Order quantity.
Definition: types.hpp:2920
std::string order_type
Order type.
Definition: types.hpp:2918
std::string status
Order status.
Definition: types.hpp:2926
int32_t rth
Regular trading hours flag.
Definition: types.hpp:2930
int32_t action
Buy / sell direction.
Definition: types.hpp:2924
Response for get grid trading orders (list) request.
Definition: types.hpp:3131
std::vector< GridOrder > grid_order
Grid orders.
Definition: types.hpp:3133
bool has_more
Whether there are more pages.
Definition: types.hpp:3135
Security (symbol) info used to build a grid order.
Definition: types.hpp:3112
std::vector< GridBidSize > bid_sizes
Price-step (bid-size) rule table.
Definition: types.hpp:3124
std::optional< Decimal > lot_size
Board lot size.
Definition: types.hpp:3118
std::optional< Decimal > sell_lot_size
Sell-side board lot size.
Definition: types.hpp:3122
GridChannelInfo channel_info
Channel / authorization info (strategy grant, RTH, currencies)
Definition: types.hpp:3126
std::optional< Decimal > last_done
Latest quote price.
Definition: types.hpp:3116
std::string name
Security name.
Definition: types.hpp:3114
std::optional< Decimal > buy_lot_size
Buy-side board lot size.
Definition: types.hpp:3120
Definition: types.hpp:2607
std::optional< GridLimitEvent > lower_limit_event
Definition: types.hpp:2639
std::optional< bool > support_shortsell
Whether short selling is allowed.
Definition: types.hpp:2647
GridTradeRule & with_depths(int32_t sell, int32_t buy)
Set the sell / buy order-book depths (0 = use the order type).
Definition: types.hpp:2696
GridTradeRule & with_expire_time(int64_t unix_seconds)
Set the expiry time (unix seconds), used with a GTD time-in-force.
Definition: types.hpp:2733
std::optional< Decimal > submitted_base_price
Base price the grid is anchored to.
Definition: types.hpp:2609
std::optional< std::string > grid_order_type_down
Buy-side order type when depth is 0 (GMO / GLO / GTG)
Definition: types.hpp:2653
std::optional< int32_t > trigger_sell_depth
Sell-side order-book depth (-5..5, 0 = use grid_order_type_up)
Definition: types.hpp:2641
GridTradeRule & with_order_types(std::string up, std::string down)
Set the sell / buy order types (GMO / GLO / GTG).
Definition: types.hpp:2704
std::optional< Decimal > upper_limit_price
Upper price bound.
Definition: types.hpp:2611
std::optional< Decimal > trigger_spread_down
Downward trigger spread (absolute)
Definition: types.hpp:2619
std::optional< GridTimeInForce > time_in_force
Time in force (Day / GoodTilCanceled / GoodTilDate)
Definition: types.hpp:2627
std::optional< bool > multiple_trigger
Whether a single grid level may trigger multiple times.
Definition: types.hpp:2625
std::optional< Decimal > lower_limit_price
Lower price bound.
Definition: types.hpp:2613
std::optional< int32_t > trigger_buy_depth
Buy-side order-book depth (-5..5, 0 = use grid_order_type_down)
Definition: types.hpp:2643
std::optional< GridLimitEvent > upper_limit_event
Definition: types.hpp:2636
std::optional< int64_t > expire_time
Expiry time (unix seconds), used with GTD.
Definition: types.hpp:2633
static GridTradeRule create(Decimal base_price, Decimal upper_price, Decimal lower_price, GridTrigger trigger, Decimal quantity, Decimal upper_quantity, Decimal lower_quantity, GridTimeInForce time_in_force)
Definition: types.hpp:2658
std::optional< std::string > grid_order_type_up
Sell-side order type when depth is 0 (GMO / GLO / GTG)
Definition: types.hpp:2651
GridTradeRule & with_multiple_trigger(bool value)
Allow a single grid level to trigger multiple times.
Definition: types.hpp:2712
std::optional< TriggerPriceType > trigger_price_type
Trigger price type (only Spread / Percent allowed)
Definition: types.hpp:2615
std::optional< Decimal > lower_limit_quantity
Quantity handled when the lower bound is reached.
Definition: types.hpp:2631
GridTradeRule & with_support_shortsell(bool value)
Allow short selling.
Definition: types.hpp:2719
std::optional< Decimal > trigger_quantity
Quantity per trigger.
Definition: types.hpp:2645
std::optional< Decimal > upper_limit_quantity
Quantity handled when the upper bound is reached.
Definition: types.hpp:2629
GridTradeRule & with_limit_events(GridLimitEvent upper, GridLimitEvent lower)
Set the actions taken at the upper / lower bounds.
Definition: types.hpp:2688
std::optional< Decimal > trigger_spread_up
Upward trigger spread (absolute)
Definition: types.hpp:2617
GridTradeRule & with_rth(int32_t value)
Set the regular-trading-hours flag (0 / 1 / 2).
Definition: types.hpp:2726
std::optional< Decimal > trigger_percent_down
Downward trigger percent.
Definition: types.hpp:2623
std::optional< Decimal > trigger_percent_up
Upward trigger percent.
Definition: types.hpp:2621
std::optional< int32_t > rth
Regular trading hours flag (0 / 1 / 2)
Definition: types.hpp:2649
Response for get grid trading trigger history request.
Definition: types.hpp:3140
std::vector< TriggerOrder > trigger_orders
Trigger history entries.
Definition: types.hpp:3142
bool has_more
Whether there are more pages.
Definition: types.hpp:3144
Definition: types.hpp:2573
Decimal up
Upward trigger threshold.
Definition: types.hpp:2585
Kind
Threshold interpretation kind.
Definition: types.hpp:2576
@ Spread
Trigger by absolute price spread.
Decimal down
Downward trigger threshold.
Definition: types.hpp:2587
static GridTrigger spread(Decimal up, Decimal down)
Trigger by absolute price spread (up, down).
Definition: types.hpp:2595
Kind kind
Which interpretation the up / down values use.
Definition: types.hpp:2583
static GridTrigger percent(Decimal up, Decimal down)
Trigger by percent (up, down).
Definition: types.hpp:2590
Options for replace grid trading order request.
Definition: types.hpp:2753
GridTradeRule grid_trading_rule
Grid trading rule.
Definition: types.hpp:2757
std::string order_id
Grid master order ID.
Definition: types.hpp:2755
Options for submit grid trading order request.
Definition: types.hpp:2742
GridTradeRule grid_trading_rule
Grid trading rule.
Definition: types.hpp:2748
std::string symbol
Security symbol (e.g. 700.HK)
Definition: types.hpp:2744
std::string settlement_currency
Settlement currency.
Definition: types.hpp:2746
Response for submit grid trading order request.
Definition: types.hpp:2810
std::string order_id
Grid master order id.
Definition: types.hpp:2812
A grid trigger-history entry (one triggered order).
Definition: types.hpp:3043
GridTimeInForce time_in_force
Time in force.
Definition: types.hpp:3077
std::string status
Order status.
Definition: types.hpp:3047
std::string msg
Rejection reason, if any.
Definition: types.hpp:3069
std::optional< Decimal > executed_qty
Executed total quantity.
Definition: types.hpp:3059
std::string currency
Settlement currency.
Definition: types.hpp:3071
int32_t trigger_status
Conditional trigger status.
Definition: types.hpp:3083
std::optional< Decimal > executed_price
Executed average price.
Definition: types.hpp:3057
std::optional< Decimal > quantity
Order quantity.
Definition: types.hpp:3055
std::optional< int64_t > trigger_at
Trigger time (unix timestamp)
Definition: types.hpp:3081
std::optional< int64_t > submitted_at
Submitted time (unix timestamp)
Definition: types.hpp:3061
int32_t action
Buy / sell direction.
Definition: types.hpp:3063
std::optional< Decimal > last_done
Latest quote price.
Definition: types.hpp:3073
std::string id
Triggered order ID.
Definition: types.hpp:3045
std::string name
Stock name.
Definition: types.hpp:3049
std::optional< int64_t > updated_at
Last updated time (unix timestamp)
Definition: types.hpp:3075
std::string order_type
Order type.
Definition: types.hpp:3065
std::optional< Decimal > price
Order price.
Definition: types.hpp:3053
std::string symbol
Security symbol (e.g. 700.HK)
Definition: types.hpp:3051
std::string gtd
Expiry date (YYYY-MM-DD, GTD)
Definition: types.hpp:3079
std::optional< Decimal > trigger_price
Trigger price.
Definition: types.hpp:3067
Intraday A/H premium kline series.
Definition: types.hpp:3380
std::vector< AhPremiumKline > klines
Definition: types.hpp:3381
A/H premium candlestick data point.
Definition: types.hpp:3361
std::string currency_rate
Definition: types.hpp:3366
std::string hprice
Definition: types.hpp:3364
std::string hpreclose
Definition: types.hpp:3365
int64_t timestamp
Definition: types.hpp:3369
std::string price_spread
Definition: types.hpp:3368
std::string ahpremium_rate
Definition: types.hpp:3367
std::string aprice
Definition: types.hpp:3362
std::string apreclose
Definition: types.hpp:3363
Historical A/H premium kline series.
Definition: types.hpp:3374
std::vector< AhPremiumKline > klines
Definition: types.hpp:3375
A single anomaly (unusual market movement) alert item.
Definition: types.hpp:3503
std::string alert_name
Definition: types.hpp:3506
int64_t alert_time
Definition: types.hpp:3507
std::string symbol
Definition: types.hpp:3504
std::string name
Definition: types.hpp:3505
int32_t emotion
Definition: types.hpp:3509
std::vector< std::string > change_values
Definition: types.hpp:3508
Response containing anomaly alert items.
Definition: types.hpp:3514
std::vector< AnomalyItem > changes
Definition: types.hpp:3516
bool all_off
Definition: types.hpp:3515
Holding change figures over multiple periods for a broker.
Definition: types.hpp:3319
std::string chg_5
Definition: types.hpp:3322
std::string chg_60
Definition: types.hpp:3324
std::string chg_1
Definition: types.hpp:3321
std::string chg_20
Definition: types.hpp:3323
std::string value
Definition: types.hpp:3320
Historical daily broker holding series.
Definition: types.hpp:3355
std::vector< BrokerHoldingDailyItem > list
Definition: types.hpp:3356
One day's broker holding snapshot.
Definition: types.hpp:3346
std::string chg
Definition: types.hpp:3350
std::string holding
Definition: types.hpp:3348
std::string ratio
Definition: types.hpp:3349
std::string date
Definition: types.hpp:3347
Full broker holding detail with historical change data.
Definition: types.hpp:3339
std::vector< BrokerHoldingDetailItem > list
Definition: types.hpp:3340
std::string updated_at
Definition: types.hpp:3341
Detailed holding entry for one broker including ratio and share changes.
Definition: types.hpp:3329
std::string name
Definition: types.hpp:3330
BrokerHoldingChanges ratio
Definition: types.hpp:3332
bool strong
Definition: types.hpp:3334
BrokerHoldingChanges shares
Definition: types.hpp:3333
std::string parti_number
Definition: types.hpp:3331
One broker's holding entry in a top-holders list.
Definition: types.hpp:3302
bool strong
Definition: types.hpp:3306
std::string name
Definition: types.hpp:3303
std::string parti_number
Definition: types.hpp:3304
std::string chg
Definition: types.hpp:3305
Top broker holders (buy and sell sides).
Definition: types.hpp:3311
std::vector< BrokerHoldingEntry > sell
Definition: types.hpp:3313
std::string updated_at
Definition: types.hpp:3314
std::vector< BrokerHoldingEntry > buy
Definition: types.hpp:3312
One constituent stock of an index.
Definition: types.hpp:3521
bool delay
Definition: types.hpp:3534
std::string last_done
Definition: types.hpp:3524
std::vector< std::string > tags
Definition: types.hpp:3530
std::string intro
Definition: types.hpp:3531
std::string prev_close
Definition: types.hpp:3525
std::string amount
Definition: types.hpp:3528
std::string circulating_shares
Definition: types.hpp:3533
int32_t trade_status
Definition: types.hpp:3536
std::string symbol
Definition: types.hpp:3522
std::string name
Definition: types.hpp:3523
std::string market
Definition: types.hpp:3532
std::string inflow
Definition: types.hpp:3526
std::string total_shares
Definition: types.hpp:3529
std::string balance
Definition: types.hpp:3527
std::string chg
Definition: types.hpp:3535
Index constituent stocks with rise/fall/flat counts.
Definition: types.hpp:3541
std::vector< ConstituentStock > stocks
Definition: types.hpp:3545
int32_t fall_num
Definition: types.hpp:3542
int32_t rise_num
Definition: types.hpp:3544
int32_t flat_num
Definition: types.hpp:3543
Response containing trading status for all markets.
Definition: types.hpp:3296
std::vector< MarketTimeItem > market_time
Definition: types.hpp:3297
Current trading status and timestamps for one market.
Definition: types.hpp:3284
int32_t delay_trade_status
Definition: types.hpp:3288
int32_t delay_sub_status
Definition: types.hpp:3291
longbridge::Market market
Definition: types.hpp:3285
int32_t sub_status
Definition: types.hpp:3290
std::string delay_timestamp
Definition: types.hpp:3289
int32_t trade_status
Definition: types.hpp:3286
std::string timestamp
Definition: types.hpp:3287
Response for rank_categories.
Definition: types.hpp:3497
std::vector< RankCategory > categories
Definition: types.hpp:3498
A top-level rank category grouping sub-categories.
Definition: types.hpp:3487
std::string name
Display name (e.g. "热度排行")
Definition: types.hpp:3491
std::string key
Top-level key (e.g. "hot")
Definition: types.hpp:3489
std::vector< RankSubCategory > sub_categories
Definition: types.hpp:3492
One ranked security item.
Definition: types.hpp:3448
std::string volume_rate
Definition: types.hpp:3463
std::string change
Definition: types.hpp:3454
std::string pb_ttm
Definition: types.hpp:3464
std::string pre_post_chg
Definition: types.hpp:3459
std::string turnover_rate
Definition: types.hpp:3462
std::string code
Definition: types.hpp:3450
std::string last_done
Definition: types.hpp:3452
std::string pre_post_price
Definition: types.hpp:3458
std::string name
Definition: types.hpp:3451
std::string industry
Definition: types.hpp:3457
std::string chg
Definition: types.hpp:3453
std::string market_cap
Definition: types.hpp:3456
std::string amplitude
Definition: types.hpp:3460
std::string symbol
Definition: types.hpp:3449
std::string inflow
Definition: types.hpp:3455
std::string five_day_chg
Definition: types.hpp:3461
Response for rank_list.
Definition: types.hpp:3469
bool bmp
Definition: types.hpp:3470
std::vector< RankListItem > lists
Definition: types.hpp:3471
One leaf rank sub-category.
Definition: types.hpp:3476
std::string key
Sub-category key (e.g. "hot_all-us"). Pass to rank_list.
Definition: types.hpp:3478
std::string market
Market code (e.g. "US", "HK")
Definition: types.hpp:3482
std::string name
Display name.
Definition: types.hpp:3480
One top-movers event entry.
Definition: types.hpp:3430
std::string post
Definition: types.hpp:3435
TopMoversStock stock
Definition: types.hpp:3434
int64_t alert_type
Definition: types.hpp:3433
std::string alert_reason
Definition: types.hpp:3432
std::string timestamp
Definition: types.hpp:3431
Response for top_movers.
Definition: types.hpp:3440
std::string next_params
Pagination cursor (empty string means no more pages)
Definition: types.hpp:3443
std::vector< TopMoversEvent > events
Definition: types.hpp:3441
Stock information within a top-movers event.
Definition: types.hpp:3416
std::string symbol
Definition: types.hpp:3417
std::vector< std::string > labels
Definition: types.hpp:3425
std::string name
Definition: types.hpp:3419
std::string code
Definition: types.hpp:3418
std::string change
Definition: types.hpp:3421
std::string full_name
Definition: types.hpp:3420
std::string last_done
Definition: types.hpp:3422
std::string market
Definition: types.hpp:3423
std::string logo
Definition: types.hpp:3424
Trade volume and amount aggregated at one price level.
Definition: types.hpp:3386
std::string buy_amount
Definition: types.hpp:3387
std::string price
Definition: types.hpp:3389
std::string sell_amount
Definition: types.hpp:3390
std::string neutral_amount
Definition: types.hpp:3388
Aggregate buy/sell/neutral trade statistics for a security.
Definition: types.hpp:3395
std::string total_amount
Definition: types.hpp:3402
std::string timestamp
Definition: types.hpp:3401
std::string trades_count
Definition: types.hpp:3404
std::string preclose
Definition: types.hpp:3399
std::string neutral
Definition: types.hpp:3398
std::string buy
Definition: types.hpp:3397
std::string sell
Definition: types.hpp:3400
std::vector< std::string > trade_date
Definition: types.hpp:3403
std::string avgprice
Definition: types.hpp:3396
Response for trade statistics including per-price-level breakdown.
Definition: types.hpp:3409
std::vector< TradePriceLevel > trades
Definition: types.hpp:3411
TradeStatistics statistics
Definition: types.hpp:3410
Brokers.
Definition: types.hpp:261
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:265
int32_t position
Position.
Definition: types.hpp:263
Candlestick.
Definition: types.hpp:589
int64_t timestamp
Timestamp.
Definition: types.hpp:603
TradeSession trade_session
Trade session.
Definition: types.hpp:605
Decimal turnover
Turnover.
Definition: types.hpp:601
Decimal close
Close price.
Definition: types.hpp:591
Decimal high
High price.
Definition: types.hpp:597
Decimal open
Open price.
Definition: types.hpp:593
int64_t volume
Volume.
Definition: types.hpp:599
Decimal low
Low price.
Definition: types.hpp:595
Capital distribution.
Definition: types.hpp:809
Decimal large
Large order.
Definition: types.hpp:811
Decimal small
Small order.
Definition: types.hpp:815
Decimal medium
Medium order.
Definition: types.hpp:813
Capital distribution response.
Definition: types.hpp:820
int64_t timestamp
Time.
Definition: types.hpp:822
CapitalDistribution capital_in
Inflow capital data.
Definition: types.hpp:824
CapitalDistribution capital_out
Outflow capital data.
Definition: types.hpp:826
Capital flow line.
Definition: types.hpp:800
Decimal inflow
Inflow capital data.
Definition: types.hpp:802
int64_t timestamp
Time.
Definition: types.hpp:804
An request for create watchlist group.
Definition: types.hpp:868
std::string name
Group name.
Definition: types.hpp:870
std::vector< std::string > securities
Securities.
Definition: types.hpp:872
Definition: types.hpp:237
std::optional< Decimal > price
Price.
Definition: types.hpp:241
int32_t position
Position.
Definition: types.hpp:239
int64_t volume
Volume.
Definition: types.hpp:243
int64_t order_num
Number of orders.
Definition: types.hpp:245
Derivative type.
Definition: types.hpp:133
uint8_t value
Definition: types.hpp:134
Filing item.
Definition: types.hpp:1312
std::string description
Description.
Definition: types.hpp:1318
std::string file_name
File name.
Definition: types.hpp:1320
std::string id
Filing ID.
Definition: types.hpp:1314
std::string title
Title.
Definition: types.hpp:1316
std::vector< std::string > file_urls
File URLs.
Definition: types.hpp:1322
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:1324
History market temperature response.
Definition: types.hpp:1303
Granularity granularity
Granularity.
Definition: types.hpp:1305
std::vector< MarketTemperature > records
Records.
Definition: types.hpp:1307
Intraday line.
Definition: types.hpp:718
Decimal avg_price
Definition: types.hpp:723
Decimal turnover
Definition: types.hpp:722
int64_t timestamp
Definition: types.hpp:720
Decimal price
Definition: types.hpp:719
int64_t volume
Definition: types.hpp:721
Issuer info.
Definition: types.hpp:759
int32_t issuer_id
Issuer ID.
Definition: types.hpp:761
std::string name_en
Issuer name (en)
Definition: types.hpp:765
std::string name_cn
Issuer name (zh-CN)
Definition: types.hpp:763
std::string name_hk
Issuer name (zh-HK)
Definition: types.hpp:767
Market temperature.
Definition: types.hpp:1275
int32_t temperature
Temperature value.
Definition: types.hpp:1277
int32_t valuation
Market valuation.
Definition: types.hpp:1281
std::string description
Temperature description.
Definition: types.hpp:1279
int32_t sentiment
Market sentiment.
Definition: types.hpp:1283
int64_t timestamp
Time.
Definition: types.hpp:1285
Market trading days.
Definition: types.hpp:791
std::vector< Date > half_trading_days
Half trading days.
Definition: types.hpp:795
std::vector< Date > trading_days
Trading days.
Definition: types.hpp:793
Market trading session.
Definition: types.hpp:782
std::vector< TradingSessionInfo > trade_session
Trading session.
Definition: types.hpp:786
Market market
Market.
Definition: types.hpp:784
Decimal strike_price
Strike price.
Definition: types.hpp:744
int32_t days_to_expiry
Definition: types.hpp:754
std::string symbol
Option contract code, in ticker.region format.
Definition: types.hpp:740
Date expiry_date
Expiry date, in US Eastern time.
Definition: types.hpp:742
OptionDirection direction
Contract direction.
Definition: types.hpp:746
OptionStandardAttr standard_attr
Definition: types.hpp:751
OptionExpiryCycleType option_type
Special expiration cycle of the contract.
Definition: types.hpp:748
Quote of option.
Definition: types.hpp:514
Decimal prev_close
Yesterday's close.
Definition: types.hpp:519
TradeStatus trade_status
Security trading status.
Definition: types.hpp:533
OptionDirection direction
Option direction.
Definition: types.hpp:549
int64_t open_interest
Number of open positions.
Definition: types.hpp:537
int64_t timestamp
Time of latest price.
Definition: types.hpp:527
Decimal contract_size
Contract size.
Definition: types.hpp:547
Decimal contract_multiplier
Contract multiplier.
Definition: types.hpp:543
Decimal turnover
Turnover.
Definition: types.hpp:531
Decimal strike_price
Strike price.
Definition: types.hpp:541
OptionType contract_type
Option type.
Definition: types.hpp:545
Date expiry_date
Exprity date.
Definition: types.hpp:539
int64_t volume
Volume.
Definition: types.hpp:529
Decimal low
Low.
Definition: types.hpp:525
Decimal last_done
Latest price.
Definition: types.hpp:517
Decimal historical_volatility
Underlying security historical volatility of the option.
Definition: types.hpp:551
Decimal high
High.
Definition: types.hpp:523
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:535
std::string symbol
Security code.
Definition: types.hpp:515
Decimal open
Open.
Definition: types.hpp:521
std::string underlying_symbol
Underlying security symbol of the option.
Definition: types.hpp:553
Definition: types.hpp:1407
std::string symbol
Definition: types.hpp:1408
std::vector< OptionVolumeDailyStat > stats
Definition: types.hpp:1409
int64_t total_open_interest
Definition: types.hpp:1401
std::string symbol
Definition: types.hpp:1394
int64_t put_open_interest
Definition: types.hpp:1399
double pc_oi
Definition: types.hpp:1403
int64_t put_volume
Definition: types.hpp:1397
double pc_vol
Definition: types.hpp:1402
Date date
Definition: types.hpp:1395
int64_t call_volume
Definition: types.hpp:1396
int64_t call_open_interest
Definition: types.hpp:1398
int64_t total_volume
Definition: types.hpp:1400
Definition: types.hpp:1386
std::string symbol
Definition: types.hpp:1387
int64_t call_volume
Definition: types.hpp:1388
int64_t put_volume
Definition: types.hpp:1389
Definition: types.hpp:705
std::string name_hk
Participant name (zh-HK)
Definition: types.hpp:713
std::string name_en
Participant name (en)
Definition: types.hpp:711
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:707
std::string name_cn
Participant name (zh-CN)
Definition: types.hpp:709
Quote of US pre/post market.
Definition: types.hpp:417
int64_t timestamp
Time of latest price.
Definition: types.hpp:421
Decimal low
Low.
Definition: types.hpp:429
Decimal turnover
Turnover.
Definition: types.hpp:425
Decimal high
High.
Definition: types.hpp:427
int64_t volume
Volume.
Definition: types.hpp:423
Decimal last_done
Latest price.
Definition: types.hpp:419
Decimal prev_close
Close of the last trade session.
Definition: types.hpp:431
Brokers message.
Definition: types.hpp:270
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:276
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:274
std::string symbol
Security code.
Definition: types.hpp:272
Candlestick updated message.
Definition: types.hpp:610
Period period
Period type.
Definition: types.hpp:614
bool is_confirmed
Is confirmed.
Definition: types.hpp:618
std::string symbol
Security code.
Definition: types.hpp:612
Candlestick candlestick
Candlestick.
Definition: types.hpp:616
Depth message.
Definition: types.hpp:250
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:254
std::string symbol
Security code.
Definition: types.hpp:252
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:256
Quote message.
Definition: types.hpp:209
Decimal high
High.
Definition: types.hpp:217
TradeStatus trade_status
Security trading status.
Definition: types.hpp:227
int64_t timestamp
Time of latest price.
Definition: types.hpp:221
Decimal last_done
Latest price.
Definition: types.hpp:213
Decimal turnover
Turnover.
Definition: types.hpp:225
int64_t current_volume
Increase volume between pushes.
Definition: types.hpp:231
int64_t volume
Volume.
Definition: types.hpp:223
Decimal urrent_turnover
Increase turnover between pushes.
Definition: types.hpp:233
TradeSession trade_session
Trade session.
Definition: types.hpp:229
Decimal low
Low.
Definition: types.hpp:219
Decimal open
Open.
Definition: types.hpp:215
std::string symbol
Security code.
Definition: types.hpp:211
Trades message.
Definition: types.hpp:580
std::string symbol
Security code.
Definition: types.hpp:582
std::vector< Trade > trades
Trades data.
Definition: types.hpp:584
Quote package detail.
Definition: types.hpp:1251
int64_t start_at
Start at.
Definition: types.hpp:1259
std::string description
Description.
Definition: types.hpp:1257
std::string key
Key.
Definition: types.hpp:1253
int64_t end_at
End at.
Definition: types.hpp:1261
std::string name
Name.
Definition: types.hpp:1255
Real-time quote.
Definition: types.hpp:890
Decimal high
High.
Definition: types.hpp:898
Decimal open
Open.
Definition: types.hpp:896
std::string symbol
Security code.
Definition: types.hpp:892
Decimal turnover
Turnover.
Definition: types.hpp:906
int64_t timestamp
Time of latest price.
Definition: types.hpp:902
int64_t volume
Volume.
Definition: types.hpp:904
Decimal last_done
Latest price.
Definition: types.hpp:894
TradeStatus trade_status
Security trading status.
Definition: types.hpp:908
Decimal low
Low.
Definition: types.hpp:900
Security brokers.
Definition: types.hpp:697
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:701
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:699
Security calc index response.
Definition: types.hpp:998
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1068
std::optional< Decimal > change_rate
Change ratio.
Definition: types.hpp:1006
std::optional< Decimal > lower_strike_price
Lower bound price.
Definition: types.hpp:1044
std::optional< Date > expiry_date
Expiry date.
Definition: types.hpp:1038
std::optional< Decimal > theta
Definition: types.hpp:1080
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1066
std::optional< Decimal > leverage_ratio
Leverage ratio.
Definition: types.hpp:1064
std::optional< Decimal > five_day_change_rate
Five days change ratio.
Definition: types.hpp:1030
std::optional< int64_t > open_interest
Open interest.
Definition: types.hpp:1070
std::optional< Decimal > ten_day_change_rate
Ten days change ratio.
Definition: types.hpp:1032
std::optional< Decimal > volume_ratio
Volume ratio.
Definition: types.hpp:1022
std::string symbol
Security code.
Definition: types.hpp:1000
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1058
std::optional< Decimal > turnover
Turnover.
Definition: types.hpp:1010
std::optional< Decimal > warrant_delta
Warrant delta.
Definition: types.hpp:1056
std::optional< Decimal > ytd_change_rate
Year-to-date change ratio.
Definition: types.hpp:1012
std::optional< int64_t > volume
Volume.
Definition: types.hpp:1008
std::optional< Decimal > capital_flow
Capital flow.
Definition: types.hpp:1018
std::optional< int64_t > outstanding_qty
Outstanding quantity.
Definition: types.hpp:1046
std::optional< Decimal > pe_ttm_ratio
PE (TTM)
Definition: types.hpp:1024
std::optional< Decimal > last_done
Latest price.
Definition: types.hpp:1002
std::optional< Decimal > delta
Definition: types.hpp:1073
std::optional< Decimal > vega
Definition: types.hpp:1084
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1052
std::optional< Decimal > outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1048
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:1040
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1054
std::optional< Decimal > half_year_change_rate
Half year change ratio.
Definition: types.hpp:1034
std::optional< Decimal > amplitude
Amplitude.
Definition: types.hpp:1020
std::optional< Decimal > premium
Premium.
Definition: types.hpp:1050
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1062
std::optional< Decimal > turnover_rate
Turnover rate.
Definition: types.hpp:1014
std::optional< Decimal > upper_strike_price
Upper bound price.
Definition: types.hpp:1042
std::optional< Decimal > rho
Definition: types.hpp:1088
std::optional< Decimal > dividend_ratio_ttm
Dividend ratio (TTM)
Definition: types.hpp:1028
std::optional< Decimal > gamma
Definition: types.hpp:1076
std::optional< Decimal > change_value
Change value.
Definition: types.hpp:1004
std::optional< Decimal > total_market_value
Total market value.
Definition: types.hpp:1016
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1060
std::optional< Decimal > five_minutes_change_rate
Five minutes change ratio.
Definition: types.hpp:1036
std::optional< Decimal > pb_ratio
PB.
Definition: types.hpp:1026
Security depth.
Definition: types.hpp:688
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:690
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:692
Security.
Definition: types.hpp:340
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:348
std::string symbol
Security code.
Definition: types.hpp:342
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:344
std::string name_en
Security name (en)
Definition: types.hpp:346
Quote of securitity.
Definition: types.hpp:436
Decimal last_done
Latest price.
Definition: types.hpp:440
Decimal turnover
Turnover.
Definition: types.hpp:454
Decimal prev_close
Yesterday's close.
Definition: types.hpp:442
std::string symbol
Security code.
Definition: types.hpp:438
TradeStatus trade_status
Security trading status.
Definition: types.hpp:456
Decimal high
High.
Definition: types.hpp:446
std::optional< PrePostQuote > post_market_quote
Quote of US post market.
Definition: types.hpp:460
std::optional< PrePostQuote > pre_market_quote
Quote of US pre market.
Definition: types.hpp:458
int64_t volume
Volume.
Definition: types.hpp:452
std::optional< PrePostQuote > overnight_quote
Quote of US overnight market.
Definition: types.hpp:462
int64_t timestamp
Time of latest price.
Definition: types.hpp:450
Decimal open
Open.
Definition: types.hpp:444
Decimal low
Low.
Definition: types.hpp:448
The basic information of securities.
Definition: types.hpp:353
std::string currency
Trading currency.
Definition: types.hpp:365
int64_t hk_shares
HK shares (only HK stocks)
Definition: types.hpp:373
std::string symbol
Security code.
Definition: types.hpp:355
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:357
int64_t total_shares
Total shares.
Definition: types.hpp:369
Decimal eps
Earnings per share.
Definition: types.hpp:375
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:361
Decimal eps_ttm
Earnings per share (TTM)
Definition: types.hpp:377
Decimal dividend_yield
Dividend (per share), not the dividend yield (ratio).
Definition: types.hpp:381
SecurityBoard board
Board.
Definition: types.hpp:385
std::string exchange
Exchange which the security belongs to.
Definition: types.hpp:363
int32_t lot_size
Lot size.
Definition: types.hpp:367
DerivativeType stock_derivatives
Types of supported derivatives.
Definition: types.hpp:383
int64_t circulating_shares
Circulating shares.
Definition: types.hpp:371
std::string name_en
Security name (en)
Definition: types.hpp:359
Decimal bps
Net assets per share.
Definition: types.hpp:379
One short-position record, unified for US and HK markets.
Definition: types.hpp:1329
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1331
std::string close
Closing price.
Definition: types.hpp:1335
std::string days_to_cover
[US] Days-to-cover ratio
Definition: types.hpp:1341
std::string cost
[HK] Closing price (HK naming)
Definition: types.hpp:1347
std::string current_shares_short
[US] Number of short shares outstanding
Definition: types.hpp:1337
std::string rate
Short ratio.
Definition: types.hpp:1333
std::string balance
[HK] Short position balance
Definition: types.hpp:1345
std::string amount
[HK] Short sale amount (HKD)
Definition: types.hpp:1343
std::string avg_daily_share_volume
[US] Average daily share volume
Definition: types.hpp:1339
Short interest / positions response (HK or US).
Definition: types.hpp:1352
std::vector< ShortPositionsItem > data
Short position records.
Definition: types.hpp:1354
One short-trade record, unified for US and HK markets.
Definition: types.hpp:1359
std::string rate
Short ratio.
Definition: types.hpp:1363
std::string total_amount
[US] Total short amount
Definition: types.hpp:1371
std::string balance
[HK] Short position balance
Definition: types.hpp:1375
std::string amount
[HK] Short sale turnover amount (HKD)
Definition: types.hpp:1373
std::string close
Closing price.
Definition: types.hpp:1365
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1361
std::string ny_amount
[US] NYSE short sale volume
Definition: types.hpp:1369
std::string nus_amount
[US] NASDAQ short sale volume
Definition: types.hpp:1367
Short trade records response (HK or US).
Definition: types.hpp:1380
std::vector< ShortTradesItem > data
Short trade records.
Definition: types.hpp:1382
Subscription.
Definition: types.hpp:185
SubFlags sub_types
Subscription flags.
Definition: types.hpp:189
std::vector< Period > candlesticks
Candlesticks.
Definition: types.hpp:191
std::string symbol
Security code.
Definition: types.hpp:187
Trade.
Definition: types.hpp:569
TradeSession trade_session
Definition: types.hpp:575
Decimal price
Definition: types.hpp:570
int64_t timestamp
Definition: types.hpp:572
std::string trade_type
Definition: types.hpp:573
int64_t volume
Definition: types.hpp:571
TradeDirection direction
Definition: types.hpp:574
Definition: types.hpp:771
Time end_time
End trading time.
Definition: types.hpp:775
Time begin_time
Being trading time.
Definition: types.hpp:773
TradeSession trade_session
Trading session.
Definition: types.hpp:777
An request for update watchlist group.
Definition: types.hpp:877
int64_t id
Group id.
Definition: types.hpp:879
std::optional< std::vector< std::string > > securities
Securities.
Definition: types.hpp:883
std::optional< std::string > name
Group name.
Definition: types.hpp:881
SecuritiesUpdateMode mode
Securities Update Mode.
Definition: types.hpp:885
Warrant info.
Definition: types.hpp:1186
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1235
std::string name
Security name.
Definition: types.hpp:1192
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1229
std::optional< Decimal > upper_strike_price
Upper strike price.
Definition: types.hpp:1211
WarrantType warrant_type
Warrant type.
Definition: types.hpp:1190
std::string symbol
Security code.
Definition: types.hpp:1188
int64_t volume
Volume.
Definition: types.hpp:1200
Decimal turnover
Turnover.
Definition: types.hpp:1202
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1223
Decimal change_value
Quote change.
Definition: types.hpp:1198
std::optional< Decimal > delta
Delta.
Definition: types.hpp:1225
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1237
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1227
int64_t outstanding_qty
Outstanding quantity.
Definition: types.hpp:1215
Decimal change_rate
Quote change rate.
Definition: types.hpp:1196
std::optional< Date > expiry_date
Definition: types.hpp:1207
WarrantStatus status
Status.
Definition: types.hpp:1239
Decimal leverage_ratio
Leverage ratio.
Definition: types.hpp:1233
Decimal last_done
Latest price.
Definition: types.hpp:1194
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1221
Decimal premium
Premium.
Definition: types.hpp:1219
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:1209
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1231
std::optional< Decimal > lower_strike_price
Lower strike price.
Definition: types.hpp:1213
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1217
Quote of warrant.
Definition: types.hpp:640
Decimal strike_price
Strike price.
Definition: types.hpp:675
Date expiry_date
Exprity date.
Definition: types.hpp:663
Decimal open
Open.
Definition: types.hpp:647
Decimal turnover
Turnover.
Definition: types.hpp:657
int64_t volume
Volume.
Definition: types.hpp:655
WarrantType category
Warrant type.
Definition: types.hpp:673
Decimal low
Low.
Definition: types.hpp:651
TradeStatus trade_status
Security trading status.
Definition: types.hpp:659
Decimal upper_strike_price
Upper bound price.
Definition: types.hpp:677
int64_t outstanding_quantity
Outstanding quantity.
Definition: types.hpp:669
Decimal prev_close
Yesterday's close.
Definition: types.hpp:645
int64_t timestamp
Time of latest price.
Definition: types.hpp:653
Date last_trade_date
Last tradalbe date.
Definition: types.hpp:665
std::string symbol
Security code.
Definition: types.hpp:641
Decimal high
High.
Definition: types.hpp:649
Decimal lower_strike_price
Lower bound price.
Definition: types.hpp:679
Decimal last_done
Latest price.
Definition: types.hpp:643
Decimal conversion_ratio
Conversion ratio.
Definition: types.hpp:671
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:661
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:667
std::string underlying_symbol
Underlying security symbol of the warrant.
Definition: types.hpp:683
Decimal call_price
Call price.
Definition: types.hpp:681
Watchlist group.
Definition: types.hpp:846
int64_t id
Group id.
Definition: types.hpp:848
std::vector< WatchlistSecurity > securities
Securities.
Definition: types.hpp:852
std::string name
Group name.
Definition: types.hpp:850
Watchlist security.
Definition: types.hpp:831
std::string symbol
Security symbol.
Definition: types.hpp:833
std::optional< Decimal > watched_price
Watched price.
Definition: types.hpp:839
std::string name
Security name.
Definition: types.hpp:837
int64_t watched_at
Watched time.
Definition: types.hpp:841
Market market
Market.
Definition: types.hpp:835
Response for SharelistContext::detail.
Definition: types.hpp:4644
SharelistScopes scopes
Subscription scope flags for the current user.
Definition: types.hpp:4648
SharelistInfo sharelist
Sharelist info including constituent stocks.
Definition: types.hpp:4646
Sharelist metadata and constituent stocks.
Definition: types.hpp:4600
int64_t subscribers_count
Number of subscribers.
Definition: types.hpp:4610
int64_t created_at
Creation time (Unix timestamp)
Definition: types.hpp:4612
std::string this_year_chg
YTD change percentage.
Definition: types.hpp:4616
std::string description
Description.
Definition: types.hpp:4606
int64_t id
Sharelist ID.
Definition: types.hpp:4602
std::string cover
Cover image URL.
Definition: types.hpp:4608
std::vector< SharelistStock > stocks
Constituent stocks.
Definition: types.hpp:4620
int32_t sharelist_type
Sharelist type: 0=regular, 3=official, 4=industry.
Definition: types.hpp:4626
std::string name
Name.
Definition: types.hpp:4604
bool subscribed
Whether the current user is subscribed.
Definition: types.hpp:4622
std::string creator
Creator info (serialised JSON)
Definition: types.hpp:4618
int64_t edited_at
Last stock edit time (Unix timestamp)
Definition: types.hpp:4614
std::string industry_code
Industry code (for industry sharelists)
Definition: types.hpp:4628
std::string chg
Day change percentage.
Definition: types.hpp:4624
Response for SharelistContext::list and SharelistContext::popular.
Definition: types.hpp:4633
std::vector< SharelistInfo > sharelists
User's own and followed sharelists.
Definition: types.hpp:4635
std::vector< SharelistInfo > subscribed_sharelists
Subscribed sharelists (may be empty in popular response)
Definition: types.hpp:4637
std::string tail_mark
Pagination cursor for the subscribed list.
Definition: types.hpp:4639
Subscription scope flags for a sharelist.
Definition: types.hpp:4591
bool subscription
Whether the current user is subscribed to this sharelist.
Definition: types.hpp:4593
bool is_self
Whether the current user is the creator of this sharelist.
Definition: types.hpp:4595
A security constituent of a sharelist.
Definition: types.hpp:4568
std::string unread_change_log_category
Unread change log category.
Definition: types.hpp:4580
std::string name
Security name.
Definition: types.hpp:4572
std::string market
Market, e.g. "HK".
Definition: types.hpp:4574
std::optional< std::string > change
Day change percentage (absent when quote unavailable)
Definition: types.hpp:4582
std::string intro
Brief description.
Definition: types.hpp:4578
std::string code
Ticker code.
Definition: types.hpp:4576
std::string symbol
Security symbol.
Definition: types.hpp:4570
std::optional< std::string > last_done
Latest price (absent when quote unavailable)
Definition: types.hpp:4584
std::optional< int32_t > trade_status
Trade status code (absent when quote unavailable)
Definition: types.hpp:4586
Account balance.
Definition: types.hpp:2106
Decimal total_cash
Total cash.
Definition: types.hpp:2108
Decimal max_finance_amount
Maximum financing amount.
Definition: types.hpp:2110
std::vector< FrozenTransactionFee > frozen_transaction_fees
Frozen transaction fees.
Definition: types.hpp:2130
Decimal maintenance_margin
Maintenance margin.
Definition: types.hpp:2126
Decimal net_assets
Net assets.
Definition: types.hpp:2122
Decimal init_margin
Initial margin.
Definition: types.hpp:2124
std::string currency
Currency.
Definition: types.hpp:2118
Decimal buy_power
Buy power.
Definition: types.hpp:2128
Decimal margin_call
Margin call.
Definition: types.hpp:2116
Decimal remaining_finance_amount
Remaining financing amount.
Definition: types.hpp:2112
int32_t risk_level
Risk control level.
Definition: types.hpp:2114
std::vector< CashInfo > cash_infos
Cash details.
Definition: types.hpp:2120
All executions response.
Definition: types.hpp:1485
bool has_more
Has more records.
Definition: types.hpp:1487
std::vector< Execution > trades
Executions.
Definition: types.hpp:1489
Attached order detail.
Definition: types.hpp:1637
Decimal quantity
Definition: types.hpp:1641
std::optional< OutsideRTH > force_only_rth
Definition: types.hpp:1654
Decimal executed_amount
Definition: types.hpp:1650
std::string counter_id
Definition: types.hpp:1648
bool withdrawn
Definition: types.hpp:1645
std::optional< Decimal > trigger_price
Definition: types.hpp:1640
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1657
OrderType activate_order_type
Definition: types.hpp:1656
std::string order_id
Definition: types.hpp:1638
int64_t updated_at
Definition: types.hpp:1644
std::optional< Decimal > executed_price
Definition: types.hpp:1653
Decimal executed_qty
Definition: types.hpp:1642
std::optional< int32_t > limit_depth_level
Bid/ask depth level of the limit order submitted price.
Definition: types.hpp:1660
AttachedOrderType attached_type_display
Definition: types.hpp:1639
std::optional< Date > gtd
Definition: types.hpp:1646
TimeInForceType time_in_force
Definition: types.hpp:1647
std::optional< Decimal > submit_price
Definition: types.hpp:1658
OrderTag tag
Definition: types.hpp:1651
std::optional< TriggerStatus > trigger_status
Definition: types.hpp:1649
int64_t submitted_at
Definition: types.hpp:1652
bool reviewed
Definition: types.hpp:1655
OrderStatus status
Definition: types.hpp:1643
Cash flow.
Definition: types.hpp:2159
std::optional< std::string > symbol
Associated Stock code information.
Definition: types.hpp:2173
std::string transaction_flow_name
Cash flow name.
Definition: types.hpp:2161
std::string description
Cash flow description.
Definition: types.hpp:2175
int64_t business_time
Business time.
Definition: types.hpp:2171
CashFlowDirection direction
Outflow direction.
Definition: types.hpp:2163
Decimal balance
Cash amount.
Definition: types.hpp:2167
BalanceType business_type
Balance type.
Definition: types.hpp:2165
std::string currency
Cash currency.
Definition: types.hpp:2169
Cash info.
Definition: types.hpp:2084
Decimal frozen_cash
Frozen cash.
Definition: types.hpp:2090
Decimal settling_cash
Cash to be settled.
Definition: types.hpp:2092
Decimal withdraw_cash
Withdraw cash.
Definition: types.hpp:2086
Decimal available_cash
Available cash.
Definition: types.hpp:2088
std::string currency
Currency.
Definition: types.hpp:2094
Options for estimate maximum purchase quantity.
Definition: types.hpp:2468
std::string symbol
Security code.
Definition: types.hpp:2470
OrderType order_type
Order type.
Definition: types.hpp:2472
bool fractional_shares
Get the maximum fractional share buying power.
Definition: types.hpp:2483
std::optional< Decimal > price
Estimated order price.
Definition: types.hpp:2476
OrderSide side
Order side.
Definition: types.hpp:2474
std::optional< std::string > currency
Settlement currency.
Definition: types.hpp:2478
std::optional< std::string > order_id
Definition: types.hpp:2481
Response for estimate maximum purchase quantity.
Definition: types.hpp:2488
Decimal margin_max_qty
Margin available quantity.
Definition: types.hpp:2492
Decimal cash_max_qty
Cash available quantity.
Definition: types.hpp:2490
Exexution.
Definition: types.hpp:1436
Decimal price
Definition: types.hpp:1442
Decimal quantity
Definition: types.hpp:1441
OrderSide side
Definition: types.hpp:1445
std::string trade_id
Definition: types.hpp:1438
std::string symbol
Definition: types.hpp:1439
std::string order_id
Definition: types.hpp:1437
int64_t trade_done_at
Definition: types.hpp:1440
Frozen transaction fee.
Definition: types.hpp:2099
std::string currency
Definition: types.hpp:2100
Decimal frozen_transaction_fee
Definition: types.hpp:2101
Fund position channel.
Definition: types.hpp:2230
std::string account_channel
Account type.
Definition: types.hpp:2232
std::vector< FundPosition > positions
Fund positions.
Definition: types.hpp:2234
Fund position.
Definition: types.hpp:2211
Decimal holding_units
Holding units.
Definition: types.hpp:2225
std::string currency
Currency.
Definition: types.hpp:2221
std::string symbol_name
Fund name.
Definition: types.hpp:2219
std::string counter_id
Fund counter id (the ISIN is the last /-separated segment)
Definition: types.hpp:2213
Decimal current_net_asset_value
Current equity.
Definition: types.hpp:2215
int64_t net_asset_value_day
Current equity time.
Definition: types.hpp:2217
Decimal cost_net_asset_value
Net cost.
Definition: types.hpp:2223
Fund positions response.
Definition: types.hpp:2239
std::vector< FundPositionChannel > channels
Channels.
Definition: types.hpp:2241
Options for get all executions request.
Definition: types.hpp:1470
std::optional< uint64_t > page
Page number.
Definition: types.hpp:1480
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1476
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1474
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1478
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1472
Options for submit order request.
Definition: types.hpp:2180
int64_t end_at
End time.
Definition: types.hpp:2184
std::optional< uintptr_t > page
Page number.
Definition: types.hpp:2190
int64_t start_at
Start time.
Definition: types.hpp:2182
std::optional< uintptr_t > size
Page size.
Definition: types.hpp:2192
std::optional< BalanceType > business_type
Business type.
Definition: types.hpp:2186
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:2188
Options for get fund positions request.
Definition: types.hpp:2197
std::optional< std::vector< std::string > > symbols
Fund symbols.
Definition: types.hpp:2199
Options for get history executions request.
Definition: types.hpp:1450
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1456
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1454
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1452
Options for get history orders request.
Definition: types.hpp:1921
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1933
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1927
std::optional< Market > market
Market.
Definition: types.hpp:1929
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1923
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1925
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1931
Options for get stock positions request.
Definition: types.hpp:2204
std::optional< std::vector< std::string > > symbols
Stock symbols.
Definition: types.hpp:2206
Options for get today executions request.
Definition: types.hpp:1461
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1465
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1463
Options for get today orders request.
Definition: types.hpp:1938
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1940
std::optional< bool > is_attached
Whether to include attached orders.
Definition: types.hpp:1950
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1948
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1942
std::optional< Market > market
Market.
Definition: types.hpp:1946
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1944
Margin ratio.
Definition: types.hpp:2284
Decimal mm_factor
Maintain the initial margin ratio.
Definition: types.hpp:2288
Decimal im_factor
Initial margin ratio.
Definition: types.hpp:2286
Decimal fm_factor
Forced close-out margin ratio.
Definition: types.hpp:2290
Multi-leg strategy information.
Definition: types.hpp:1777
std::string code
Multi-leg combination code.
Definition: types.hpp:1785
std::string multileg_id
Multi-leg combination ID.
Definition: types.hpp:1783
std::vector< MultiLegOrderLeg > legs
Legs of the combination order.
Definition: types.hpp:1787
MultiLegStrategy strategy
Multi-leg strategy.
Definition: types.hpp:1779
std::string strategy_name
Strategy name.
Definition: types.hpp:1781
A leg of a multi-leg combination order.
Definition: types.hpp:1758
std::optional< Date > expire_date
Option expiry date.
Definition: types.hpp:1770
ContractDirection contract_direction
Contract type.
Definition: types.hpp:1772
MultiLegPosition position
Position direction.
Definition: types.hpp:1764
Decimal ratio_quantity
Leg ratio quantity.
Definition: types.hpp:1766
OrderSide side
Order side.
Definition: types.hpp:1762
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:1768
std::string symbol
Option symbol, in ticker.region format.
Definition: types.hpp:1760
Order charge detail.
Definition: types.hpp:2364
std::string currency
Settlement currency.
Definition: types.hpp:2368
std::vector< OrderChargeItem > items
Order charge items.
Definition: types.hpp:2370
Decimal total_amount
Total charges amount.
Definition: types.hpp:2366
Order charge fee.
Definition: types.hpp:2340
Decimal amount
Charge amount.
Definition: types.hpp:2346
std::string currency
Charge currency.
Definition: types.hpp:2348
std::string code
Charge code.
Definition: types.hpp:2342
std::string name
Charge name.
Definition: types.hpp:2344
Order charge item.
Definition: types.hpp:2353
std::string name
Charge category name.
Definition: types.hpp:2357
std::vector< OrderChargeFee > fees
Charge details.
Definition: types.hpp:2359
ChargeCategoryCode code
Charge category code.
Definition: types.hpp:2355
Order detail.
Definition: types.hpp:2375
int64_t submitted_at
Submitted time.
Definition: types.hpp:2391
std::optional< std::string > free_currency
Commission-free currency.
Definition: types.hpp:2442
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:2421
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:2425
Decimal quantity
Submitted quantity.
Definition: types.hpp:2383
std::optional< std::string > deductions_currency
Deduction currency.
Definition: types.hpp:2448
std::string currency
Currency.
Definition: types.hpp:2423
OrderStatus status
Order status.
Definition: types.hpp:2379
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:2429
OrderSide side
Order side.
Definition: types.hpp:2393
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:2399
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:2431
std::string msg
Rejected Message or remark.
Definition: types.hpp:2403
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:2411
std::optional< Decimal > platform_deducted_amount
Platform deduction amount.
Definition: types.hpp:2452
CommissionFreeStatus free_status
Commission-free Status.
Definition: types.hpp:2438
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:2427
std::string remark
Remark.
Definition: types.hpp:2433
OrderTag tag
Order tag.
Definition: types.hpp:2405
std::string order_id
Order ID.
Definition: types.hpp:2377
std::optional< int64_t > delayed_until
Definition: types.hpp:2436
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:2409
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:2413
std::optional< Decimal > free_amount
Commission-free amount.
Definition: types.hpp:2440
DeductionStatus deductions_status
Deduction status.
Definition: types.hpp:2444
std::string symbol
Security code.
Definition: types.hpp:2395
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:2401
std::vector< AttachedOrderDetail > attached_orders
Attached orders.
Definition: types.hpp:2460
std::string stock_name
Stock name.
Definition: types.hpp:2381
OrderType order_type
Order type.
Definition: types.hpp:2397
DeductionStatus platform_deducted_status
Platform fee deduction status.
Definition: types.hpp:2450
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:2419
std::optional< MultiLegInfo > multi_leg
Definition: types.hpp:2463
std::optional< Decimal > deductions_amount
Deduction amount.
Definition: types.hpp:2446
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:2407
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:2417
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:2385
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:2387
std::vector< OrderHistoryDetail > history
Order history details.
Definition: types.hpp:2456
std::optional< std::string > platform_deducted_currency
Platform deduction currency.
Definition: types.hpp:2454
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:2389
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:2415
std::optional< OrderChargeDetail > charge_detail
Order charges (maybe null)
Definition: types.hpp:2458
Order history detail.
Definition: types.hpp:2323
Decimal quantity
Definition: types.hpp:2329
Decimal price
Definition: types.hpp:2326
std::string msg
Execution or error message.
Definition: types.hpp:2333
OrderStatus status
Order status.
Definition: types.hpp:2331
int64_t time
Occurrence time.
Definition: types.hpp:2335
Order.
Definition: types.hpp:1792
Decimal quantity
Submitted quantity.
Definition: types.hpp:1800
int64_t submitted_at
Submitted time.
Definition: types.hpp:1808
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:1832
OrderTag tag
Order tag.
Definition: types.hpp:1822
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:1818
OrderStatus status
Order status.
Definition: types.hpp:1796
std::string currency
Currency.
Definition: types.hpp:1840
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:1824
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1848
std::string stock_name
Stock name.
Definition: types.hpp:1798
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:1826
OrderSide side
Order side.
Definition: types.hpp:1810
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1806
std::string symbol
Security code.
Definition: types.hpp:1812
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:1804
std::optional< MultiLegInfo > multi_leg
Definition: types.hpp:1858
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:1834
std::string msg
Rejected Message or remark.
Definition: types.hpp:1820
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1838
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:1816
std::optional< int64_t > delayed_until
Definition: types.hpp:1853
std::string order_id
Order ID.
Definition: types.hpp:1794
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:1828
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:1842
OrderType order_type
Order type.
Definition: types.hpp:1814
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1844
std::string remark
Remark.
Definition: types.hpp:1850
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1802
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:1836
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1830
std::vector< AttachedOrderDetail > attached_orders
Attached orders.
Definition: types.hpp:1855
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1846
Grid trading master-order changed message.
Definition: types.hpp:2498
std::string current_base_price
Current base price.
Definition: types.hpp:2510
std::string grid_order_type_down
Buy-side order type when depth is 0.
Definition: types.hpp:2528
std::string trigger_quantity
Quantity per trigger.
Definition: types.hpp:2518
std::string submitted_base_price
Submitted base price.
Definition: types.hpp:2508
std::string suspend_reason
Suspend reason, if any.
Definition: types.hpp:2506
int32_t time_in_force
Time in force (0 = Day, 1 = GTC, 6 = GTD)
Definition: types.hpp:2522
std::string symbol
Security symbol (e.g. 700.HK)
Definition: types.hpp:2504
int32_t rth
Regular trading hours flag.
Definition: types.hpp:2524
std::string order_id
Grid master order ID.
Definition: types.hpp:2500
std::string status
Order status.
Definition: types.hpp:2502
std::string upper_limit_price
Upper price bound.
Definition: types.hpp:2512
std::string settlement_currency
Settlement currency.
Definition: types.hpp:2520
int32_t trigger_price_type
Trigger price type.
Definition: types.hpp:2516
std::string grid_order_type_up
Sell-side order type when depth is 0.
Definition: types.hpp:2526
std::string lower_limit_price
Lower price bound.
Definition: types.hpp:2514
Order changed message.
Definition: types.hpp:1863
std::string order_id
Order ID.
Definition: types.hpp:1881
Decimal submitted_quantity
Submitted quantity.
Definition: types.hpp:1869
int64_t submitted_at
Submitted time.
Definition: types.hpp:1887
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1903
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1901
std::string currency
Currency.
Definition: types.hpp:1883
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1879
std::string stock_name
Stock name.
Definition: types.hpp:1867
std::optional< Decimal > trigger_price
Order trigger price.
Definition: types.hpp:1891
OrderType order_type
Order type.
Definition: types.hpp:1873
std::optional< Decimal > last_price
Last price.
Definition: types.hpp:1911
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1897
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1877
std::string msg
Rejected message or remark.
Definition: types.hpp:1893
int64_t updated_at
Last updated time.
Definition: types.hpp:1889
OrderSide side
Order side.
Definition: types.hpp:1865
std::optional< Decimal > limit_offset
Limit offset amount.
Definition: types.hpp:1905
OrderStatus status
Order status.
Definition: types.hpp:1885
std::string remark
Remark message.
Definition: types.hpp:1913
std::optional< MultiLegInfo > multi_leg
Definition: types.hpp:1916
Decimal submitted_price
Submitted price.
Definition: types.hpp:1875
OrderTag tag
Order tag.
Definition: types.hpp:1895
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1899
std::string symbol
Order symbol.
Definition: types.hpp:1871
std::optional< Decimal > last_share
Last share.
Definition: types.hpp:1909
std::string account_no
Account no.
Definition: types.hpp:1907
Replace attached order params.
Definition: types.hpp:1685
std::optional< int64_t > expire_time
Definition: types.hpp:1690
std::optional< Decimal > stop_loss_submit_price
Definition: types.hpp:1693
std::optional< Decimal > stop_loss_price
Definition: types.hpp:1688
std::optional< bool > cancel_all_attached
Definition: types.hpp:1697
std::optional< int64_t > main_id
Definition: types.hpp:1698
std::optional< OrderType > activate_order_type
Definition: types.hpp:1691
std::optional< Decimal > market_price
Definition: types.hpp:1700
std::optional< TimeInForceType > time_in_force
Definition: types.hpp:1689
std::optional< int32_t > stop_loss_depth_level
Definition: types.hpp:1706
std::optional< int32_t > profit_taker_depth_level
Definition: types.hpp:1703
std::optional< int64_t > stop_loss_id
Definition: types.hpp:1696
std::optional< Decimal > profit_taker_submit_price
Definition: types.hpp:1692
AttachedOrderType attached_order_type
Definition: types.hpp:1686
std::optional< Decimal > profit_taker_price
Definition: types.hpp:1687
std::optional< int64_t > profit_taker_id
Definition: types.hpp:1695
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1694
std::optional< Decimal > quantity
Definition: types.hpp:1699
Options for replace order request.
Definition: types.hpp:1955
std::string order_id
Order ID.
Definition: types.hpp:1957
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1971
bool clear_delayed_until
Definition: types.hpp:1986
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1975
std::optional< Decimal > price
Price.
Definition: types.hpp:1961
std::optional< Decimal > trigger_price
Trigger price.
Definition: types.hpp:1963
Decimal quantity
Quantity.
Definition: types.hpp:1959
std::optional< int64_t > delayed_until
Definition: types.hpp:1983
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1973
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1969
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1967
std::optional< Decimal > limit_offset
Limit offset.
Definition: types.hpp:1965
std::optional< std::string > remark
Remark.
Definition: types.hpp:1977
std::optional< ReplaceAttachedParams > attached_params
Attached order params.
Definition: types.hpp:1979
Stock position channel.
Definition: types.hpp:2268
std::string account_channel
Account type.
Definition: types.hpp:2270
std::vector< StockPosition > positions
Stock positions.
Definition: types.hpp:2272
Stock position.
Definition: types.hpp:2246
std::optional< Decimal > init_quantity
Initial position before market opening.
Definition: types.hpp:2263
Decimal quantity
The number of holdings.
Definition: types.hpp:2252
std::string symbol
Stock code.
Definition: types.hpp:2248
std::string symbol_name
Stock name.
Definition: types.hpp:2250
Decimal available_quantity
Available quantity.
Definition: types.hpp:2254
Decimal cost_price
Definition: types.hpp:2259
Market market
Market.
Definition: types.hpp:2261
std::string currency
Currency.
Definition: types.hpp:2256
Stock positions response.
Definition: types.hpp:2277
std::vector< StockPositionChannel > channels
Channels.
Definition: types.hpp:2279
Submit attached order params.
Definition: types.hpp:1665
std::optional< OrderType > activate_order_type
Definition: types.hpp:1671
std::optional< int64_t > expire_time
Definition: types.hpp:1670
std::optional< int32_t > stop_loss_depth_level
Definition: types.hpp:1680
std::optional< Decimal > profit_taker_submit_price
Definition: types.hpp:1672
std::optional< TimeInForceType > time_in_force
Definition: types.hpp:1669
AttachedOrderType attached_order_type
Definition: types.hpp:1666
std::optional< Decimal > stop_loss_submit_price
Definition: types.hpp:1673
std::optional< Decimal > stop_loss_price
Definition: types.hpp:1668
std::optional< Decimal > profit_taker_price
Definition: types.hpp:1667
std::optional< OutsideRTH > activate_rth
Definition: types.hpp:1674
std::optional< int32_t > profit_taker_depth_level
Definition: types.hpp:1677
A leg of a multi-leg combination order to submit.
Definition: types.hpp:2046
Decimal ratio_quantity
Definition: types.hpp:2053
std::string symbol
Option symbol, in ticker.region format (e.g. QQQ260731C764000.US)
Definition: types.hpp:2048
Options for submit multi-leg order request.
Definition: types.hpp:2058
std::optional< std::string > remark
Remark (Maximum 255 characters)
Definition: types.hpp:2072
Decimal submitted_quantity
Submitted quantity (number of combinations)
Definition: types.hpp:2064
std::optional< std::string > client_request_id
Definition: types.hpp:2076
MultiLegStrategy strategy
Multi-leg strategy.
Definition: types.hpp:2066
std::optional< int64_t > delayed_until
Definition: types.hpp:2079
std::vector< SubmitMultiLegOrderLeg > legs
Legs of the combination order.
Definition: types.hpp:2068
std::optional< Decimal > submitted_price
Submitted price (required for limit order types such as LO)
Definition: types.hpp:2070
OrderSide side
Order side.
Definition: types.hpp:2060
OrderType order_type
Order type.
Definition: types.hpp:2062
Options for submit order request.
Definition: types.hpp:1991
std::optional< Decimal > trailing_percent
Trailing percent (TSLPPCT / TSMAPCT Required)
Definition: types.hpp:2011
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:2018
std::optional< std::string > client_request_id
Definition: types.hpp:2028
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:2020
OrderType order_type
Order type.
Definition: types.hpp:1995
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:2001
std::optional< std::string > remark
Remark (Maximum 64 characters)
Definition: types.hpp:2024
OrderSide side
Order side.
Definition: types.hpp:1997
std::optional< Decimal > limit_offset
Limit offset amount (TSLPAMT / TSLPPCT Required)
Definition: types.hpp:2007
std::optional< Decimal > submitted_price
Submitted price.
Definition: types.hpp:2003
std::optional< Decimal > trailing_amount
Trailing amount (TSLPAMT / TSMAMT Required)
Definition: types.hpp:2009
std::string symbol
Security symbol.
Definition: types.hpp:1993
std::optional< int64_t > delayed_until
Definition: types.hpp:2034
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:2022
std::optional< SubmitAttachedParams > attached_params
Attached order params.
Definition: types.hpp:2030
std::optional< Decimal > trigger_price
Trigger price (LIT / MIT Required)
Definition: types.hpp:2005
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:2016
std::optional< Date > expire_date
Definition: types.hpp:2014
Decimal submitted_quantity
Submitted price.
Definition: types.hpp:1999
Response for submit order request.
Definition: types.hpp:2039
std::string order_id
Order id.
Definition: types.hpp:2041