Longbridge OpenAPI C++ SDK
types.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "decimal.hpp"
4 #include <map>
5 #include <optional>
6 #include <vector>
7 
8 namespace longbridge {
9 
10 struct Date
11 {
12  int32_t year;
13  uint8_t month;
14  uint8_t day;
15 };
16 
17 struct Time
18 {
19  uint8_t hour;
20  uint8_t minute;
21  uint8_t second;
22 };
23 
24 struct DateTime
25 {
28 };
29 
31 enum class Language
32 {
34  ZH_CN,
36  ZH_HK,
38  EN,
39 };
40 
43 {
45  Realtime,
47  Confirmed,
48 };
49 
51 enum class Market
52 {
54  Unknown,
56  US,
58  HK,
60  CN,
62  SG,
64  Crypto,
65 };
66 
67 namespace quote {
68 
69 enum class TradeStatus;
70 
72 class SubFlags
73 {
74 private:
75  uint8_t value_;
76 
77 public:
78  inline SubFlags(uint8_t value) { value_ = value; }
79 
80  inline operator uint8_t() const { return value_; }
81 
82  inline SubFlags operator|(const SubFlags& other) const
83  {
84  return SubFlags(value_ | other.value_);
85  }
86 
87  inline SubFlags& operator|=(const SubFlags& other)
88  {
89  value_ |= other.value_;
90  return *this;
91  }
92 
93  inline SubFlags operator&(const SubFlags& other) const
94  {
95  return SubFlags(value_ & other.value_);
96  }
97 
98  inline SubFlags& operator&=(const SubFlags& other)
99  {
100  value_ &= other.value_;
101  return *this;
102  }
103 
104  inline bool operator==(const SubFlags& other) const
105  {
106  return value_ == other.value_;
107  }
108 
109  inline bool contains(const SubFlags& other) const
110  {
111  return (value_ & other.value_) > 0;
112  }
113 
114  static SubFlags QUOTE();
115  static SubFlags DEPTH();
116  static SubFlags BROKER();
117  static SubFlags TRADE();
118 };
119 
122 {
123  uint8_t value;
124 
125  bool has_option();
126  bool has_warrant();
127 };
128 
130 enum class Period
131 {
133  Unknown,
135  Min1,
137  Min2,
139  Min3,
141  Min5,
143  Min10,
145  Min15,
147  Min20,
149  Min30,
151  Min45,
153  Min60,
155  Min120,
157  Min180,
159  Min240,
161  Day,
163  Week,
165  Month,
167  Quarter,
169  Year,
170 };
171 
174 {
176  std::string symbol;
180  std::vector<Period> candlesticks;
181 };
182 
184 enum class TradeSession
185 {
187  Intraday,
189  Pre,
191  Post,
193  Overnight,
194 };
195 
197 struct PushQuote
198 {
200  std::string symbol;
210  int64_t timestamp;
212  int64_t volume;
220  int64_t current_volume;
223 };
224 
225 struct Depth
226 {
228  int32_t position;
230  std::optional<Decimal> price;
232  int64_t volume;
234  int64_t order_num;
235 };
236 
238 struct PushDepth
239 {
241  std::string symbol;
243  std::vector<Depth> asks;
245  std::vector<Depth> bids;
246 };
247 
249 struct Brokers
250 {
252  int32_t position;
254  std::vector<int32_t> broker_ids;
255 };
256 
259 {
261  std::string symbol;
263  std::vector<Brokers> ask_brokers;
265  std::vector<Brokers> bid_brokers;
266 };
267 
269 enum class SecurityBoard
270 {
272  Unknown,
274  USMain,
276  USPink,
278  USDJI,
280  USNSDQ,
282  USSector,
284  USOption,
286  USOptionS,
288  HKEquity,
290  HKPreIPO,
292  HKWarrant,
294  HKHS,
296  HKSector,
302  SHSTAR,
304  CNIX,
306  CNSector,
312  SZGEMConnect,
316  SGMain,
318  STI,
320  SGSector,
322  SPXIndex,
324  VIXIndex,
325 };
326 
328 struct Security
329 {
331  std::string symbol;
333  std::string name_cn;
335  std::string name_en;
337  std::string name_hk;
338 };
339 
342 {
344  std::string symbol;
346  std::string name_cn;
348  std::string name_en;
350  std::string name_hk;
352  std::string exchange;
354  std::string currency;
356  int32_t lot_size;
358  int64_t total_shares;
362  int64_t hk_shares;
375 };
376 
378 enum class TradeStatus
379 {
381  Normal,
383  Halted,
385  Delisted,
387  Fuse,
389  PrepareList,
391  CodeMoved,
393  ToBeOpened,
397  Expired,
401  SuspendTrade,
402 };
403 
406 {
410  int64_t timestamp;
412  int64_t volume;
421 };
422 
425 {
427  std::string symbol;
439  int64_t timestamp;
441  int64_t volume;
447  std::optional<PrePostQuote> pre_market_quote;
449  std::optional<PrePostQuote> post_market_quote;
451  std::optional<PrePostQuote> overnight_quote;
452 };
453 
455 enum class OptionType
456 {
458  Unknown,
460  American,
462  Europe,
463 };
464 
466 enum class OptionDirection
467 {
469  Unknown,
471  Put,
473  Call,
474 };
475 
478 {
479  std::string symbol;
491  int64_t timestamp;
493  int64_t volume;
501  int64_t open_interest;
517  std::string underlying_symbol;
518 };
519 
521 enum class TradeDirection
522 {
524  Neutral,
526  Down,
528  Up
529 };
530 
532 struct Trade
533 {
535  int64_t volume;
536  int64_t timestamp;
537  std::string trade_type;
540 };
541 
544 {
546  std::string symbol;
548  std::vector<Trade> trades;
549 };
550 
553 {
563  int64_t volume;
567  int64_t timestamp;
570 };
571 
574 {
576  std::string symbol;
583 };
584 
586 enum class WarrantType
587 {
589  Unknown,
591  Call,
593  Put,
595  Bull,
597  Bear,
599  Inline
600 };
601 
604 {
605  std::string symbol;
617  int64_t timestamp;
619  int64_t volume;
647  std::string underlying_symbol;
648 };
649 
652 {
654  std::vector<Depth> asks;
656  std::vector<Depth> bids;
657 };
658 
661 {
663  std::vector<Brokers> ask_brokers;
665  std::vector<Brokers> bid_brokers;
666 };
667 
669 {
671  std::vector<int32_t> broker_ids;
673  std::string name_cn;
675  std::string name_en;
677  std::string name_hk;
678 };
679 
682 {
684  int64_t timestamp;
685  int64_t volume;
688 };
689 
691 enum class AdjustType
692 {
693  NoAdjust,
695 };
696 
699 {
703  std::string call_symbol;
705  std::string put_symbol;
707  bool standard;
708 };
709 
712 {
714  int32_t issuer_id;
716  std::string name_cn;
718  std::string name_en;
720  std::string name_hk;
721 };
722 
724 {
731 };
732 
735 {
739  std::vector<TradingSessionInfo> trade_session;
740 };
741 
744 {
746  std::vector<Date> trading_days;
748  std::vector<Date> half_trading_days;
749 };
750 
753 {
757  int64_t timestamp;
758 };
759 
762 {
769 };
770 
773 {
775  int64_t timestamp;
780 };
781 
784 {
786  std::string symbol;
790  std::string name;
792  std::optional<Decimal> watched_price;
794  int64_t watched_at;
795 };
796 
799 {
801  int64_t id;
803  std::string name;
805  std::vector<WatchlistSecurity> securities;
806 };
807 
810 {
812  Add,
814  Remove,
816  Replace,
817 };
818 
821 {
823  std::string name;
825  std::vector<std::string> securities;
826 };
827 
830 {
832  int64_t id;
834  std::optional<std::string> name;
836  std::optional<std::vector<std::string>> securities;
839 };
840 
843 {
845  std::string symbol;
855  int64_t timestamp;
857  int64_t volume;
862 };
863 
865 enum class CalcIndex
866 {
868  LastDone,
870  ChangeValue,
872  ChangeRate,
874  Volume,
876  Turnover,
880  TurnoverRate,
884  CapitalFlow,
886  Amplitude,
888  VolumeRatio,
890  PeTtmRatio,
892  PbRatio,
904  ExpiryDate,
906  StrikePrice,
916  Premium,
918  ItmOtm,
922  WarrantDelta,
924  CallPrice,
926  ToCallPrice,
934  BalancePoint,
936  OpenInterest,
938  Delta,
940  Gamma,
942  Theta,
944  Vega,
946  Rho,
947 };
948 
951 {
953  std::string symbol;
955  std::optional<Decimal> last_done;
957  std::optional<Decimal> change_value;
959  std::optional<Decimal> change_rate;
961  std::optional<int64_t> volume;
963  std::optional<Decimal> turnover;
965  std::optional<Decimal> ytd_change_rate;
967  std::optional<Decimal> turnover_rate;
969  std::optional<Decimal> total_market_value;
971  std::optional<Decimal> capital_flow;
973  std::optional<Decimal> amplitude;
975  std::optional<Decimal> volume_ratio;
977  std::optional<Decimal> pe_ttm_ratio;
979  std::optional<Decimal> pb_ratio;
981  std::optional<Decimal> dividend_ratio_ttm;
983  std::optional<Decimal> five_day_change_rate;
985  std::optional<Decimal> ten_day_change_rate;
987  std::optional<Decimal> half_year_change_rate;
989  std::optional<Decimal> five_minutes_change_rate;
991  std::optional<Date> expiry_date;
993  std::optional<Decimal> strike_price;
995  std::optional<Decimal> upper_strike_price;
997  std::optional<Decimal> lower_strike_price;
999  std::optional<int64_t> outstanding_qty;
1001  std::optional<Decimal> outstanding_ratio;
1003  std::optional<Decimal> premium;
1005  std::optional<Decimal> itm_otm;
1007  std::optional<Decimal> implied_volatility;
1009  std::optional<Decimal> warrant_delta;
1011  std::optional<Decimal> call_price;
1013  std::optional<Decimal> to_call_price;
1015  std::optional<Decimal> effective_leverage;
1017  std::optional<Decimal> leverage_ratio;
1019  std::optional<Decimal> conversion_ratio;
1021  std::optional<Decimal> balance_point;
1023  std::optional<int64_t> open_interest;
1025  std::optional<Decimal> delta;
1027  std::optional<Decimal> gamma;
1029  std::optional<Decimal> theta;
1031  std::optional<Decimal> vega;
1033  std::optional<Decimal> rho;
1034 };
1035 
1037 enum class SortOrderType
1038 {
1040  Ascending,
1042  Descending,
1043 };
1044 
1046 enum class WarrantSortBy
1047 {
1049  LastDone,
1051  ChangeRate,
1053  ChangeValue,
1055  Volume,
1057  Turnover,
1059  ExpiryDate,
1061  StrikePrice,
1071  Premium,
1073  ItmOtm,
1077  Delta,
1079  CallPrice,
1081  ToCallPrice,
1085  LeverageRatio,
1089  BalancePoint,
1091  Status,
1092 };
1093 
1096 {
1098  LT_3,
1100  Between_3_6,
1102  Between_6_12,
1104  GT_12,
1105 };
1106 
1109 {
1111  In,
1113  Out,
1114 };
1115 
1117 enum class WarrantStatus
1118 {
1120  Suspend,
1122  PrepareList,
1124  Normal,
1125 };
1126 
1129 {
1131  std::string symbol;
1135  std::string name;
1143  int64_t volume;
1149  std::optional<Decimal> strike_price;
1151  std::optional<Decimal> upper_strike_price;
1153  std::optional<Decimal> lower_strike_price;
1161  std::optional<Decimal> itm_otm;
1163  std::optional<Decimal> implied_volatility;
1165  std::optional<Decimal> delta;
1167  std::optional<Decimal> call_price;
1169  std::optional<Decimal> to_call_price;
1171  std::optional<Decimal> effective_leverage;
1175  std::optional<Decimal> conversion_ratio;
1177  std::optional<Decimal> balance_point;
1180 };
1181 
1184 {
1186  Overnight,
1187 };
1188 
1191 {
1193  std::string key;
1195  std::string name;
1197  std::string description;
1199  int64_t start_at;
1201  int64_t end_at;
1202 };
1203 
1205 enum class TradeSessions
1206 {
1208  Intraday,
1210  All,
1211 };
1212 
1215 {
1217  int32_t temperature;
1219  std::string description;
1221  int32_t valuation;
1223  int32_t sentiment;
1225  int64_t timestamp;
1226 };
1227 
1230 {
1239 };
1240 
1243 {
1247  std::vector<MarketTemperature> records;
1248 };
1249 
1252 {
1254  std::string id;
1256  std::string title;
1258  std::string description;
1260  std::string file_name;
1262  std::vector<std::string> file_urls;
1264  int64_t published_at;
1265 };
1266 
1269 {
1271  std::string timestamp;
1273  std::string rate;
1275  std::string close;
1281  std::string days_to_cover;
1283  std::string amount;
1285  std::string balance;
1287  std::string cost;
1288 };
1289 
1292 {
1294  std::vector<ShortPositionsItem> data;
1295 };
1296 
1299 {
1301  std::string timestamp;
1303  std::string rate;
1305  std::string close;
1307  std::string nus_amount;
1309  std::string ny_amount;
1311  std::string total_amount;
1313  std::string amount;
1315  std::string balance;
1316 };
1317 
1320 {
1322  std::vector<ShortTradesItem> data;
1323 };
1324 
1326 {
1327  std::string c;
1328  std::string p;
1329 };
1330 
1332 {
1333  std::string symbol;
1334  std::string timestamp;
1335  std::string total_volume;
1336  std::string total_put_volume;
1337  std::string total_call_volume;
1339  std::string total_open_interest;
1343 };
1344 
1346 {
1347  std::vector<OptionVolumeDailyStat> stats;
1348 };
1349 
1350 } // namespace quote
1351 
1352 namespace trade {
1353 
1355 enum class TopicType
1356 {
1358  Private,
1359 };
1360 
1363 {
1364  std::string order_id;
1365  std::string trade_id;
1366  std::string symbol;
1367  int64_t trade_done_at;
1370 };
1371 
1374 {
1376  std::optional<int64_t> start_at;
1378  std::optional<int64_t> end_at;
1380  std::optional<std::string> symbol;
1381 };
1382 
1385 {
1387  std::optional<std::string> symbol;
1389  std::optional<std::string> order_id;
1390 };
1391 
1393 enum class OrderStatus
1394 {
1396  Unknown,
1398  NotReported,
1406  Filled,
1408  WaitToNew,
1410  New,
1412  WaitToReplace,
1416  Replaced,
1418  PartialFilled,
1420  WaitToCancel,
1422  PendingCancel,
1424  Rejected,
1426  Canceled,
1428  Expired,
1431 };
1432 
1434 enum class OrderSide
1435 {
1437  Unknown,
1439  Buy,
1441  Sell,
1442 };
1443 
1445 enum class OrderType
1446 {
1448  Unknown,
1450  LO,
1452  ELO,
1454  MO,
1456  AO,
1458  ALO,
1460  ODD,
1462  LIT,
1464  MIT,
1466  TSLPAMT,
1468  TSLPPCT,
1470  TSMAMT,
1472  TSMPCT,
1474  SLO,
1475 };
1476 
1478 enum class OrderTag
1479 {
1481  Unknown,
1483  Normal,
1485  LongTerm,
1487  Grey,
1489  MarginCall,
1491  Offline,
1493  Creditor,
1495  Debtor,
1497  NonExercise,
1499  AllocatedSub,
1500 };
1501 
1504 {
1506  Unknown,
1508  Day,
1512  GoodTilDate,
1513 };
1514 
1516 enum class TriggerStatus
1517 {
1519  Unknown,
1521  Deactive,
1523  Active,
1525  Released,
1526 };
1527 
1529 enum class OutsideRTH
1530 {
1532  Unknown,
1534  RTHOnly,
1536  AnyTime,
1538  Overnight,
1539 };
1540 
1542 struct Order
1543 {
1545  std::string order_id;
1549  std::string stock_name;
1555  std::optional<Decimal> price;
1557  std::optional<Decimal> executed_price;
1559  int64_t submitted_at;
1563  std::string symbol;
1567  std::optional<Decimal> last_done;
1569  std::optional<Decimal> trigger_price;
1571  std::string msg;
1577  std::optional<Date> expire_date;
1579  std::optional<int64_t> updated_at;
1581  std::optional<int64_t> trigger_at;
1583  std::optional<Decimal> trailing_amount;
1585  std::optional<Decimal> trailing_percent;
1587  std::optional<Decimal> limit_offset;
1589  std::optional<TriggerStatus> trigger_status;
1591  std::string currency;
1593  std::optional<OutsideRTH> outside_rth;
1595  std::optional<int32_t> limit_depth_level;
1597  std::optional<int32_t> trigger_count;
1599  std::optional<Decimal> monitor_price;
1601  std::string remark;
1602 };
1603 
1606 {
1610  std::string stock_name;
1614  std::string symbol;
1622  std::optional<Decimal> executed_price;
1624  std::string order_id;
1626  std::string currency;
1630  int64_t submitted_at;
1632  int64_t updated_at;
1634  std::optional<Decimal> trigger_price;
1636  std::string msg;
1640  std::optional<TriggerStatus> trigger_status;
1642  std::optional<int64_t> trigger_at;
1644  std::optional<Decimal> trailing_amount;
1646  std::optional<Decimal> trailing_percent;
1648  std::optional<Decimal> limit_offset;
1650  std::string account_no;
1652  std::optional<Decimal> last_share;
1654  std::optional<Decimal> last_price;
1656  std::string remark;
1657 };
1658 
1661 {
1663  std::optional<std::string> symbol;
1665  std::optional<std::vector<OrderStatus>> status;
1667  std::optional<OrderSide> side;
1669  std::optional<Market> market;
1671  std::optional<int64_t> start_at;
1673  std::optional<int64_t> end_at;
1674 };
1675 
1678 {
1680  std::optional<std::string> symbol;
1682  std::optional<std::vector<OrderStatus>> status;
1684  std::optional<OrderSide> side;
1686  std::optional<Market> market;
1688  std::optional<std::string> order_id;
1689 };
1690 
1693 {
1695  std::string order_id;
1699  std::optional<Decimal> price;
1701  std::optional<Decimal> trigger_price;
1703  std::optional<Decimal> limit_offset;
1705  std::optional<Decimal> trailing_amount;
1707  std::optional<Decimal> trailing_percent;
1709  std::optional<int32_t> limit_depth_level;
1711  std::optional<int32_t> trigger_count;
1713  std::optional<Decimal> monitor_price;
1715  std::optional<std::string> remark;
1716 };
1717 
1720 {
1722  std::string symbol;
1732  std::optional<Decimal> submitted_price;
1734  std::optional<Decimal> trigger_price;
1736  std::optional<Decimal> limit_offset;
1738  std::optional<Decimal> trailing_amount;
1740  std::optional<Decimal> trailing_percent;
1743  std::optional<Date> expire_date;
1745  std::optional<OutsideRTH> outside_rth;
1747  std::optional<int32_t> limit_depth_level;
1749  std::optional<int32_t> trigger_count;
1751  std::optional<Decimal> monitor_price;
1753  std::optional<std::string> remark;
1754 };
1755 
1758 {
1760  std::string order_id;
1761 };
1762 
1764 struct CashInfo
1765 {
1775  std::string currency;
1776 };
1777 
1780 {
1781  std::string currency;
1783 };
1784 
1787 {
1795  int32_t risk_level;
1799  std::string currency;
1801  std::vector<CashInfo> cash_infos;
1811  std::vector<FrozenTransactionFee> frozen_transaction_fees;
1812 };
1813 
1816 {
1818  Unknown,
1820  Out,
1822  In,
1823 };
1824 
1826 enum class BalanceType
1827 {
1829  Unknown,
1831  Cash,
1833  Stock,
1835  Fund,
1836 };
1837 
1839 struct CashFlow
1840 {
1850  std::string currency;
1852  int64_t business_time;
1854  std::optional<std::string> symbol;
1856  std::string description;
1857 };
1858 
1861 {
1863  int64_t start_at;
1865  int64_t end_at;
1867  std::optional<BalanceType> business_type;
1869  std::optional<std::string> symbol;
1871  std::optional<uintptr_t> page;
1873  std::optional<uintptr_t> size;
1874 };
1875 
1878 {
1880  std::optional<std::vector<std::string>> symbols;
1881 };
1882 
1885 {
1887  std::optional<std::vector<std::string>> symbols;
1888 };
1889 
1892 {
1894  std::string symbol;
1900  std::string symbol_name;
1902  std::string currency;
1907 };
1908 
1911 {
1913  std::string account_channel;
1915  std::vector<FundPosition> positions;
1916 };
1917 
1920 {
1922  std::vector<FundPositionChannel> channels;
1923 };
1924 
1927 {
1929  std::string symbol;
1931  std::string symbol_name;
1937  std::string currency;
1944  std::optional<Decimal> init_quantity;
1945 };
1946 
1949 {
1951  std::string account_channel;
1953  std::vector<StockPosition> positions;
1954 };
1955 
1958 {
1960  std::vector<StockPositionChannel> channels;
1961 };
1962 
1965 {
1972 };
1973 
1976 {
1977  Unknown,
1978  None,
1979  Calculated,
1980  Pending,
1981  Ready,
1982 };
1983 
1986 {
1987  Unknown,
1988  None,
1989  NoData,
1990  Pending,
1991  Done,
1992 };
1993 
1996 {
1997  Unknown,
1998  Broker,
1999  Third,
2000 };
2001 
2004 {
2014  std::string msg;
2016  int64_t time;
2017 };
2018 
2021 {
2023  std::string code;
2025  std::string name;
2029  std::string currency;
2030 };
2031 
2034 {
2038  std::string name;
2040  std::vector<OrderChargeFee> fees;
2041 };
2042 
2045 {
2049  std::string currency;
2051  std::vector<OrderChargeItem> items;
2052 };
2053 
2056 {
2058  std::string order_id;
2062  std::string stock_name;
2068  std::optional<Decimal> price;
2070  std::optional<Decimal> executed_price;
2072  int64_t submitted_at;
2076  std::string symbol;
2080  std::optional<Decimal> last_done;
2082  std::optional<Decimal> trigger_price;
2084  std::string msg;
2090  std::optional<Date> expire_date;
2092  std::optional<int64_t> updated_at;
2094  std::optional<int64_t> trigger_at;
2096  std::optional<Decimal> trailing_amount;
2098  std::optional<Decimal> trailing_percent;
2100  std::optional<Decimal> limit_offset;
2102  std::optional<TriggerStatus> trigger_status;
2104  std::string currency;
2106  std::optional<OutsideRTH> outside_rth;
2108  std::optional<int32_t> limit_depth_level;
2110  std::optional<int32_t> trigger_count;
2112  std::optional<Decimal> monitor_price;
2114  std::string remark;
2118  std::optional<Decimal> free_amount;
2120  std::optional<std::string> free_currency;
2124  std::optional<Decimal> deductions_amount;
2126  std::optional<std::string> deductions_currency;
2130  std::optional<Decimal> platform_deducted_amount;
2132  std::optional<std::string> platform_deducted_currency;
2134  std::vector<OrderHistoryDetail> history;
2137 };
2138 
2141 {
2143  std::string symbol;
2149  std::optional<Decimal> price;
2151  std::optional<std::string> currency;
2154  std::optional<std::string> order_id;
2157 };
2158 
2161 {
2166 };
2167 
2168 } // namespace trade
2169 
2170 namespace content {
2171 
2174 {
2176  std::string id;
2178  std::string title;
2180  std::string description;
2182  std::string url;
2184  int64_t published_at;
2188  int32_t likes_count;
2190  int32_t shares_count;
2191 };
2192 
2194 struct NewsItem
2195 {
2197  std::string id;
2199  std::string title;
2201  std::string description;
2203  std::string url;
2205  int64_t published_at;
2209  int32_t likes_count;
2211  int32_t shares_count;
2212 };
2213 
2216 {
2218  std::string member_id;
2220  std::string name;
2222  std::string avatar;
2223 };
2224 
2227 {
2229  std::string url;
2231  std::string sm;
2233  std::string lg;
2234 };
2235 
2238 {
2240  std::string id;
2242  std::string title;
2244  std::string description;
2246  std::string body;
2250  std::vector<std::string> tickers;
2252  std::vector<std::string> hashtags;
2254  std::vector<TopicImage> images;
2256  int32_t likes_count;
2260  int32_t views_count;
2262  int32_t shares_count;
2264  std::string topic_type;
2266  std::string detail_url;
2268  int64_t created_at;
2270  int64_t updated_at;
2271 };
2272 
2275 {
2277  int32_t page = 0;
2279  int32_t size = 0;
2281  std::string topic_type;
2282 };
2283 
2286 {
2288  std::string title;
2290  std::string body;
2292  std::string topic_type;
2294  std::vector<std::string> tickers;
2296  std::vector<std::string> hashtags;
2297 };
2298 
2299 } // namespace content
2300 
2301 // ── MarketContext types ───────────────────────────────────────────
2302 namespace market {
2303 
2306 {
2308  int32_t trade_status;
2309  std::string timestamp;
2311  std::string delay_timestamp;
2312  int32_t sub_status;
2314 };
2315 
2318 {
2319  std::vector<MarketTimeItem> market_time;
2320 };
2321 
2324 {
2325  std::string name;
2326  std::string parti_number;
2327  std::string chg;
2328  bool strong;
2329 };
2330 
2333 {
2334  std::vector<BrokerHoldingEntry> buy;
2335  std::vector<BrokerHoldingEntry> sell;
2336  std::string updated_at;
2337 };
2338 
2341 {
2342  std::string value;
2343  std::string chg_1;
2344  std::string chg_5;
2345  std::string chg_20;
2346  std::string chg_60;
2347 };
2348 
2351 {
2352  std::string name;
2353  std::string parti_number;
2356  bool strong;
2357 };
2358 
2361 {
2362  std::vector<BrokerHoldingDetailItem> list;
2363  std::string updated_at;
2364 };
2365 
2368 {
2369  std::string date;
2370  std::string holding;
2371  std::string ratio;
2372  std::string chg;
2373 };
2374 
2377 {
2378  std::vector<BrokerHoldingDailyItem> list;
2379 };
2380 
2383 {
2384  std::string aprice;
2385  std::string apreclose;
2386  std::string hprice;
2387  std::string hpreclose;
2388  std::string currency_rate;
2389  std::string ahpremium_rate;
2390  std::string price_spread;
2391  int64_t timestamp;
2392 };
2393 
2396 {
2397  std::vector<AhPremiumKline> klines;
2398 };
2399 
2402 {
2403  std::vector<AhPremiumKline> klines;
2404 };
2405 
2408 {
2409  std::string buy_amount;
2410  std::string neutral_amount;
2411  std::string price;
2412  std::string sell_amount;
2413 };
2414 
2417 {
2418  std::string avgprice;
2419  std::string buy;
2420  std::string neutral;
2421  std::string preclose;
2422  std::string sell;
2423  std::string timestamp;
2424  std::string total_amount;
2425  std::vector<std::string> trade_date;
2426  std::string trades_count;
2427 };
2428 
2431 {
2433  std::vector<TradePriceLevel> trades;
2434 };
2435 
2438 {
2439  std::string symbol;
2440  std::string code;
2441  std::string name;
2442  std::string full_name;
2443  std::string change;
2444  std::string last_done;
2445  std::string market;
2446  std::string logo;
2447  std::vector<std::string> labels;
2448 };
2449 
2452 {
2453  std::string timestamp;
2454  std::string alert_reason;
2455  int64_t alert_type;
2457  std::string post;
2458 };
2459 
2462 {
2463  std::vector<TopMoversEvent> events;
2465  std::string next_params;
2466 };
2467 
2470 {
2471  std::string symbol;
2472  std::string code;
2473  std::string name;
2474  std::string last_done;
2475  std::string chg;
2476  std::string change;
2477  std::string inflow;
2478  std::string market_cap;
2479  std::string industry;
2480  std::string pre_post_price;
2481  std::string pre_post_chg;
2482  std::string amplitude;
2483  std::string five_day_chg;
2484  std::string turnover_rate;
2485  std::string volume_rate;
2486  std::string pb_ttm;
2487 };
2488 
2491 {
2492  bool bmp;
2493  std::vector<RankListItem> lists;
2494 };
2495 
2498 {
2499  std::string symbol;
2500  std::string name;
2501  std::string alert_name;
2502  int64_t alert_time;
2503  std::vector<std::string> change_values;
2504  int32_t emotion;
2505 };
2506 
2509 {
2510  bool all_off;
2511  std::vector<AnomalyItem> changes;
2512 };
2513 
2516 {
2517  std::string symbol;
2518  std::string name;
2519  std::string last_done;
2520  std::string prev_close;
2521  std::string inflow;
2522  std::string balance;
2523  std::string amount;
2524  std::string total_shares;
2525  std::vector<std::string> tags;
2526  std::string intro;
2527  std::string market;
2528  std::string circulating_shares;
2529  bool delay;
2530  std::string chg;
2531  int32_t trade_status;
2532 };
2533 
2536 {
2537  int32_t fall_num;
2538  int32_t flat_num;
2539  int32_t rise_num;
2540  std::vector<ConstituentStock> stocks;
2541 };
2542 
2543 } // namespace market
2544 
2545 // ── FundamentalContext types ──────────────────────────────────────
2546 namespace fundamental {
2547 
2550 {
2551  Unknown = 0,
2552  StrongBuy = 1,
2553  Buy = 2,
2554  Hold = 3,
2555  Sell = 4,
2556  StrongSell = 5,
2557  Underperform = 6,
2558 };
2559 
2562 {
2563  std::string symbol;
2564  std::string id;
2565  std::string desc;
2566  std::string record_date;
2567  std::string ex_date;
2568  std::string payment_date;
2569 };
2570 
2573 {
2574  std::vector<DividendItem> list;
2575 };
2576 
2579 {
2580  int32_t buy;
2581  int32_t over;
2582  int32_t hold;
2583  int32_t under;
2584  int32_t sell;
2585  int32_t no_opinion;
2586  int32_t total;
2587  std::string start_date;
2588  std::string end_date;
2589 };
2590 
2593 {
2594  std::string highest_price;
2595  std::string lowest_price;
2596  std::string prev_close;
2597  std::string start_date;
2598  std::string end_date;
2599 };
2600 
2603 {
2604  int32_t buy;
2605  std::string date;
2606  int32_t hold;
2607  int32_t sell;
2608  int32_t strong_buy;
2609  int32_t under;
2610 };
2611 
2614 {
2617  int64_t industry_id;
2618  std::string industry_name;
2619  int32_t industry_rank;
2621  int32_t industry_mean;
2623 };
2624 
2627 {
2628  std::string ccy_symbol;
2629  std::string change;
2632  std::string target;
2633  std::string updated_at;
2634 };
2635 
2638 {
2641 };
2642 
2645 {
2646  int32_t buy;
2647  std::string date;
2648  int32_t hold;
2649  int32_t sell;
2650  int32_t strong_buy;
2651  int32_t under;
2652 };
2653 
2656 {
2657  std::string avg_target;
2658  std::string date;
2659  std::string max_target;
2660  std::string min_target;
2661  bool meet;
2662  std::string price;
2663  std::string timestamp;
2664 };
2665 
2668 {
2669  std::string ccy_symbol;
2670  std::vector<InstitutionRatingDetailEvaluateItem> evaluate_list;
2671  std::string data_percent;
2672  std::string prediction_accuracy;
2673  std::string updated_at;
2674  std::vector<InstitutionRatingDetailTargetItem> target_list;
2675 };
2676 
2679 {
2680  std::string forecast_eps_median;
2681  std::string forecast_eps_mean;
2682  std::string forecast_eps_lowest;
2689 };
2690 
2693 {
2694  std::vector<ForecastEpsItem> items;
2695 };
2696 
2699 {
2700  int64_t timestamp;
2701  std::string value;
2702 };
2703 
2706 {
2707  std::string desc;
2708  std::string high;
2709  std::string low;
2710  std::string median;
2711  std::vector<ValuationPoint> list;
2712 };
2713 
2716 {
2717  std::optional<ValuationMetricData> pe;
2718  std::optional<ValuationMetricData> pb;
2719  std::optional<ValuationMetricData> ps;
2720  std::optional<ValuationMetricData> dvd_yld;
2721 };
2722 
2725 {
2727 };
2728 
2731 {
2732  std::optional<ValuationMetricData> pe;
2733  std::optional<ValuationMetricData> pb;
2734  std::optional<ValuationMetricData> ps;
2735 };
2736 
2739 {
2740  std::string name;
2741  std::string company_name;
2742  std::string founded;
2743  std::string listing_date;
2744  std::string market;
2745  std::string region;
2746  std::string address;
2747  std::string office_address;
2748  std::string website;
2749  std::string issue_price;
2750  std::string shares_offered;
2751  std::string chairman;
2752  std::string secretary;
2753  std::string audit_inst;
2754  std::string category;
2755  std::string year_end;
2756  std::string employees;
2757  std::string phone;
2758  std::string fax;
2759  std::string email;
2760  std::string legal_repr;
2761  std::string manager;
2762  std::string ticker;
2763  std::string profile;
2764  int32_t sector;
2765 };
2766 
2769 {
2770  std::string symbol;
2771  std::string code;
2772  std::string market;
2773  std::string chg;
2774 };
2775 
2778 {
2779  std::string shareholder_id;
2780  std::string shareholder_name;
2781  std::string institution_type;
2782  std::string percent_of_shares;
2783  std::string shares_changed;
2784  std::string report_date;
2785  std::vector<ShareholderStock> stocks;
2786 };
2787 
2790 {
2791  std::vector<Shareholder> shareholder_list;
2792  std::string forward_url;
2793  int32_t total;
2794 };
2795 
2798 {
2799  std::string code;
2800  std::string symbol;
2801  std::string currency;
2802  std::string name;
2803  std::string position_ratio;
2804  std::string report_date;
2805 };
2806 
2809 {
2810  std::vector<FundHolder> lists;
2811 };
2812 
2815 {
2816  std::string id;
2817  std::string date;
2818  std::string date_str;
2819  std::string date_type;
2820  std::string date_zone;
2821  std::string act_type;
2822  std::string act_desc;
2823  std::string action;
2824  bool recent;
2825  bool is_delay;
2826  std::string delay_content;
2827 };
2828 
2831 {
2832  std::vector<CorpActionItem> items;
2833 };
2834 
2837 {
2838  std::string company_id;
2839  std::string company_name;
2840  std::string company_name_en;
2841  std::string company_name_zhcn;
2842  std::string symbol;
2843  std::string currency;
2844  std::string percent_of_shares;
2845  std::string shares_rank;
2846  std::string shares_value;
2847 };
2848 
2851 {
2852  std::string forward_url;
2853  std::vector<InvestSecurity> invest_securities;
2854 };
2855 
2858 {
2859  std::string field_name;
2860  std::string indicator_name;
2861  std::string indicator_value;
2862  std::string yoy;
2863 };
2864 
2867 {
2868  std::string id;
2869  std::string report;
2870  std::string title;
2871  std::string txt;
2872  bool latest;
2873  std::string web_url;
2874  std::string financial_currency;
2875  std::string financial_name;
2876  std::string financial_region;
2877  std::string financial_report;
2878  std::vector<OperatingIndicator> indicators;
2879 };
2880 
2883 {
2884  std::vector<OperatingItem> list;
2885 };
2886 
2889 {
2890  std::string list_json;
2891 };
2892 
2895 {
2896  std::string key;
2897  std::string name;
2898  std::string description;
2899  std::string actual;
2900  std::string estimate;
2901  std::string comp_value;
2902  std::string comp_desc;
2903  std::string comp;
2905 };
2906 
2909 {
2910  int32_t fiscal_year;
2911  std::string fiscal_period;
2912  std::string period_text;
2913  std::vector<ConsensusDetail> details;
2914 };
2915 
2918 {
2919  std::vector<ConsensusReport> list;
2920  int32_t current_index;
2921  std::string currency;
2922  std::vector<std::string> opt_periods;
2923  std::string current_period;
2924 };
2925 
2928 {
2929  std::string date;
2930  std::string pe;
2931  std::string pb;
2932  std::string ps;
2933 };
2934 
2937 {
2938  std::string symbol;
2939  std::string name;
2940  std::string currency;
2941  std::string assets;
2942  std::string bps;
2943  std::string eps;
2944  std::string dps;
2945  std::string div_yld;
2946  std::string div_payout_ratio;
2947  std::string five_y_avg_dps;
2948  std::string pe;
2949  std::vector<IndustryValuationHistory> history;
2950 };
2951 
2954 {
2955  std::vector<IndustryValuationItem> list;
2956 };
2957 
2960 {
2961  std::string low;
2962  std::string high;
2963  std::string median;
2964  std::string value;
2965  std::string ranking;
2966  std::string rank_index;
2967  std::string rank_total;
2968 };
2969 
2972 {
2973  std::optional<ValuationDist> pe;
2974  std::optional<ValuationDist> pb;
2975  std::optional<ValuationDist> ps;
2976 };
2977 
2980 {
2981  std::string id;
2982  std::string name;
2983  std::string name_zhcn;
2984  std::string name_en;
2985  std::string title;
2986  std::string biography;
2987  std::string photo;
2988  std::string wiki_url;
2989 };
2990 
2993 {
2994  std::string symbol;
2995  std::string forward_url;
2996  int32_t total;
2997  std::vector<Professional> professionals;
2998 };
2999 
3002 {
3003  std::vector<ExecutiveGroup> professional_list;
3004 };
3005 
3008 {
3009  std::string currency;
3010  std::string net_buyback_ttm;
3012 };
3013 
3016 {
3017  std::string fiscal_year;
3018  std::string fiscal_year_range;
3019  std::string net_buyback;
3020  std::string net_buyback_yield;
3022  std::string currency;
3023 };
3024 
3027 {
3030 };
3031 
3034 {
3035  std::optional<RecentBuybacks> recent_buybacks;
3036  std::vector<BuybackHistoryItem> buyback_history;
3037  std::vector<BuybackRatios> buyback_ratios;
3038 };
3039 
3042 {
3043  std::string name;
3044  std::string value;
3045  std::string value_type;
3046  std::string score;
3047  std::string letter;
3048 };
3049 
3052 {
3053  std::string name;
3054  std::string score;
3055  std::string letter;
3056 };
3057 
3060 {
3062  std::vector<RatingLeafIndicator> sub_indicators;
3063 };
3064 
3067 {
3068  int32_t kind;
3069  std::vector<RatingSubIndicatorGroup> sub_indicators;
3070 };
3071 
3074 {
3075  std::string style_txt_name;
3076  std::string scale_txt_name;
3077  std::string report_period_txt;
3078  std::string multi_score;
3079  std::string multi_letter;
3081  std::string industry_name;
3082  std::string industry_rank;
3083  std::string industry_total;
3084  std::string industry_mean_score;
3086  std::vector<RatingCategory> ratings;
3087 };
3088 
3091 {
3092  std::string name;
3093  std::string percent;
3094 };
3095 
3098 {
3099  std::string date;
3100  std::string total;
3101  std::string currency;
3102  std::vector<BusinessSegmentItem> business;
3103 };
3104 
3107 {
3108  std::string name;
3109  std::string percent;
3110  std::string value;
3111 };
3112 
3115 {
3116  std::string date;
3117  std::string total;
3118  std::string currency;
3119  std::vector<BusinessSegmentHistoryItem> business;
3120  std::vector<BusinessSegmentHistoryItem> regionals;
3121 };
3122 
3125 {
3126  std::vector<BusinessSegmentsHistoricalItem> historical;
3127 };
3128 
3131 {
3132  std::string date;
3133  std::string buy;
3134  std::string over;
3135  std::string hold;
3136  std::string under;
3137  std::string sell;
3138  std::string total;
3139 };
3140 
3143 {
3144  std::vector<InstitutionRatingViewItem> elist;
3145 };
3146 
3149 {
3150  std::string name;
3151  std::string counter_id;
3152  std::string chg;
3153  std::string leading_name;
3154  std::string leading_ticker;
3155  std::string leading_chg;
3156  std::string value_name;
3157  std::string value_data;
3158 };
3159 
3162 {
3163  std::vector<IndustryRankItem> lists;
3164 };
3165 
3168 {
3169  std::vector<IndustryRankGroup> items;
3170 };
3171 
3174 {
3175  std::string name;
3176  std::string market;
3177 };
3178 
3183 {
3184  std::string name;
3185  std::string counter_id;
3186  int32_t stock_num;
3187  std::string chg;
3188  std::string ytd_chg;
3189  std::string next_json;
3190 };
3191 
3194 {
3196  std::optional<IndustryPeerNode> chain;
3197 };
3198 
3201 {
3202  std::string value;
3203  std::string yoy;
3204  std::string cmp_desc;
3205  std::string est_value;
3206 };
3207 
3210 {
3211  std::string value;
3212  std::string yoy;
3213 };
3214 
3217 {
3218  std::string name;
3219  std::string ticker;
3220  std::string fp_start;
3221  std::string fp_end;
3222  std::string currency;
3223  std::string report_desc;
3224  std::optional<SnapshotForecastMetric> fo_revenue;
3225  std::optional<SnapshotForecastMetric> fo_ebit;
3226  std::optional<SnapshotForecastMetric> fo_eps;
3227  std::optional<SnapshotReportedMetric> fr_revenue;
3228  std::optional<SnapshotReportedMetric> fr_profit;
3229  std::optional<SnapshotReportedMetric> fr_operate_cash;
3230  std::optional<SnapshotReportedMetric> fr_invest_cash;
3231  std::optional<SnapshotReportedMetric> fr_finance_cash;
3232  std::optional<SnapshotReportedMetric> fr_total_assets;
3233  std::optional<SnapshotReportedMetric> fr_total_liability;
3234  std::string fr_roe_ttm;
3235  std::string fr_profit_margin;
3237  std::string fr_asset_turn_ttm;
3238  std::string fr_leverage_ttm;
3240 };
3241 
3244 {
3245  std::string date;
3246  std::string pe;
3247  std::string pb;
3248  std::string ps;
3249 };
3250 
3253 {
3254  std::string symbol;
3255  std::string name;
3256  std::string currency;
3257  std::string market_value;
3258  std::string price_close;
3259  std::string pe;
3260  std::string pb;
3261  std::string ps;
3262  std::string roe;
3263  std::string eps;
3264  std::string bps;
3265  std::string dps;
3266  std::string div_yld;
3267  std::string assets;
3268  std::vector<ValuationHistoryPoint> history;
3269 };
3270 
3273 {
3274  std::vector<ValuationComparisonItem> list;
3275 };
3276 
3278 enum class ElementType
3279 {
3281  Unknown,
3283  Holdings,
3285  Regional,
3287  AssetClass,
3289  Industry,
3290 };
3291 
3294 {
3296  std::string industry_id;
3298  std::string industry_name;
3300  std::string index;
3302  std::string index_name;
3304  std::string holding_type;
3306  std::string holding_type_name;
3307 };
3308 
3311 {
3313  std::string name;
3315  std::string code;
3317  std::string position_ratio;
3319  std::string symbol;
3321  std::map<std::string, std::string> name_locales;
3323  std::optional<HoldingDetail> holding_detail;
3324 };
3325 
3328 {
3330  std::string report_date;
3334  std::vector<AssetAllocationItem> lists;
3335 };
3336 
3339 {
3341  std::vector<AssetAllocationGroup> info;
3342 };
3343 
3344 } // namespace fundamental
3345 
3346 namespace alert {
3347 
3350 {
3352  std::string id;
3354  std::string indicator_id;
3356  bool enabled;
3358  int32_t frequency;
3360  int32_t scope;
3362  std::string text;
3364  std::vector<int32_t> state;
3366  std::string value_map;
3367 };
3368 
3371 {
3373  std::string symbol;
3375  std::string code;
3377  std::string market;
3379  std::string name;
3381  std::string price;
3383  std::string chg;
3385  std::string p_chg;
3387  std::string product;
3389  std::vector<AlertItem> indicators;
3390 };
3391 
3394 {
3396  std::vector<AlertSymbolGroup> lists;
3397 };
3398 
3399 } // namespace alert
3400 
3401 namespace dca {
3402 
3404 enum class DCAFrequency
3405 {
3406  Daily = 0,
3407  Weekly = 1,
3408  Fortnightly = 2,
3409  Monthly = 3,
3410 };
3411 
3413 enum class DCAStatus
3414 {
3415  Active = 0,
3416  Suspended = 1,
3417  Finished = 2,
3418 };
3419 
3421 struct DcaPlan
3422 {
3424  std::string plan_id;
3428  std::string symbol;
3430  std::string member_id;
3432  std::string aaid;
3434  std::string account_channel;
3436  std::string display_account;
3440  std::string per_invest_amount;
3444  std::string invest_day_of_week;
3446  std::string invest_day_of_month;
3450  std::string alter_hours;
3452  std::string created_at;
3454  std::string updated_at;
3456  std::string next_trd_date;
3458  std::string stock_name;
3460  std::string cum_amount;
3462  int64_t issue_number;
3464  std::string average_cost;
3466  std::string cum_profit;
3467 };
3468 
3470 struct DcaList
3471 {
3473  std::vector<DcaPlan> plans;
3474 };
3475 
3477 struct DcaStats
3478 {
3480  std::string active_count;
3482  std::string finished_count;
3484  std::string suspended_count;
3486  std::vector<DcaPlan> nearest_plans;
3488  std::string rest_days;
3490  std::string total_amount;
3492  std::string total_profit;
3493 };
3494 
3497 {
3499  std::string symbol;
3502 };
3503 
3506 {
3508  std::vector<DcaSupportInfo> infos;
3509 };
3510 
3513 {
3515  std::string trade_date;
3516 };
3517 
3520 {
3522  std::string plan_id;
3523 };
3524 
3527 {
3528  std::string created_at;
3529  std::string order_id;
3530  std::string status;
3531  std::string action;
3532  std::string order_type;
3533  std::string executed_qty;
3534  std::string executed_price;
3535  std::string executed_amount;
3536  std::string rejected_reason;
3537  std::string symbol;
3538 };
3539 
3542 {
3543  std::vector<DcaHistoryRecord> records;
3544  bool has_more;
3545 };
3546 
3547 } // namespace dca
3548 
3549 namespace sharelist {
3550 
3553 {
3555  std::string symbol;
3557  std::string name;
3559  std::string market;
3561  std::string code;
3563  std::string intro;
3567  std::optional<std::string> change;
3569  std::optional<std::string> last_done;
3571  std::optional<int32_t> trade_status;
3572 };
3573 
3576 {
3580  bool is_self;
3581 };
3582 
3585 {
3587  int64_t id;
3589  std::string name;
3591  std::string description;
3593  std::string cover;
3597  int64_t created_at;
3599  int64_t edited_at;
3601  std::string this_year_chg;
3603  std::string creator;
3605  std::vector<SharelistStock> stocks;
3609  std::string chg;
3613  std::string industry_code;
3614 };
3615 
3618 {
3620  std::vector<SharelistInfo> sharelists;
3622  std::vector<SharelistInfo> subscribed_sharelists;
3624  std::string tail_mark;
3625 };
3626 
3629 {
3634 };
3635 
3636 } // namespace sharelist
3637 
3638 } // namespace longbridge
Definition: decimal.hpp:13
Subscription flags.
Definition: types.hpp:73
static SubFlags QUOTE()
bool operator==(const SubFlags &other) const
Definition: types.hpp:104
static SubFlags BROKER()
static SubFlags DEPTH()
SubFlags(uint8_t value)
Definition: types.hpp:78
SubFlags & operator|=(const SubFlags &other)
Definition: types.hpp:87
SubFlags operator&(const SubFlags &other) const
Definition: types.hpp:93
static SubFlags TRADE()
bool contains(const SubFlags &other) const
Definition: types.hpp:109
SubFlags operator|(const SubFlags &other) const
Definition: types.hpp:82
SubFlags & operator&=(const SubFlags &other)
Definition: types.hpp:98
DCAStatus
DCA plan status.
Definition: types.hpp:3414
DCAFrequency
DCA investment frequency.
Definition: types.hpp:3405
InstitutionRecommend
Institutional analyst recommendation.
Definition: types.hpp:2550
ElementType
ETF asset allocation element type.
Definition: types.hpp:3279
WarrantSortBy
Warrant sort by.
Definition: types.hpp:1047
@ LowerStrikePrice
Lower strike price.
@ EffectiveLeverage
Effective leverage.
@ ConversionRatio
Conversion ratio.
@ ItmOtm
In/out of the bound.
@ ToCallPrice
Price interval from the call price.
@ ImpliedVolatility
Implied volatility.
@ OutstandingRatio
Outstanding ratio.
@ OutstandingQuantity
Outstanding quantity.
@ UpperStrikePrice
Upper strike price.
TradeSessions
Trade sessions.
Definition: types.hpp:1206
SecuritiesUpdateMode
Securities update mode.
Definition: types.hpp:810
OptionDirection
Option direction.
Definition: types.hpp:467
Period
Candlestick period.
Definition: types.hpp:131
@ Min45
Forty-Five Minutes.
@ Min20
Twenty Minutes.
@ Min15
Fifteen Minutes.
@ Min30
Thirty Minutes.
TradeSession
Trade session.
Definition: types.hpp:185
SecurityBoard
Security board.
Definition: types.hpp:270
@ STI
Singapore Straits Index.
@ USSector
US Industry Board.
@ HKPreIPO
HK PreIPO Security.
@ SHSTAR
SH Science and Technology Innovation Board.
@ SZMainNonConnect
SZ Main Board(Non Connect)
@ HKSector
HK Industry Board.
@ SZGEMNonConnect
SZ Gem Board(Non Connect)
@ SZMainConnect
SZ Main Board(Connect)
@ SHMainNonConnect
SH Main Board(Non Connect)
@ SHMainConnect
SH Main Board(Connect)
@ SZGEMConnect
SZ Gem Board(Connect)
@ USOptionS
US Sepecial Option.
@ SGSector
SG Industry Board.
@ HKEquity
Hong Kong Equity Securities.
@ USDJI
Dow Jones Industrial Average.
@ VIXIndex
CBOE Volatility Index.
@ CNSector
CN Industry Board.
FilterWarrantInOutBoundsType
Filter warrant in/out of the bounds type.
Definition: types.hpp:1109
TradeStatus
Trade status.
Definition: types.hpp:379
@ SplitStockHalts
Split Stock Halts.
@ WarrantPrepareList
Warrant To BeListed.
AdjustType
Adjust type.
Definition: types.hpp:692
TradeDirection
Trade direction.
Definition: types.hpp:522
WarrantType
Warrant type.
Definition: types.hpp:587
Granularity
Data granularity.
Definition: types.hpp:1230
@ Unknown
Unknown.
Definition: types.hpp:1232
@ Monthly
Monthly.
Definition: types.hpp:1238
@ Weekly
Weekly.
Definition: types.hpp:1236
@ Daily
Daily.
Definition: types.hpp:1234
SecurityListCategory
Security list category.
Definition: types.hpp:1184
WarrantStatus
Warrant status.
Definition: types.hpp:1118
CalcIndex
Calc index.
Definition: types.hpp:866
@ OutstandingQty
Outstanding quantity.
@ TenDayChangeRate
Ten days change ratio.
@ LeverageRatio
Leverage ratio.
@ LowerStrikePrice
Lower bound price.
@ EffectiveLeverage
Effective leverage.
@ ConversionRatio
Conversion ratio.
@ WarrantDelta
Warrant delta.
@ DividendRatioTtm
Dividend ratio (TTM)
@ ItmOtm
In/out of the bound.
@ YtdChangeRate
Year-to-date change ratio.
@ FiveDayChangeRate
Five days change ratio.
@ BalancePoint
Breakeven point.
@ ToCallPrice
Price interval from the call price.
@ TotalMarketValue
Total market value.
@ HalfYearChangeRate
Half year change ratio.
@ TurnoverRate
Turnover rate.
@ ImpliedVolatility
Implied volatility.
@ OutstandingRatio
Outstanding ratio.
@ FiveMinutesChangeRate
Five minutes change ratio.
@ UpperStrikePrice
Upper bound price.
@ OpenInterest
Open interest.
SortOrderType
Sort order type.
Definition: types.hpp:1038
OptionType
Option type.
Definition: types.hpp:456
FilterWarrantExpiryDate
Filter warrant expiry date type.
Definition: types.hpp:1096
OrderTag
Order tag.
Definition: types.hpp:1479
@ LongTerm
Long term Order.
@ MarginCall
Force Selling.
@ Creditor
Option Exercise Long.
@ NonExercise
Wavier Of Option Exercise.
@ AllocatedSub
Trade Allocation.
@ Debtor
Option Exercise Short.
CashFlowDirection
Cash flow direction.
Definition: types.hpp:1816
OutsideRTH
Enable or disable outside regular trading hours.
Definition: types.hpp:1530
@ RTHOnly
Regular trading hour only.
TriggerStatus
Trigger status.
Definition: types.hpp:1517
TopicType
Topic type.
Definition: types.hpp:1356
@ Private
Private notification for trade.
BalanceType
Balance type.
Definition: types.hpp:1827
DeductionStatus
Deduction status.
Definition: types.hpp:1986
OrderSide
Order side.
Definition: types.hpp:1435
CommissionFreeStatus
Commission-free Status.
Definition: types.hpp:1976
ChargeCategoryCode
Charge category code.
Definition: types.hpp:1996
OrderStatus
Order status.
Definition: types.hpp:1394
@ PartialWithdrawal
Partial Withdrawal.
@ ReplacedNotReported
Not reported (Replaced Order)
@ PendingCancel
Pending Cancel.
@ WaitToReplace
Wait To Replace.
@ PartialFilled
Partial Filled.
@ PendingReplace
Pending Replace.
@ VarietiesNotReported
Not reported (Conditional Order)
@ ProtectedNotReported
Not reported (Protected Order)
OrderType
Order type.
Definition: types.hpp:1446
@ TSLPAMT
Trailing Limit If Touched (Trailing Amount)
@ ALO
At-auction Limit Order.
@ MIT
Market If Touched.
@ SLO
Special Limit Order.
@ LIT
Limit If Touched.
@ TSMAMT
Trailing Market If Touched (Trailing Amount)
@ ELO
Enhanced Limit Order.
@ TSLPPCT
Trailing Limit If Touched (Trailing Percent)
@ TSMPCT
Trailing Market If Touched (Trailing Percent)
TimeInForceType
Time in force Type.
Definition: types.hpp:1504
@ GoodTilDate
Good Til Date Order.
@ GoodTilCanceled
Good Til Canceled Order.
Definition: alert_context.hpp:9
PushCandlestickMode
Push candlestick mode.
Definition: types.hpp:43
Market
Market.
Definition: types.hpp:52
@ Crypto
Crypto market.
Language
Language identifer.
Definition: types.hpp:32
Definition: types.hpp:11
uint8_t day
Definition: types.hpp:14
uint8_t month
Definition: types.hpp:13
int32_t year
Definition: types.hpp:12
Definition: types.hpp:25
Time time
Definition: types.hpp:27
Date date
Definition: types.hpp:26
Definition: types.hpp:18
uint8_t second
Definition: types.hpp:21
uint8_t minute
Definition: types.hpp:20
uint8_t hour
Definition: types.hpp:19
One price alert rule attached to a security.
Definition: types.hpp:3350
int32_t scope
Scope.
Definition: types.hpp:3360
int32_t frequency
Trigger frequency: 1=daily, 2=every_time, 3=once.
Definition: types.hpp:3358
std::string id
Alert ID.
Definition: types.hpp:3352
std::string indicator_id
Condition: "1"=price_rise, "2"=price_fall, "3"=pct_rise, "4"=pct_fall.
Definition: types.hpp:3354
std::string value_map
Trigger threshold, serialised as JSON: {"price":"500"} or {"chg":"5"}.
Definition: types.hpp:3366
bool enabled
Whether the alert is currently active.
Definition: types.hpp:3356
std::string text
Human-readable description of the trigger condition.
Definition: types.hpp:3362
std::vector< int32_t > state
Trigger state flags.
Definition: types.hpp:3364
Response for AlertContext::list — alerts grouped by security.
Definition: types.hpp:3394
std::vector< AlertSymbolGroup > lists
Alert groups, one per security.
Definition: types.hpp:3396
All price alerts for one security.
Definition: types.hpp:3371
std::string p_chg
Day change percentage.
Definition: types.hpp:3385
std::vector< AlertItem > indicators
Alert items for this security.
Definition: types.hpp:3389
std::string name
Security name.
Definition: types.hpp:3379
std::string code
Ticker code (without market)
Definition: types.hpp:3375
std::string market
Market, e.g. "HK".
Definition: types.hpp:3377
std::string chg
Day change amount.
Definition: types.hpp:3383
std::string price
Latest price.
Definition: types.hpp:3381
std::string product
Product type (may be empty)
Definition: types.hpp:3387
std::string symbol
Security symbol.
Definition: types.hpp:3373
Options for creating a topic.
Definition: types.hpp:2286
std::vector< std::string > tickers
Related stock tickers, format: {symbol}.{market}, max 10.
Definition: types.hpp:2294
std::string body
Topic body in Markdown format (required)
Definition: types.hpp:2290
std::string title
Topic title (required)
Definition: types.hpp:2288
std::vector< std::string > hashtags
Hashtag names, max 5.
Definition: types.hpp:2296
std::string topic_type
Content type: "article" or "post" (empty = default "post")
Definition: types.hpp:2292
Options for listing topics created by the current authenticated user.
Definition: types.hpp:2275
int32_t page
Page number (0 = default 1)
Definition: types.hpp:2277
int32_t size
Records per page, range 1~500 (0 = default 50)
Definition: types.hpp:2279
std::string topic_type
Filter by content type: "article" or "post" (empty = all)
Definition: types.hpp:2281
News item.
Definition: types.hpp:2195
std::string title
Title.
Definition: types.hpp:2199
int32_t likes_count
Likes count.
Definition: types.hpp:2209
std::string url
URL.
Definition: types.hpp:2203
int32_t shares_count
Shares count.
Definition: types.hpp:2211
std::string description
Description.
Definition: types.hpp:2201
int32_t comments_count
Comments count.
Definition: types.hpp:2207
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:2205
std::string id
News ID.
Definition: types.hpp:2197
My topic item (created by the current authenticated user)
Definition: types.hpp:2238
std::vector< std::string > hashtags
Hashtag names.
Definition: types.hpp:2252
int32_t comments_count
Comments count.
Definition: types.hpp:2258
std::string title
Title.
Definition: types.hpp:2242
int32_t views_count
Views count.
Definition: types.hpp:2260
std::string id
Topic ID.
Definition: types.hpp:2240
int64_t updated_at
Updated time (Unix timestamp)
Definition: types.hpp:2270
std::vector< std::string > tickers
Related stock tickers.
Definition: types.hpp:2250
int64_t created_at
Created time (Unix timestamp)
Definition: types.hpp:2268
std::string description
Plain text excerpt.
Definition: types.hpp:2244
int32_t shares_count
Shares count.
Definition: types.hpp:2262
std::vector< TopicImage > images
Images.
Definition: types.hpp:2254
int32_t likes_count
Likes count.
Definition: types.hpp:2256
std::string detail_url
URL to the full topic page.
Definition: types.hpp:2266
std::string topic_type
Content type: "article" or "post".
Definition: types.hpp:2264
TopicAuthor author
Author.
Definition: types.hpp:2248
std::string body
Markdown body.
Definition: types.hpp:2246
Topic author.
Definition: types.hpp:2216
std::string member_id
Member ID.
Definition: types.hpp:2218
std::string avatar
Avatar URL.
Definition: types.hpp:2222
std::string name
Display name.
Definition: types.hpp:2220
Topic image.
Definition: types.hpp:2227
std::string lg
Large image URL.
Definition: types.hpp:2233
std::string url
Original image URL.
Definition: types.hpp:2229
std::string sm
Small thumbnail URL.
Definition: types.hpp:2231
Topic item.
Definition: types.hpp:2174
std::string url
URL.
Definition: types.hpp:2182
int32_t likes_count
Likes count.
Definition: types.hpp:2188
std::string description
Description.
Definition: types.hpp:2180
std::string title
Title.
Definition: types.hpp:2178
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:2184
int32_t shares_count
Shares count.
Definition: types.hpp:2190
std::string id
Topic ID.
Definition: types.hpp:2176
int32_t comments_count
Comments count.
Definition: types.hpp:2186
Response for DCAContext::calc_date — next projected trade date.
Definition: types.hpp:3513
std::string trade_date
Next projected trade date (unix timestamp string)
Definition: types.hpp:3515
Response for DCAContext::create_dca and DCAContext::update_dca.
Definition: types.hpp:3520
std::string plan_id
The plan ID of the created or updated DCA plan.
Definition: types.hpp:3522
One DCA execution history record.
Definition: types.hpp:3527
std::string order_id
Definition: types.hpp:3529
std::string action
Definition: types.hpp:3531
std::string order_type
Definition: types.hpp:3532
std::string created_at
Definition: types.hpp:3528
std::string rejected_reason
Definition: types.hpp:3536
std::string executed_price
Definition: types.hpp:3534
std::string executed_amount
Definition: types.hpp:3535
std::string symbol
Definition: types.hpp:3537
std::string executed_qty
Definition: types.hpp:3533
std::string status
Definition: types.hpp:3530
Paginated DCA execution history response.
Definition: types.hpp:3542
bool has_more
Definition: types.hpp:3544
std::vector< DcaHistoryRecord > records
Definition: types.hpp:3543
Response for DCAContext::list and write operations.
Definition: types.hpp:3471
std::vector< DcaPlan > plans
DCA plans.
Definition: types.hpp:3473
One DCA (dollar-cost averaging) investment plan.
Definition: types.hpp:3422
std::string updated_at
Last updated time.
Definition: types.hpp:3454
std::string average_cost
Average cost.
Definition: types.hpp:3464
DCAFrequency invest_frequency
Investment frequency.
Definition: types.hpp:3442
std::string aaid
Account ID.
Definition: types.hpp:3432
std::string next_trd_date
Next investment date.
Definition: types.hpp:3456
std::string cum_amount
Cumulative invested amount.
Definition: types.hpp:3460
std::string invest_day_of_week
Day of week for weekly plans (e.g. "Mon")
Definition: types.hpp:3444
std::string stock_name
Security name.
Definition: types.hpp:3458
std::string alter_hours
Advance reminder hours ("1", "6", or "12")
Definition: types.hpp:3450
bool allow_margin_finance
Whether margin finance is allowed.
Definition: types.hpp:3448
std::string symbol
Security symbol.
Definition: types.hpp:3428
DCAStatus status
Plan status.
Definition: types.hpp:3426
int64_t issue_number
Number of completed investment periods.
Definition: types.hpp:3462
std::string display_account
Display account.
Definition: types.hpp:3436
std::string plan_id
Plan ID.
Definition: types.hpp:3424
std::string created_at
Creation time.
Definition: types.hpp:3452
std::string account_channel
Account channel.
Definition: types.hpp:3434
std::string per_invest_amount
Investment amount per period.
Definition: types.hpp:3440
std::string invest_day_of_month
Day of month for monthly plans.
Definition: types.hpp:3446
std::string member_id
Member ID.
Definition: types.hpp:3430
std::string cum_profit
Cumulative profit/loss.
Definition: types.hpp:3466
longbridge::Market market
Market.
Definition: types.hpp:3438
Response for DCAContext::stats — aggregate DCA statistics.
Definition: types.hpp:3478
std::string suspended_count
Number of suspended plans.
Definition: types.hpp:3484
std::string finished_count
Number of finished plans.
Definition: types.hpp:3482
std::vector< DcaPlan > nearest_plans
Nearest upcoming plans.
Definition: types.hpp:3486
std::string active_count
Number of active plans.
Definition: types.hpp:3480
std::string total_amount
Total invested amount.
Definition: types.hpp:3490
std::string total_profit
Total profit/loss.
Definition: types.hpp:3492
std::string rest_days
Days until next investment.
Definition: types.hpp:3488
DCA support info for one security.
Definition: types.hpp:3497
std::string symbol
Security symbol.
Definition: types.hpp:3499
bool support_regular_saving
Whether DCA is supported for this security.
Definition: types.hpp:3501
Response for DCAContext::check_support.
Definition: types.hpp:3506
std::vector< DcaSupportInfo > infos
Support info per security.
Definition: types.hpp:3508
One ETF asset allocation group (grouped by element type)
Definition: types.hpp:3328
ElementType asset_type
Element type of this group.
Definition: types.hpp:3332
std::string report_date
Report date (e.g. 20260601)
Definition: types.hpp:3330
std::vector< AssetAllocationItem > lists
Elements.
Definition: types.hpp:3334
One element of an ETF asset allocation group.
Definition: types.hpp:3311
std::string symbol
Security symbol (holdings only, e.g. NVDA.US)
Definition: types.hpp:3319
std::string position_ratio
Position ratio (e.g. 0.0861114)
Definition: types.hpp:3317
std::optional< HoldingDetail > holding_detail
Holding detail (holdings only)
Definition: types.hpp:3323
std::string name
Element name.
Definition: types.hpp:3313
std::map< std::string, std::string > name_locales
Localized names (locale → name)
Definition: types.hpp:3321
std::string code
Security code (holdings only, e.g. NVDA)
Definition: types.hpp:3315
ETF asset allocation response.
Definition: types.hpp:3339
std::vector< AssetAllocationGroup > info
Asset allocation groups.
Definition: types.hpp:3341
One business/regional segment item in a historical snapshot.
Definition: types.hpp:3107
std::string percent
Definition: types.hpp:3109
std::string value
Definition: types.hpp:3110
std::string name
Definition: types.hpp:3108
One business segment item (latest snapshot).
Definition: types.hpp:3091
std::string percent
Definition: types.hpp:3093
std::string name
Definition: types.hpp:3092
One historical business segments snapshot.
Definition: types.hpp:3115
std::string date
Definition: types.hpp:3116
std::vector< BusinessSegmentHistoryItem > business
Definition: types.hpp:3119
std::string currency
Definition: types.hpp:3118
std::string total
Definition: types.hpp:3117
std::vector< BusinessSegmentHistoryItem > regionals
Definition: types.hpp:3120
Business segments history response.
Definition: types.hpp:3125
std::vector< BusinessSegmentsHistoricalItem > historical
Definition: types.hpp:3126
Business segments response.
Definition: types.hpp:3098
std::string currency
Definition: types.hpp:3101
std::vector< BusinessSegmentItem > business
Definition: types.hpp:3102
std::string total
Definition: types.hpp:3100
std::string date
Definition: types.hpp:3099
Buyback data response.
Definition: types.hpp:3034
std::vector< BuybackHistoryItem > buyback_history
Definition: types.hpp:3036
std::optional< RecentBuybacks > recent_buybacks
Definition: types.hpp:3035
std::vector< BuybackRatios > buyback_ratios
Definition: types.hpp:3037
Historical annual buyback data point.
Definition: types.hpp:3016
std::string fiscal_year_range
Definition: types.hpp:3018
std::string currency
Definition: types.hpp:3022
std::string net_buyback_growth_rate
Definition: types.hpp:3021
std::string fiscal_year
Definition: types.hpp:3017
std::string net_buyback_yield
Definition: types.hpp:3020
std::string net_buyback
Definition: types.hpp:3019
Buyback payout and cash-flow ratios.
Definition: types.hpp:3027
std::string net_buyback_to_cashflow_ratio
Definition: types.hpp:3029
std::string net_buyback_payout_ratio
Definition: types.hpp:3028
Company overview and profile information.
Definition: types.hpp:2739
std::string fax
Definition: types.hpp:2758
std::string founded
Definition: types.hpp:2742
std::string address
Definition: types.hpp:2746
std::string website
Definition: types.hpp:2748
std::string ticker
Definition: types.hpp:2762
std::string year_end
Definition: types.hpp:2755
std::string profile
Definition: types.hpp:2763
std::string audit_inst
Definition: types.hpp:2753
int32_t sector
Definition: types.hpp:2764
std::string listing_date
Definition: types.hpp:2743
std::string category
Definition: types.hpp:2754
std::string chairman
Definition: types.hpp:2751
std::string name
Definition: types.hpp:2740
std::string phone
Definition: types.hpp:2757
std::string email
Definition: types.hpp:2759
std::string issue_price
Definition: types.hpp:2749
std::string employees
Definition: types.hpp:2756
std::string manager
Definition: types.hpp:2761
std::string legal_repr
Definition: types.hpp:2760
std::string region
Definition: types.hpp:2745
std::string office_address
Definition: types.hpp:2747
std::string secretary
Definition: types.hpp:2752
std::string company_name
Definition: types.hpp:2741
std::string shares_offered
Definition: types.hpp:2750
std::string market
Definition: types.hpp:2744
One consensus estimate detail for a financial metric.
Definition: types.hpp:2895
std::string comp_desc
Definition: types.hpp:2902
std::string key
Definition: types.hpp:2896
std::string estimate
Definition: types.hpp:2900
std::string description
Definition: types.hpp:2898
std::string name
Definition: types.hpp:2897
std::string comp
Definition: types.hpp:2903
bool is_released
Definition: types.hpp:2904
std::string actual
Definition: types.hpp:2899
std::string comp_value
Definition: types.hpp:2901
Consensus report for one fiscal period.
Definition: types.hpp:2909
std::string period_text
Definition: types.hpp:2912
int32_t fiscal_year
Definition: types.hpp:2910
std::vector< ConsensusDetail > details
Definition: types.hpp:2913
std::string fiscal_period
Definition: types.hpp:2911
One corporate action event (dividend, split, etc.).
Definition: types.hpp:2815
std::string id
Definition: types.hpp:2816
bool is_delay
Definition: types.hpp:2825
std::string date_str
Definition: types.hpp:2818
std::string act_desc
Definition: types.hpp:2822
std::string date_zone
Definition: types.hpp:2820
std::string act_type
Definition: types.hpp:2821
bool recent
Definition: types.hpp:2824
std::string date_type
Definition: types.hpp:2819
std::string date
Definition: types.hpp:2817
std::string action
Definition: types.hpp:2823
std::string delay_content
Definition: types.hpp:2826
Collection of corporate action events.
Definition: types.hpp:2831
std::vector< CorpActionItem > items
Definition: types.hpp:2832
One dividend event for a security.
Definition: types.hpp:2562
std::string symbol
Definition: types.hpp:2563
std::string record_date
Definition: types.hpp:2566
std::string desc
Definition: types.hpp:2565
std::string ex_date
Definition: types.hpp:2567
std::string id
Definition: types.hpp:2564
std::string payment_date
Definition: types.hpp:2568
List of dividend events.
Definition: types.hpp:2573
std::vector< DividendItem > list
Definition: types.hpp:2574
Executives for one security.
Definition: types.hpp:2993
std::string symbol
Definition: types.hpp:2994
int32_t total
Definition: types.hpp:2996
std::vector< Professional > professionals
Definition: types.hpp:2997
std::string forward_url
Definition: types.hpp:2995
List of executive groups per security.
Definition: types.hpp:3002
std::vector< ExecutiveGroup > professional_list
Definition: types.hpp:3003
Financial consensus response.
Definition: types.hpp:2918
int32_t current_index
Definition: types.hpp:2920
std::string current_period
Definition: types.hpp:2923
std::vector< ConsensusReport > list
Definition: types.hpp:2919
std::string currency
Definition: types.hpp:2921
std::vector< std::string > opt_periods
Definition: types.hpp:2922
Financial report snapshot response.
Definition: types.hpp:3217
std::string fr_asset_turn_ttm
Definition: types.hpp:3237
std::optional< SnapshotForecastMetric > fo_ebit
Definition: types.hpp:3225
std::string fp_end
Definition: types.hpp:3221
std::string name
Definition: types.hpp:3218
std::optional< SnapshotReportedMetric > fr_invest_cash
Definition: types.hpp:3230
std::string currency
Definition: types.hpp:3222
std::string fp_start
Definition: types.hpp:3220
std::string fr_leverage_ttm
Definition: types.hpp:3238
std::string report_desc
Definition: types.hpp:3223
std::optional< SnapshotReportedMetric > fr_profit
Definition: types.hpp:3228
std::optional< SnapshotReportedMetric > fr_operate_cash
Definition: types.hpp:3229
std::optional< SnapshotReportedMetric > fr_total_assets
Definition: types.hpp:3232
std::optional< SnapshotReportedMetric > fr_revenue
Definition: types.hpp:3227
std::string fr_roe_ttm
Definition: types.hpp:3234
std::optional< SnapshotForecastMetric > fo_eps
Definition: types.hpp:3226
std::string fr_profit_margin_ttm
Definition: types.hpp:3236
std::string fr_profit_margin
Definition: types.hpp:3235
std::optional< SnapshotForecastMetric > fo_revenue
Definition: types.hpp:3224
std::optional< SnapshotReportedMetric > fr_finance_cash
Definition: types.hpp:3231
std::optional< SnapshotReportedMetric > fr_total_liability
Definition: types.hpp:3233
std::string fr_debt_assets_ratio
Definition: types.hpp:3239
std::string ticker
Definition: types.hpp:3219
Financial reports — list_json contains serialized JSON.
Definition: types.hpp:2889
std::string list_json
Definition: types.hpp:2890
Collection of forecast EPS items.
Definition: types.hpp:2693
std::vector< ForecastEpsItem > items
Definition: types.hpp:2694
Forecast EPS data point from institutional analysts.
Definition: types.hpp:2679
std::string forecast_eps_highest
Definition: types.hpp:2683
std::string forecast_eps_median
Definition: types.hpp:2680
int64_t forecast_start_date
Definition: types.hpp:2687
int32_t institution_total
Definition: types.hpp:2684
std::string forecast_eps_mean
Definition: types.hpp:2681
int32_t institution_up
Definition: types.hpp:2685
int64_t forecast_end_date
Definition: types.hpp:2688
std::string forecast_eps_lowest
Definition: types.hpp:2682
int32_t institution_down
Definition: types.hpp:2686
One fund's holding record for a security.
Definition: types.hpp:2798
std::string code
Definition: types.hpp:2799
std::string name
Definition: types.hpp:2802
std::string currency
Definition: types.hpp:2801
std::string report_date
Definition: types.hpp:2804
std::string position_ratio
Definition: types.hpp:2803
std::string symbol
Definition: types.hpp:2800
Collection of fund holders for a security.
Definition: types.hpp:2809
std::vector< FundHolder > lists
Definition: types.hpp:2810
Holding detail of an ETF asset allocation element (holdings only)
Definition: types.hpp:3294
std::string industry_id
Industry ID.
Definition: types.hpp:3296
std::string index_name
Index name.
Definition: types.hpp:3302
std::string industry_name
Industry name.
Definition: types.hpp:3298
std::string holding_type_name
Holding type name.
Definition: types.hpp:3306
std::string holding_type
Holding type (e.g. E for stock)
Definition: types.hpp:3304
std::string index
Index counter ID (e.g. BK/US/CP99000)
Definition: types.hpp:3300
std::string ytd_chg
Definition: types.hpp:3188
std::string chg
Definition: types.hpp:3187
std::string next_json
Definition: types.hpp:3189
std::string counter_id
Definition: types.hpp:3185
std::string name
Definition: types.hpp:3184
int32_t stock_num
Definition: types.hpp:3186
Industry peers response.
Definition: types.hpp:3194
IndustryPeersTop top
Definition: types.hpp:3195
std::optional< IndustryPeerNode > chain
Definition: types.hpp:3196
Top-level industry info in the peers response.
Definition: types.hpp:3174
std::string name
Definition: types.hpp:3175
std::string market
Definition: types.hpp:3176
A group of ranked industry items.
Definition: types.hpp:3162
std::vector< IndustryRankItem > lists
Definition: types.hpp:3163
One ranked industry item.
Definition: types.hpp:3149
std::string leading_ticker
Definition: types.hpp:3154
std::string leading_name
Definition: types.hpp:3153
std::string value_name
Definition: types.hpp:3156
std::string value_data
Definition: types.hpp:3157
std::string counter_id
Definition: types.hpp:3151
std::string leading_chg
Definition: types.hpp:3155
std::string chg
Definition: types.hpp:3152
std::string name
Definition: types.hpp:3150
Industry rank response.
Definition: types.hpp:3168
std::vector< IndustryRankGroup > items
Definition: types.hpp:3169
Industry valuation distribution for PE, PB, PS ratios.
Definition: types.hpp:2972
std::optional< ValuationDist > pb
Definition: types.hpp:2974
std::optional< ValuationDist > pe
Definition: types.hpp:2973
std::optional< ValuationDist > ps
Definition: types.hpp:2975
Historical valuation snapshot for an industry peer.
Definition: types.hpp:2928
std::string ps
Definition: types.hpp:2932
std::string date
Definition: types.hpp:2929
std::string pe
Definition: types.hpp:2930
std::string pb
Definition: types.hpp:2931
Valuation data for one industry peer security.
Definition: types.hpp:2937
std::string currency
Definition: types.hpp:2940
std::string five_y_avg_dps
Definition: types.hpp:2947
std::string dps
Definition: types.hpp:2944
std::string div_yld
Definition: types.hpp:2945
std::string pe
Definition: types.hpp:2948
std::string assets
Definition: types.hpp:2941
std::vector< IndustryValuationHistory > history
Definition: types.hpp:2949
std::string bps
Definition: types.hpp:2942
std::string div_payout_ratio
Definition: types.hpp:2946
std::string name
Definition: types.hpp:2939
std::string eps
Definition: types.hpp:2943
std::string symbol
Definition: types.hpp:2938
List of industry valuation items.
Definition: types.hpp:2954
std::vector< IndustryValuationItem > list
Definition: types.hpp:2955
One evaluation data point in an institutional rating detail series.
Definition: types.hpp:2645
Detailed institutional rating including historical evaluate and target series.
Definition: types.hpp:2668
std::string prediction_accuracy
Definition: types.hpp:2672
std::string updated_at
Definition: types.hpp:2673
std::vector< InstitutionRatingDetailTargetItem > target_list
Definition: types.hpp:2674
std::string ccy_symbol
Definition: types.hpp:2669
std::string data_percent
Definition: types.hpp:2671
std::vector< InstitutionRatingDetailEvaluateItem > evaluate_list
Definition: types.hpp:2670
One target price data point in an institutional rating detail series.
Definition: types.hpp:2656
std::string min_target
Definition: types.hpp:2660
std::string avg_target
Definition: types.hpp:2657
std::string max_target
Definition: types.hpp:2659
std::string timestamp
Definition: types.hpp:2663
Combined latest and summary institutional rating data.
Definition: types.hpp:2638
InstitutionRatingLatest latest
Definition: types.hpp:2639
InstitutionRatingSummary summary
Definition: types.hpp:2640
Latest institutional rating data including industry comparison.
Definition: types.hpp:2614
RatingEvaluate evaluate
Definition: types.hpp:2615
int32_t industry_median
Definition: types.hpp:2622
RatingTarget target
Definition: types.hpp:2616
int32_t industry_rank
Definition: types.hpp:2619
std::string industry_name
Definition: types.hpp:2618
int32_t industry_mean
Definition: types.hpp:2621
int32_t industry_total
Definition: types.hpp:2620
int64_t industry_id
Definition: types.hpp:2617
Institutional rating summary with current recommendation and target price.
Definition: types.hpp:2627
std::string updated_at
Definition: types.hpp:2633
std::string target
Definition: types.hpp:2632
std::string change
Definition: types.hpp:2629
std::string ccy_symbol
Definition: types.hpp:2628
RatingSummaryEvaluate evaluate
Definition: types.hpp:2630
InstitutionRecommend recommend
Definition: types.hpp:2631
One historical rating distribution snapshot.
Definition: types.hpp:3131
std::string sell
Definition: types.hpp:3137
std::string over
Definition: types.hpp:3134
std::string under
Definition: types.hpp:3136
std::string hold
Definition: types.hpp:3135
std::string total
Definition: types.hpp:3138
std::string buy
Definition: types.hpp:3133
std::string date
Definition: types.hpp:3132
Institution rating views response.
Definition: types.hpp:3143
std::vector< InstitutionRatingViewItem > elist
Definition: types.hpp:3144
Investment relationship data including parent/subsidiary securities.
Definition: types.hpp:2851
std::string forward_url
Definition: types.hpp:2852
std::vector< InvestSecurity > invest_securities
Definition: types.hpp:2853
One security in an investment relationship (parent/subsidiary holding).
Definition: types.hpp:2837
std::string company_name_en
Definition: types.hpp:2840
std::string company_id
Definition: types.hpp:2838
std::string symbol
Definition: types.hpp:2842
std::string shares_value
Definition: types.hpp:2846
std::string percent_of_shares
Definition: types.hpp:2844
std::string company_name
Definition: types.hpp:2839
std::string currency
Definition: types.hpp:2843
std::string company_name_zhcn
Definition: types.hpp:2841
std::string shares_rank
Definition: types.hpp:2845
One operating indicator from a financial report.
Definition: types.hpp:2858
std::string indicator_value
Definition: types.hpp:2861
std::string indicator_name
Definition: types.hpp:2860
std::string field_name
Definition: types.hpp:2859
std::string yoy
Definition: types.hpp:2862
One operating report item with associated indicators.
Definition: types.hpp:2867
std::vector< OperatingIndicator > indicators
Definition: types.hpp:2878
std::string txt
Definition: types.hpp:2871
std::string financial_currency
Definition: types.hpp:2874
std::string title
Definition: types.hpp:2870
bool latest
Definition: types.hpp:2872
std::string financial_region
Definition: types.hpp:2876
std::string web_url
Definition: types.hpp:2873
std::string financial_name
Definition: types.hpp:2875
std::string financial_report
Definition: types.hpp:2877
std::string id
Definition: types.hpp:2868
std::string report
Definition: types.hpp:2869
List of operating report items.
Definition: types.hpp:2883
std::vector< OperatingItem > list
Definition: types.hpp:2884
One executive or board member.
Definition: types.hpp:2980
std::string title
Definition: types.hpp:2985
std::string id
Definition: types.hpp:2981
std::string name_en
Definition: types.hpp:2984
std::string photo
Definition: types.hpp:2987
std::string name
Definition: types.hpp:2982
std::string name_zhcn
Definition: types.hpp:2983
std::string biography
Definition: types.hpp:2986
std::string wiki_url
Definition: types.hpp:2988
One rating category (e.g. growth, profitability).
Definition: types.hpp:3067
int32_t kind
Definition: types.hpp:3068
std::vector< RatingSubIndicatorGroup > sub_indicators
Definition: types.hpp:3069
Buy/sell/hold evaluation counts from institutional analysts.
Definition: types.hpp:2579
std::string end_date
Definition: types.hpp:2588
int32_t total
Definition: types.hpp:2586
int32_t under
Definition: types.hpp:2583
int32_t buy
Definition: types.hpp:2580
int32_t over
Definition: types.hpp:2581
int32_t hold
Definition: types.hpp:2582
int32_t sell
Definition: types.hpp:2584
std::string start_date
Definition: types.hpp:2587
int32_t no_opinion
Definition: types.hpp:2585
A rating indicator node (parent or leaf).
Definition: types.hpp:3052
std::string letter
Definition: types.hpp:3055
std::string name
Definition: types.hpp:3053
std::string score
Definition: types.hpp:3054
A leaf rating indicator with a raw value.
Definition: types.hpp:3042
std::string value_type
Definition: types.hpp:3045
std::string score
Definition: types.hpp:3046
std::string name
Definition: types.hpp:3043
std::string letter
Definition: types.hpp:3047
std::string value
Definition: types.hpp:3044
A group of sub-indicators under one category indicator.
Definition: types.hpp:3060
RatingIndicator indicator
Definition: types.hpp:3061
std::vector< RatingLeafIndicator > sub_indicators
Definition: types.hpp:3062
Summary evaluation counts for one rating period.
Definition: types.hpp:2603
int32_t under
Definition: types.hpp:2609
int32_t sell
Definition: types.hpp:2607
int32_t strong_buy
Definition: types.hpp:2608
std::string date
Definition: types.hpp:2605
int32_t buy
Definition: types.hpp:2604
int32_t hold
Definition: types.hpp:2606
Analyst price target range.
Definition: types.hpp:2593
std::string prev_close
Definition: types.hpp:2596
std::string start_date
Definition: types.hpp:2597
std::string end_date
Definition: types.hpp:2598
std::string lowest_price
Definition: types.hpp:2595
std::string highest_price
Definition: types.hpp:2594
TTM (trailing twelve months) buyback summary.
Definition: types.hpp:3008
std::string net_buyback_yield_ttm
Definition: types.hpp:3011
std::string currency
Definition: types.hpp:3009
std::string net_buyback_ttm
Definition: types.hpp:3010
One institutional or major shareholder record.
Definition: types.hpp:2778
std::string percent_of_shares
Definition: types.hpp:2782
std::vector< ShareholderStock > stocks
Definition: types.hpp:2785
std::string shares_changed
Definition: types.hpp:2783
std::string shareholder_name
Definition: types.hpp:2780
std::string institution_type
Definition: types.hpp:2781
std::string report_date
Definition: types.hpp:2784
std::string shareholder_id
Definition: types.hpp:2779
Paginated list of shareholders.
Definition: types.hpp:2790
std::string forward_url
Definition: types.hpp:2792
int32_t total
Definition: types.hpp:2793
std::vector< Shareholder > shareholder_list
Definition: types.hpp:2791
A security held by a shareholder.
Definition: types.hpp:2769
std::string market
Definition: types.hpp:2772
std::string chg
Definition: types.hpp:2773
std::string symbol
Definition: types.hpp:2770
std::string code
Definition: types.hpp:2771
A forecast metric in the financial report snapshot.
Definition: types.hpp:3201
std::string est_value
Definition: types.hpp:3205
std::string cmp_desc
Definition: types.hpp:3204
std::string yoy
Definition: types.hpp:3203
std::string value
Definition: types.hpp:3202
A reported metric in the financial report snapshot.
Definition: types.hpp:3210
std::string yoy
Definition: types.hpp:3212
std::string value
Definition: types.hpp:3211
Stock ratings response.
Definition: types.hpp:3074
int32_t multi_score_change
Definition: types.hpp:3080
std::string multi_score
Definition: types.hpp:3078
std::string industry_rank
Definition: types.hpp:3082
std::string multi_letter
Definition: types.hpp:3079
std::string style_txt_name
Definition: types.hpp:3075
std::string industry_median_score
Definition: types.hpp:3085
std::string industry_total
Definition: types.hpp:3083
std::vector< RatingCategory > ratings
Definition: types.hpp:3086
std::string scale_txt_name
Definition: types.hpp:3076
std::string report_period_txt
Definition: types.hpp:3077
std::string industry_name
Definition: types.hpp:3081
std::string industry_mean_score
Definition: types.hpp:3084
One security's valuation comparison item.
Definition: types.hpp:3253
std::string currency
Definition: types.hpp:3256
std::string pb
Definition: types.hpp:3260
std::string market_value
Definition: types.hpp:3257
std::string assets
Definition: types.hpp:3267
std::string eps
Definition: types.hpp:3263
std::string pe
Definition: types.hpp:3259
std::string symbol
Definition: types.hpp:3254
std::string name
Definition: types.hpp:3255
std::vector< ValuationHistoryPoint > history
Definition: types.hpp:3268
std::string ps
Definition: types.hpp:3261
std::string price_close
Definition: types.hpp:3258
std::string dps
Definition: types.hpp:3265
std::string roe
Definition: types.hpp:3262
std::string div_yld
Definition: types.hpp:3266
std::string bps
Definition: types.hpp:3264
Valuation comparison response.
Definition: types.hpp:3273
std::vector< ValuationComparisonItem > list
Definition: types.hpp:3274
Valuation data container.
Definition: types.hpp:2725
ValuationMetricsData metrics
Definition: types.hpp:2726
Distribution statistics for one valuation metric within an industry.
Definition: types.hpp:2960
std::string ranking
Definition: types.hpp:2965
std::string rank_total
Definition: types.hpp:2967
std::string high
Definition: types.hpp:2962
std::string low
Definition: types.hpp:2961
std::string value
Definition: types.hpp:2964
std::string rank_index
Definition: types.hpp:2966
std::string median
Definition: types.hpp:2963
One historical valuation data point.
Definition: types.hpp:3244
std::string ps
Definition: types.hpp:3248
std::string pe
Definition: types.hpp:3246
std::string date
Definition: types.hpp:3245
std::string pb
Definition: types.hpp:3247
Historical valuation response (PE, PB, PS without dividend yield).
Definition: types.hpp:2731
std::optional< ValuationMetricData > pe
Definition: types.hpp:2732
std::optional< ValuationMetricData > ps
Definition: types.hpp:2734
std::optional< ValuationMetricData > pb
Definition: types.hpp:2733
Historical data for one valuation metric (PE, PB, PS, or dividend yield).
Definition: types.hpp:2706
std::vector< ValuationPoint > list
Definition: types.hpp:2711
std::string high
Definition: types.hpp:2708
std::string low
Definition: types.hpp:2709
std::string desc
Definition: types.hpp:2707
std::string median
Definition: types.hpp:2710
All valuation metrics for a security.
Definition: types.hpp:2716
std::optional< ValuationMetricData > dvd_yld
Definition: types.hpp:2720
std::optional< ValuationMetricData > ps
Definition: types.hpp:2719
std::optional< ValuationMetricData > pb
Definition: types.hpp:2718
std::optional< ValuationMetricData > pe
Definition: types.hpp:2717
One data point in a valuation time series.
Definition: types.hpp:2699
int64_t timestamp
Definition: types.hpp:2700
std::string value
Definition: types.hpp:2701
Intraday A/H premium kline series.
Definition: types.hpp:2402
std::vector< AhPremiumKline > klines
Definition: types.hpp:2403
A/H premium candlestick data point.
Definition: types.hpp:2383
std::string currency_rate
Definition: types.hpp:2388
std::string hprice
Definition: types.hpp:2386
std::string hpreclose
Definition: types.hpp:2387
int64_t timestamp
Definition: types.hpp:2391
std::string price_spread
Definition: types.hpp:2390
std::string ahpremium_rate
Definition: types.hpp:2389
std::string aprice
Definition: types.hpp:2384
std::string apreclose
Definition: types.hpp:2385
Historical A/H premium kline series.
Definition: types.hpp:2396
std::vector< AhPremiumKline > klines
Definition: types.hpp:2397
A single anomaly (unusual market movement) alert item.
Definition: types.hpp:2498
std::string alert_name
Definition: types.hpp:2501
int64_t alert_time
Definition: types.hpp:2502
std::string symbol
Definition: types.hpp:2499
std::string name
Definition: types.hpp:2500
int32_t emotion
Definition: types.hpp:2504
std::vector< std::string > change_values
Definition: types.hpp:2503
Response containing anomaly alert items.
Definition: types.hpp:2509
std::vector< AnomalyItem > changes
Definition: types.hpp:2511
bool all_off
Definition: types.hpp:2510
Holding change figures over multiple periods for a broker.
Definition: types.hpp:2341
std::string chg_5
Definition: types.hpp:2344
std::string chg_60
Definition: types.hpp:2346
std::string chg_1
Definition: types.hpp:2343
std::string chg_20
Definition: types.hpp:2345
std::string value
Definition: types.hpp:2342
Historical daily broker holding series.
Definition: types.hpp:2377
std::vector< BrokerHoldingDailyItem > list
Definition: types.hpp:2378
One day's broker holding snapshot.
Definition: types.hpp:2368
std::string chg
Definition: types.hpp:2372
std::string holding
Definition: types.hpp:2370
std::string ratio
Definition: types.hpp:2371
std::string date
Definition: types.hpp:2369
Full broker holding detail with historical change data.
Definition: types.hpp:2361
std::vector< BrokerHoldingDetailItem > list
Definition: types.hpp:2362
std::string updated_at
Definition: types.hpp:2363
Detailed holding entry for one broker including ratio and share changes.
Definition: types.hpp:2351
std::string name
Definition: types.hpp:2352
BrokerHoldingChanges ratio
Definition: types.hpp:2354
bool strong
Definition: types.hpp:2356
BrokerHoldingChanges shares
Definition: types.hpp:2355
std::string parti_number
Definition: types.hpp:2353
One broker's holding entry in a top-holders list.
Definition: types.hpp:2324
bool strong
Definition: types.hpp:2328
std::string name
Definition: types.hpp:2325
std::string parti_number
Definition: types.hpp:2326
std::string chg
Definition: types.hpp:2327
Top broker holders (buy and sell sides).
Definition: types.hpp:2333
std::vector< BrokerHoldingEntry > sell
Definition: types.hpp:2335
std::string updated_at
Definition: types.hpp:2336
std::vector< BrokerHoldingEntry > buy
Definition: types.hpp:2334
One constituent stock of an index.
Definition: types.hpp:2516
bool delay
Definition: types.hpp:2529
std::string last_done
Definition: types.hpp:2519
std::vector< std::string > tags
Definition: types.hpp:2525
std::string intro
Definition: types.hpp:2526
std::string prev_close
Definition: types.hpp:2520
std::string amount
Definition: types.hpp:2523
std::string circulating_shares
Definition: types.hpp:2528
int32_t trade_status
Definition: types.hpp:2531
std::string symbol
Definition: types.hpp:2517
std::string name
Definition: types.hpp:2518
std::string market
Definition: types.hpp:2527
std::string inflow
Definition: types.hpp:2521
std::string total_shares
Definition: types.hpp:2524
std::string balance
Definition: types.hpp:2522
std::string chg
Definition: types.hpp:2530
Index constituent stocks with rise/fall/flat counts.
Definition: types.hpp:2536
std::vector< ConstituentStock > stocks
Definition: types.hpp:2540
int32_t fall_num
Definition: types.hpp:2537
int32_t rise_num
Definition: types.hpp:2539
int32_t flat_num
Definition: types.hpp:2538
Response containing trading status for all markets.
Definition: types.hpp:2318
std::vector< MarketTimeItem > market_time
Definition: types.hpp:2319
Current trading status and timestamps for one market.
Definition: types.hpp:2306
int32_t delay_trade_status
Definition: types.hpp:2310
int32_t delay_sub_status
Definition: types.hpp:2313
longbridge::Market market
Definition: types.hpp:2307
int32_t sub_status
Definition: types.hpp:2312
std::string delay_timestamp
Definition: types.hpp:2311
int32_t trade_status
Definition: types.hpp:2308
std::string timestamp
Definition: types.hpp:2309
One ranked security item.
Definition: types.hpp:2470
std::string volume_rate
Definition: types.hpp:2485
std::string change
Definition: types.hpp:2476
std::string pb_ttm
Definition: types.hpp:2486
std::string pre_post_chg
Definition: types.hpp:2481
std::string turnover_rate
Definition: types.hpp:2484
std::string code
Definition: types.hpp:2472
std::string last_done
Definition: types.hpp:2474
std::string pre_post_price
Definition: types.hpp:2480
std::string name
Definition: types.hpp:2473
std::string industry
Definition: types.hpp:2479
std::string chg
Definition: types.hpp:2475
std::string market_cap
Definition: types.hpp:2478
std::string amplitude
Definition: types.hpp:2482
std::string symbol
Definition: types.hpp:2471
std::string inflow
Definition: types.hpp:2477
std::string five_day_chg
Definition: types.hpp:2483
Response for rank_list.
Definition: types.hpp:2491
bool bmp
Definition: types.hpp:2492
std::vector< RankListItem > lists
Definition: types.hpp:2493
One top-movers event entry.
Definition: types.hpp:2452
std::string post
Definition: types.hpp:2457
TopMoversStock stock
Definition: types.hpp:2456
int64_t alert_type
Definition: types.hpp:2455
std::string alert_reason
Definition: types.hpp:2454
std::string timestamp
Definition: types.hpp:2453
Response for top_movers.
Definition: types.hpp:2462
std::string next_params
Pagination cursor as a JSON string.
Definition: types.hpp:2465
std::vector< TopMoversEvent > events
Definition: types.hpp:2463
Stock information within a top-movers event.
Definition: types.hpp:2438
std::string symbol
Definition: types.hpp:2439
std::vector< std::string > labels
Definition: types.hpp:2447
std::string name
Definition: types.hpp:2441
std::string code
Definition: types.hpp:2440
std::string change
Definition: types.hpp:2443
std::string full_name
Definition: types.hpp:2442
std::string last_done
Definition: types.hpp:2444
std::string market
Definition: types.hpp:2445
std::string logo
Definition: types.hpp:2446
Trade volume and amount aggregated at one price level.
Definition: types.hpp:2408
std::string buy_amount
Definition: types.hpp:2409
std::string price
Definition: types.hpp:2411
std::string sell_amount
Definition: types.hpp:2412
std::string neutral_amount
Definition: types.hpp:2410
Aggregate buy/sell/neutral trade statistics for a security.
Definition: types.hpp:2417
std::string total_amount
Definition: types.hpp:2424
std::string timestamp
Definition: types.hpp:2423
std::string trades_count
Definition: types.hpp:2426
std::string preclose
Definition: types.hpp:2421
std::string neutral
Definition: types.hpp:2420
std::string buy
Definition: types.hpp:2419
std::string sell
Definition: types.hpp:2422
std::vector< std::string > trade_date
Definition: types.hpp:2425
std::string avgprice
Definition: types.hpp:2418
Response for trade statistics including per-price-level breakdown.
Definition: types.hpp:2431
std::vector< TradePriceLevel > trades
Definition: types.hpp:2433
TradeStatistics statistics
Definition: types.hpp:2432
Brokers.
Definition: types.hpp:250
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:254
int32_t position
Position.
Definition: types.hpp:252
Candlestick.
Definition: types.hpp:553
int64_t timestamp
Timestamp.
Definition: types.hpp:567
TradeSession trade_session
Trade session.
Definition: types.hpp:569
Decimal turnover
Turnover.
Definition: types.hpp:565
Decimal close
Close price.
Definition: types.hpp:555
Decimal high
High price.
Definition: types.hpp:561
Decimal open
Open price.
Definition: types.hpp:557
int64_t volume
Volume.
Definition: types.hpp:563
Decimal low
Low price.
Definition: types.hpp:559
Capital distribution.
Definition: types.hpp:762
Decimal large
Large order.
Definition: types.hpp:764
Decimal small
Small order.
Definition: types.hpp:768
Decimal medium
Medium order.
Definition: types.hpp:766
Capital distribution response.
Definition: types.hpp:773
int64_t timestamp
Time.
Definition: types.hpp:775
CapitalDistribution capital_in
Inflow capital data.
Definition: types.hpp:777
CapitalDistribution capital_out
Outflow capital data.
Definition: types.hpp:779
Capital flow line.
Definition: types.hpp:753
Decimal inflow
Inflow capital data.
Definition: types.hpp:755
int64_t timestamp
Time.
Definition: types.hpp:757
An request for create watchlist group.
Definition: types.hpp:821
std::string name
Group name.
Definition: types.hpp:823
std::vector< std::string > securities
Securities.
Definition: types.hpp:825
Definition: types.hpp:226
std::optional< Decimal > price
Price.
Definition: types.hpp:230
int32_t position
Position.
Definition: types.hpp:228
int64_t volume
Volume.
Definition: types.hpp:232
int64_t order_num
Number of orders.
Definition: types.hpp:234
Derivative type.
Definition: types.hpp:122
uint8_t value
Definition: types.hpp:123
Filing item.
Definition: types.hpp:1252
std::string description
Description.
Definition: types.hpp:1258
std::string file_name
File name.
Definition: types.hpp:1260
std::string id
Filing ID.
Definition: types.hpp:1254
std::string title
Title.
Definition: types.hpp:1256
std::vector< std::string > file_urls
File URLs.
Definition: types.hpp:1262
int64_t published_at
Published time (Unix timestamp)
Definition: types.hpp:1264
History market temperature response.
Definition: types.hpp:1243
Granularity granularity
Granularity.
Definition: types.hpp:1245
std::vector< MarketTemperature > records
Records.
Definition: types.hpp:1247
Intraday line.
Definition: types.hpp:682
Decimal avg_price
Definition: types.hpp:687
Decimal turnover
Definition: types.hpp:686
int64_t timestamp
Definition: types.hpp:684
Decimal price
Definition: types.hpp:683
int64_t volume
Definition: types.hpp:685
Issuer info.
Definition: types.hpp:712
int32_t issuer_id
Issuer ID.
Definition: types.hpp:714
std::string name_en
Issuer name (en)
Definition: types.hpp:718
std::string name_cn
Issuer name (zh-CN)
Definition: types.hpp:716
std::string name_hk
Issuer name (zh-HK)
Definition: types.hpp:720
Market temperature.
Definition: types.hpp:1215
int32_t temperature
Temperature value.
Definition: types.hpp:1217
int32_t valuation
Market valuation.
Definition: types.hpp:1221
std::string description
Temperature description.
Definition: types.hpp:1219
int32_t sentiment
Market sentiment.
Definition: types.hpp:1223
int64_t timestamp
Time.
Definition: types.hpp:1225
Market trading days.
Definition: types.hpp:744
std::vector< Date > half_trading_days
Half trading days.
Definition: types.hpp:748
std::vector< Date > trading_days
Trading days.
Definition: types.hpp:746
Market trading session.
Definition: types.hpp:735
std::vector< TradingSessionInfo > trade_session
Trading session.
Definition: types.hpp:739
Market market
Market.
Definition: types.hpp:737
Quote of option.
Definition: types.hpp:478
Decimal prev_close
Yesterday's close.
Definition: types.hpp:483
TradeStatus trade_status
Security trading status.
Definition: types.hpp:497
OptionDirection direction
Option direction.
Definition: types.hpp:513
int64_t open_interest
Number of open positions.
Definition: types.hpp:501
int64_t timestamp
Time of latest price.
Definition: types.hpp:491
Decimal contract_size
Contract size.
Definition: types.hpp:511
Decimal contract_multiplier
Contract multiplier.
Definition: types.hpp:507
Decimal turnover
Turnover.
Definition: types.hpp:495
Decimal strike_price
Strike price.
Definition: types.hpp:505
OptionType contract_type
Option type.
Definition: types.hpp:509
Date expiry_date
Exprity date.
Definition: types.hpp:503
int64_t volume
Volume.
Definition: types.hpp:493
Decimal low
Low.
Definition: types.hpp:489
Decimal last_done
Latest price.
Definition: types.hpp:481
Decimal historical_volatility
Underlying security historical volatility of the option.
Definition: types.hpp:515
Decimal high
High.
Definition: types.hpp:487
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:499
std::string symbol
Security code.
Definition: types.hpp:479
Decimal open
Open.
Definition: types.hpp:485
std::string underlying_symbol
Underlying security symbol of the option.
Definition: types.hpp:517
Definition: types.hpp:1346
std::vector< OptionVolumeDailyStat > stats
Definition: types.hpp:1347
std::string total_call_open_interest
Definition: types.hpp:1341
std::string symbol
Definition: types.hpp:1333
std::string put_call_open_interest_ratio
Definition: types.hpp:1342
std::string total_put_open_interest
Definition: types.hpp:1340
std::string total_put_volume
Definition: types.hpp:1336
std::string total_open_interest
Definition: types.hpp:1339
std::string total_volume
Definition: types.hpp:1335
std::string put_call_volume_ratio
Definition: types.hpp:1338
std::string total_call_volume
Definition: types.hpp:1337
std::string timestamp
Definition: types.hpp:1334
Definition: types.hpp:1326
std::string c
Definition: types.hpp:1327
std::string p
Definition: types.hpp:1328
Definition: types.hpp:669
std::string name_hk
Participant name (zh-HK)
Definition: types.hpp:677
std::string name_en
Participant name (en)
Definition: types.hpp:675
std::vector< int32_t > broker_ids
Broker IDs.
Definition: types.hpp:671
std::string name_cn
Participant name (zh-CN)
Definition: types.hpp:673
Quote of US pre/post market.
Definition: types.hpp:406
int64_t timestamp
Time of latest price.
Definition: types.hpp:410
Decimal low
Low.
Definition: types.hpp:418
Decimal turnover
Turnover.
Definition: types.hpp:414
Decimal high
High.
Definition: types.hpp:416
int64_t volume
Volume.
Definition: types.hpp:412
Decimal last_done
Latest price.
Definition: types.hpp:408
Decimal prev_close
Close of the last trade session.
Definition: types.hpp:420
Brokers message.
Definition: types.hpp:259
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:265
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:263
std::string symbol
Security code.
Definition: types.hpp:261
Candlestick updated message.
Definition: types.hpp:574
Period period
Period type.
Definition: types.hpp:578
bool is_confirmed
Is confirmed.
Definition: types.hpp:582
std::string symbol
Security code.
Definition: types.hpp:576
Candlestick candlestick
Candlestick.
Definition: types.hpp:580
Depth message.
Definition: types.hpp:239
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:243
std::string symbol
Security code.
Definition: types.hpp:241
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:245
Quote message.
Definition: types.hpp:198
Decimal high
High.
Definition: types.hpp:206
TradeStatus trade_status
Security trading status.
Definition: types.hpp:216
int64_t timestamp
Time of latest price.
Definition: types.hpp:210
Decimal last_done
Latest price.
Definition: types.hpp:202
Decimal turnover
Turnover.
Definition: types.hpp:214
int64_t current_volume
Increase volume between pushes.
Definition: types.hpp:220
int64_t volume
Volume.
Definition: types.hpp:212
Decimal urrent_turnover
Increase turnover between pushes.
Definition: types.hpp:222
TradeSession trade_session
Trade session.
Definition: types.hpp:218
Decimal low
Low.
Definition: types.hpp:208
Decimal open
Open.
Definition: types.hpp:204
std::string symbol
Security code.
Definition: types.hpp:200
Trades message.
Definition: types.hpp:544
std::string symbol
Security code.
Definition: types.hpp:546
std::vector< Trade > trades
Trades data.
Definition: types.hpp:548
Quote package detail.
Definition: types.hpp:1191
int64_t start_at
Start at.
Definition: types.hpp:1199
std::string description
Description.
Definition: types.hpp:1197
std::string key
Key.
Definition: types.hpp:1193
int64_t end_at
End at.
Definition: types.hpp:1201
std::string name
Name.
Definition: types.hpp:1195
Real-time quote.
Definition: types.hpp:843
Decimal high
High.
Definition: types.hpp:851
Decimal open
Open.
Definition: types.hpp:849
std::string symbol
Security code.
Definition: types.hpp:845
Decimal turnover
Turnover.
Definition: types.hpp:859
int64_t timestamp
Time of latest price.
Definition: types.hpp:855
int64_t volume
Volume.
Definition: types.hpp:857
Decimal last_done
Latest price.
Definition: types.hpp:847
TradeStatus trade_status
Security trading status.
Definition: types.hpp:861
Decimal low
Low.
Definition: types.hpp:853
Security brokers.
Definition: types.hpp:661
std::vector< Brokers > bid_brokers
Bid brokers.
Definition: types.hpp:665
std::vector< Brokers > ask_brokers
Ask brokers.
Definition: types.hpp:663
Security calc index response.
Definition: types.hpp:951
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1021
std::optional< Decimal > change_rate
Change ratio.
Definition: types.hpp:959
std::optional< Decimal > lower_strike_price
Lower bound price.
Definition: types.hpp:997
std::optional< Date > expiry_date
Expiry date.
Definition: types.hpp:991
std::optional< Decimal > theta
Theta.
Definition: types.hpp:1029
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1019
std::optional< Decimal > leverage_ratio
Leverage ratio.
Definition: types.hpp:1017
std::optional< Decimal > five_day_change_rate
Five days change ratio.
Definition: types.hpp:983
std::optional< int64_t > open_interest
Open interest.
Definition: types.hpp:1023
std::optional< Decimal > ten_day_change_rate
Ten days change ratio.
Definition: types.hpp:985
std::optional< Decimal > volume_ratio
Volume ratio.
Definition: types.hpp:975
std::string symbol
Security code.
Definition: types.hpp:953
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1011
std::optional< Decimal > turnover
Turnover.
Definition: types.hpp:963
std::optional< Decimal > warrant_delta
Warrant delta.
Definition: types.hpp:1009
std::optional< Decimal > ytd_change_rate
Year-to-date change ratio.
Definition: types.hpp:965
std::optional< int64_t > volume
Volume.
Definition: types.hpp:961
std::optional< Decimal > capital_flow
Capital flow.
Definition: types.hpp:971
std::optional< int64_t > outstanding_qty
Outstanding quantity.
Definition: types.hpp:999
std::optional< Decimal > pe_ttm_ratio
PE (TTM)
Definition: types.hpp:977
std::optional< Decimal > last_done
Latest price.
Definition: types.hpp:955
std::optional< Decimal > delta
Delta.
Definition: types.hpp:1025
std::optional< Decimal > vega
Vega.
Definition: types.hpp:1031
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1005
std::optional< Decimal > outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1001
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:993
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1007
std::optional< Decimal > half_year_change_rate
Half year change ratio.
Definition: types.hpp:987
std::optional< Decimal > amplitude
Amplitude.
Definition: types.hpp:973
std::optional< Decimal > premium
Premium.
Definition: types.hpp:1003
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1015
std::optional< Decimal > turnover_rate
Turnover rate.
Definition: types.hpp:967
std::optional< Decimal > upper_strike_price
Upper bound price.
Definition: types.hpp:995
std::optional< Decimal > rho
Rho.
Definition: types.hpp:1033
std::optional< Decimal > dividend_ratio_ttm
Dividend ratio (TTM)
Definition: types.hpp:981
std::optional< Decimal > gamma
Gamma.
Definition: types.hpp:1027
std::optional< Decimal > change_value
Change value.
Definition: types.hpp:957
std::optional< Decimal > total_market_value
Total market value.
Definition: types.hpp:969
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1013
std::optional< Decimal > five_minutes_change_rate
Five minutes change ratio.
Definition: types.hpp:989
std::optional< Decimal > pb_ratio
PB.
Definition: types.hpp:979
Security depth.
Definition: types.hpp:652
std::vector< Depth > asks
Ask depth.
Definition: types.hpp:654
std::vector< Depth > bids
Bid depth.
Definition: types.hpp:656
Security.
Definition: types.hpp:329
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:337
std::string symbol
Security code.
Definition: types.hpp:331
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:333
std::string name_en
Security name (en)
Definition: types.hpp:335
Quote of securitity.
Definition: types.hpp:425
Decimal last_done
Latest price.
Definition: types.hpp:429
Decimal turnover
Turnover.
Definition: types.hpp:443
Decimal prev_close
Yesterday's close.
Definition: types.hpp:431
std::string symbol
Security code.
Definition: types.hpp:427
TradeStatus trade_status
Security trading status.
Definition: types.hpp:445
Decimal high
High.
Definition: types.hpp:435
std::optional< PrePostQuote > post_market_quote
Quote of US post market.
Definition: types.hpp:449
std::optional< PrePostQuote > pre_market_quote
Quote of US pre market.
Definition: types.hpp:447
int64_t volume
Volume.
Definition: types.hpp:441
std::optional< PrePostQuote > overnight_quote
Quote of US overnight market.
Definition: types.hpp:451
int64_t timestamp
Time of latest price.
Definition: types.hpp:439
Decimal open
Open.
Definition: types.hpp:433
Decimal low
Low.
Definition: types.hpp:437
The basic information of securities.
Definition: types.hpp:342
std::string currency
Trading currency.
Definition: types.hpp:354
int64_t hk_shares
HK shares (only HK stocks)
Definition: types.hpp:362
std::string symbol
Security code.
Definition: types.hpp:344
std::string name_cn
Security name (zh-CN)
Definition: types.hpp:346
int64_t total_shares
Total shares.
Definition: types.hpp:358
Decimal eps
Earnings per share.
Definition: types.hpp:364
std::string name_hk
Security name (zh-HK)
Definition: types.hpp:350
Decimal eps_ttm
Earnings per share (TTM)
Definition: types.hpp:366
Decimal dividend_yield
Dividend (per share), not the dividend yield (ratio).
Definition: types.hpp:370
SecurityBoard board
Board.
Definition: types.hpp:374
std::string exchange
Exchange which the security belongs to.
Definition: types.hpp:352
int32_t lot_size
Lot size.
Definition: types.hpp:356
DerivativeType stock_derivatives
Types of supported derivatives.
Definition: types.hpp:372
int64_t circulating_shares
Circulating shares.
Definition: types.hpp:360
std::string name_en
Security name (en)
Definition: types.hpp:348
Decimal bps
Net assets per share.
Definition: types.hpp:368
One short-position record, unified for US and HK markets.
Definition: types.hpp:1269
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1271
std::string close
Closing price.
Definition: types.hpp:1275
std::string days_to_cover
[US] Days-to-cover ratio
Definition: types.hpp:1281
std::string cost
[HK] Closing price (HK naming)
Definition: types.hpp:1287
std::string current_shares_short
[US] Number of short shares outstanding
Definition: types.hpp:1277
std::string rate
Short ratio.
Definition: types.hpp:1273
std::string balance
[HK] Short position balance
Definition: types.hpp:1285
std::string amount
[HK] Short sale amount (HKD)
Definition: types.hpp:1283
std::string avg_daily_share_volume
[US] Average daily share volume
Definition: types.hpp:1279
Short interest / positions response (HK or US).
Definition: types.hpp:1292
std::vector< ShortPositionsItem > data
Short position records.
Definition: types.hpp:1294
One short-trade record, unified for US and HK markets.
Definition: types.hpp:1299
std::string rate
Short ratio.
Definition: types.hpp:1303
std::string total_amount
[US] Total short amount
Definition: types.hpp:1311
std::string balance
[HK] Short position balance
Definition: types.hpp:1315
std::string amount
[HK] Short sale turnover amount (HKD)
Definition: types.hpp:1313
std::string close
Closing price.
Definition: types.hpp:1305
std::string timestamp
Trading date in RFC 3339 format.
Definition: types.hpp:1301
std::string ny_amount
[US] NYSE short sale volume
Definition: types.hpp:1309
std::string nus_amount
[US] NASDAQ short sale volume
Definition: types.hpp:1307
Short trade records response (HK or US).
Definition: types.hpp:1320
std::vector< ShortTradesItem > data
Short trade records.
Definition: types.hpp:1322
Strike price info.
Definition: types.hpp:699
std::string put_symbol
Security code of put option.
Definition: types.hpp:705
Decimal price
Strike price.
Definition: types.hpp:701
bool standard
Is standard.
Definition: types.hpp:707
std::string call_symbol
Security code of call option.
Definition: types.hpp:703
Subscription.
Definition: types.hpp:174
SubFlags sub_types
Subscription flags.
Definition: types.hpp:178
std::vector< Period > candlesticks
Candlesticks.
Definition: types.hpp:180
std::string symbol
Security code.
Definition: types.hpp:176
Trade.
Definition: types.hpp:533
TradeSession trade_session
Definition: types.hpp:539
Decimal price
Definition: types.hpp:534
int64_t timestamp
Definition: types.hpp:536
std::string trade_type
Definition: types.hpp:537
int64_t volume
Definition: types.hpp:535
TradeDirection direction
Definition: types.hpp:538
Definition: types.hpp:724
Time end_time
End trading time.
Definition: types.hpp:728
Time begin_time
Being trading time.
Definition: types.hpp:726
TradeSession trade_session
Trading session.
Definition: types.hpp:730
An request for update watchlist group.
Definition: types.hpp:830
int64_t id
Group id.
Definition: types.hpp:832
std::optional< std::vector< std::string > > securities
Securities.
Definition: types.hpp:836
std::optional< std::string > name
Group name.
Definition: types.hpp:834
SecuritiesUpdateMode mode
Securities Update Mode.
Definition: types.hpp:838
Warrant info.
Definition: types.hpp:1129
std::optional< Decimal > conversion_ratio
Conversion ratio.
Definition: types.hpp:1175
std::string name
Security name.
Definition: types.hpp:1135
std::optional< Decimal > to_call_price
Price interval from the call price.
Definition: types.hpp:1169
std::optional< Decimal > upper_strike_price
Upper strike price.
Definition: types.hpp:1151
WarrantType warrant_type
Warrant type.
Definition: types.hpp:1133
std::string symbol
Security code.
Definition: types.hpp:1131
int64_t volume
Volume.
Definition: types.hpp:1143
Decimal turnover
Turnover.
Definition: types.hpp:1145
Date expiry_date
Expiry date.
Definition: types.hpp:1147
std::optional< Decimal > implied_volatility
Implied volatility.
Definition: types.hpp:1163
Decimal change_value
Quote change.
Definition: types.hpp:1141
std::optional< Decimal > delta
Delta.
Definition: types.hpp:1165
std::optional< Decimal > balance_point
Breakeven point.
Definition: types.hpp:1177
std::optional< Decimal > call_price
Call price.
Definition: types.hpp:1167
int64_t outstanding_qty
Outstanding quantity.
Definition: types.hpp:1155
Decimal change_rate
Quote change rate.
Definition: types.hpp:1139
WarrantStatus status
Status.
Definition: types.hpp:1179
Decimal leverage_ratio
Leverage ratio.
Definition: types.hpp:1173
Decimal last_done
Latest price.
Definition: types.hpp:1137
std::optional< Decimal > itm_otm
In/out of the bound.
Definition: types.hpp:1161
Decimal premium
Premium.
Definition: types.hpp:1159
std::optional< Decimal > strike_price
Strike price.
Definition: types.hpp:1149
std::optional< Decimal > effective_leverage
Effective leverage.
Definition: types.hpp:1171
std::optional< Decimal > lower_strike_price
Lower strike price.
Definition: types.hpp:1153
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:1157
Quote of warrant.
Definition: types.hpp:604
Decimal strike_price
Strike price.
Definition: types.hpp:639
Date expiry_date
Exprity date.
Definition: types.hpp:627
Decimal open
Open.
Definition: types.hpp:611
Decimal turnover
Turnover.
Definition: types.hpp:621
int64_t volume
Volume.
Definition: types.hpp:619
WarrantType category
Warrant type.
Definition: types.hpp:637
Decimal low
Low.
Definition: types.hpp:615
TradeStatus trade_status
Security trading status.
Definition: types.hpp:623
Decimal upper_strike_price
Upper bound price.
Definition: types.hpp:641
int64_t outstanding_quantity
Outstanding quantity.
Definition: types.hpp:633
Decimal prev_close
Yesterday's close.
Definition: types.hpp:609
int64_t timestamp
Time of latest price.
Definition: types.hpp:617
Date last_trade_date
Last tradalbe date.
Definition: types.hpp:629
std::string symbol
Security code.
Definition: types.hpp:605
Decimal high
High.
Definition: types.hpp:613
Decimal lower_strike_price
Lower bound price.
Definition: types.hpp:643
Decimal last_done
Latest price.
Definition: types.hpp:607
Decimal conversion_ratio
Conversion ratio.
Definition: types.hpp:635
Decimal implied_volatility
Implied volatility.
Definition: types.hpp:625
Decimal outstanding_ratio
Outstanding ratio.
Definition: types.hpp:631
std::string underlying_symbol
Underlying security symbol of the warrant.
Definition: types.hpp:647
Decimal call_price
Call price.
Definition: types.hpp:645
Watchlist group.
Definition: types.hpp:799
int64_t id
Group id.
Definition: types.hpp:801
std::vector< WatchlistSecurity > securities
Securities.
Definition: types.hpp:805
std::string name
Group name.
Definition: types.hpp:803
Watchlist security.
Definition: types.hpp:784
std::string symbol
Security symbol.
Definition: types.hpp:786
std::optional< Decimal > watched_price
Watched price.
Definition: types.hpp:792
std::string name
Security name.
Definition: types.hpp:790
int64_t watched_at
Watched time.
Definition: types.hpp:794
Market market
Market.
Definition: types.hpp:788
Response for SharelistContext::detail.
Definition: types.hpp:3629
SharelistScopes scopes
Subscription scope flags for the current user.
Definition: types.hpp:3633
SharelistInfo sharelist
Sharelist info including constituent stocks.
Definition: types.hpp:3631
Sharelist metadata and constituent stocks.
Definition: types.hpp:3585
int64_t subscribers_count
Number of subscribers.
Definition: types.hpp:3595
int64_t created_at
Creation time (Unix timestamp)
Definition: types.hpp:3597
std::string this_year_chg
YTD change percentage.
Definition: types.hpp:3601
std::string description
Description.
Definition: types.hpp:3591
int64_t id
Sharelist ID.
Definition: types.hpp:3587
std::string cover
Cover image URL.
Definition: types.hpp:3593
std::vector< SharelistStock > stocks
Constituent stocks.
Definition: types.hpp:3605
int32_t sharelist_type
Sharelist type: 0=regular, 3=official, 4=industry.
Definition: types.hpp:3611
std::string name
Name.
Definition: types.hpp:3589
bool subscribed
Whether the current user is subscribed.
Definition: types.hpp:3607
std::string creator
Creator info (serialised JSON)
Definition: types.hpp:3603
int64_t edited_at
Last stock edit time (Unix timestamp)
Definition: types.hpp:3599
std::string industry_code
Industry code (for industry sharelists)
Definition: types.hpp:3613
std::string chg
Day change percentage.
Definition: types.hpp:3609
Response for SharelistContext::list and SharelistContext::popular.
Definition: types.hpp:3618
std::vector< SharelistInfo > sharelists
User's own and followed sharelists.
Definition: types.hpp:3620
std::vector< SharelistInfo > subscribed_sharelists
Subscribed sharelists (may be empty in popular response)
Definition: types.hpp:3622
std::string tail_mark
Pagination cursor for the subscribed list.
Definition: types.hpp:3624
Subscription scope flags for a sharelist.
Definition: types.hpp:3576
bool subscription
Whether the current user is subscribed to this sharelist.
Definition: types.hpp:3578
bool is_self
Whether the current user is the creator of this sharelist.
Definition: types.hpp:3580
A security constituent of a sharelist.
Definition: types.hpp:3553
std::string unread_change_log_category
Unread change log category.
Definition: types.hpp:3565
std::string name
Security name.
Definition: types.hpp:3557
std::string market
Market, e.g. "HK".
Definition: types.hpp:3559
std::optional< std::string > change
Day change percentage (absent when quote unavailable)
Definition: types.hpp:3567
std::string intro
Brief description.
Definition: types.hpp:3563
std::string code
Ticker code.
Definition: types.hpp:3561
std::string symbol
Security symbol.
Definition: types.hpp:3555
std::optional< std::string > last_done
Latest price (absent when quote unavailable)
Definition: types.hpp:3569
std::optional< int32_t > trade_status
Trade status code (absent when quote unavailable)
Definition: types.hpp:3571
Account balance.
Definition: types.hpp:1787
Decimal total_cash
Total cash.
Definition: types.hpp:1789
Decimal max_finance_amount
Maximum financing amount.
Definition: types.hpp:1791
std::vector< FrozenTransactionFee > frozen_transaction_fees
Frozen transaction fees.
Definition: types.hpp:1811
Decimal maintenance_margin
Maintenance margin.
Definition: types.hpp:1807
Decimal net_assets
Net assets.
Definition: types.hpp:1803
Decimal init_margin
Initial margin.
Definition: types.hpp:1805
std::string currency
Currency.
Definition: types.hpp:1799
Decimal buy_power
Buy power.
Definition: types.hpp:1809
Decimal margin_call
Margin call.
Definition: types.hpp:1797
Decimal remaining_finance_amount
Remaining financing amount.
Definition: types.hpp:1793
int32_t risk_level
Risk control level.
Definition: types.hpp:1795
std::vector< CashInfo > cash_infos
Cash details.
Definition: types.hpp:1801
Cash flow.
Definition: types.hpp:1840
std::optional< std::string > symbol
Associated Stock code information.
Definition: types.hpp:1854
std::string transaction_flow_name
Cash flow name.
Definition: types.hpp:1842
std::string description
Cash flow description.
Definition: types.hpp:1856
int64_t business_time
Business time.
Definition: types.hpp:1852
CashFlowDirection direction
Outflow direction.
Definition: types.hpp:1844
Decimal balance
Cash amount.
Definition: types.hpp:1848
BalanceType business_type
Balance type.
Definition: types.hpp:1846
std::string currency
Cash currency.
Definition: types.hpp:1850
Cash info.
Definition: types.hpp:1765
Decimal frozen_cash
Frozen cash.
Definition: types.hpp:1771
Decimal settling_cash
Cash to be settled.
Definition: types.hpp:1773
Decimal withdraw_cash
Withdraw cash.
Definition: types.hpp:1767
Decimal available_cash
Available cash.
Definition: types.hpp:1769
std::string currency
Currency.
Definition: types.hpp:1775
Options for estimate maximum purchase quantity.
Definition: types.hpp:2141
std::string symbol
Security code.
Definition: types.hpp:2143
OrderType order_type
Order type.
Definition: types.hpp:2145
bool fractional_shares
Get the maximum fractional share buying power.
Definition: types.hpp:2156
std::optional< Decimal > price
Estimated order price.
Definition: types.hpp:2149
OrderSide side
Order side.
Definition: types.hpp:2147
std::optional< std::string > currency
Settlement currency.
Definition: types.hpp:2151
std::optional< std::string > order_id
Definition: types.hpp:2154
Response for estimate maximum purchase quantity.
Definition: types.hpp:2161
Decimal margin_max_qty
Margin available quantity.
Definition: types.hpp:2165
Decimal cash_max_qty
Cash available quantity.
Definition: types.hpp:2163
Exexution.
Definition: types.hpp:1363
Decimal price
Definition: types.hpp:1369
Decimal quantity
Definition: types.hpp:1368
std::string trade_id
Definition: types.hpp:1365
std::string symbol
Definition: types.hpp:1366
std::string order_id
Definition: types.hpp:1364
int64_t trade_done_at
Definition: types.hpp:1367
Frozen transaction fee.
Definition: types.hpp:1780
std::string currency
Definition: types.hpp:1781
Decimal frozen_transaction_fee
Definition: types.hpp:1782
Fund position channel.
Definition: types.hpp:1911
std::string account_channel
Account type.
Definition: types.hpp:1913
std::vector< FundPosition > positions
Fund positions.
Definition: types.hpp:1915
Fund position.
Definition: types.hpp:1892
Decimal holding_units
Holding units.
Definition: types.hpp:1906
std::string currency
Currency.
Definition: types.hpp:1902
std::string symbol_name
Fund name.
Definition: types.hpp:1900
Decimal current_net_asset_value
Current equity.
Definition: types.hpp:1896
int64_t net_asset_value_day
Current equity time.
Definition: types.hpp:1898
Decimal cost_net_asset_value
Net cost.
Definition: types.hpp:1904
std::string symbol
Fund ISIN code.
Definition: types.hpp:1894
Fund positions response.
Definition: types.hpp:1920
std::vector< FundPositionChannel > channels
Channels.
Definition: types.hpp:1922
Options for submit order request.
Definition: types.hpp:1861
int64_t end_at
End time.
Definition: types.hpp:1865
std::optional< uintptr_t > page
Page number.
Definition: types.hpp:1871
int64_t start_at
Start time.
Definition: types.hpp:1863
std::optional< uintptr_t > size
Page size.
Definition: types.hpp:1873
std::optional< BalanceType > business_type
Business type.
Definition: types.hpp:1867
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1869
Options for get fund positions request.
Definition: types.hpp:1878
std::optional< std::vector< std::string > > symbols
Fund symbols.
Definition: types.hpp:1880
Options for get history executions request.
Definition: types.hpp:1374
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1380
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1378
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1376
Options for get history orders request.
Definition: types.hpp:1661
std::optional< int64_t > end_at
End time.
Definition: types.hpp:1673
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1667
std::optional< Market > market
Market.
Definition: types.hpp:1669
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1663
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1665
std::optional< int64_t > start_at
Start time.
Definition: types.hpp:1671
Options for get stock positions request.
Definition: types.hpp:1885
std::optional< std::vector< std::string > > symbols
Stock symbols.
Definition: types.hpp:1887
Options for get today executions request.
Definition: types.hpp:1385
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1389
std::optional< std::string > symbol
Security code.
Definition: types.hpp:1387
Options for get today orders request.
Definition: types.hpp:1678
std::optional< std::string > symbol
Security symbol.
Definition: types.hpp:1680
std::optional< std::string > order_id
Order id.
Definition: types.hpp:1688
std::optional< std::vector< OrderStatus > > status
Order status.
Definition: types.hpp:1682
std::optional< Market > market
Market.
Definition: types.hpp:1686
std::optional< OrderSide > side
Order side.
Definition: types.hpp:1684
Margin ratio.
Definition: types.hpp:1965
Decimal mm_factor
Maintain the initial margin ratio.
Definition: types.hpp:1969
Decimal im_factor
Initial margin ratio.
Definition: types.hpp:1967
Decimal fm_factor
Forced close-out margin ratio.
Definition: types.hpp:1971
Order charge detail.
Definition: types.hpp:2045
std::string currency
Settlement currency.
Definition: types.hpp:2049
std::vector< OrderChargeItem > items
Order charge items.
Definition: types.hpp:2051
Decimal total_amount
Total charges amount.
Definition: types.hpp:2047
Order charge fee.
Definition: types.hpp:2021
Decimal amount
Charge amount.
Definition: types.hpp:2027
std::string currency
Charge currency.
Definition: types.hpp:2029
std::string code
Charge code.
Definition: types.hpp:2023
std::string name
Charge name.
Definition: types.hpp:2025
Order charge item.
Definition: types.hpp:2034
std::string name
Charge category name.
Definition: types.hpp:2038
std::vector< OrderChargeFee > fees
Charge details.
Definition: types.hpp:2040
ChargeCategoryCode code
Charge category code.
Definition: types.hpp:2036
Order detail.
Definition: types.hpp:2056
int64_t submitted_at
Submitted time.
Definition: types.hpp:2072
std::optional< std::string > free_currency
Commission-free currency.
Definition: types.hpp:2120
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:2102
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:2106
Decimal quantity
Submitted quantity.
Definition: types.hpp:2064
std::optional< std::string > deductions_currency
Deduction currency.
Definition: types.hpp:2126
std::string currency
Currency.
Definition: types.hpp:2104
OrderStatus status
Order status.
Definition: types.hpp:2060
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:2110
OrderSide side
Order side.
Definition: types.hpp:2074
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:2080
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:2112
std::string msg
Rejected Message or remark.
Definition: types.hpp:2084
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:2092
std::optional< Decimal > platform_deducted_amount
Platform deduction amount.
Definition: types.hpp:2130
CommissionFreeStatus free_status
Commission-free Status.
Definition: types.hpp:2116
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:2108
std::string remark
Remark.
Definition: types.hpp:2114
OrderTag tag
Order tag.
Definition: types.hpp:2086
std::string order_id
Order ID.
Definition: types.hpp:2058
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:2090
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:2094
std::optional< Decimal > free_amount
Commission-free amount.
Definition: types.hpp:2118
DeductionStatus deductions_status
Deduction status.
Definition: types.hpp:2122
std::string symbol
Security code.
Definition: types.hpp:2076
OrderChargeDetail charge_detail
Order charges.
Definition: types.hpp:2136
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:2082
std::string stock_name
Stock name.
Definition: types.hpp:2062
OrderType order_type
Order type.
Definition: types.hpp:2078
DeductionStatus platform_deducted_status
Platform fee deduction status.
Definition: types.hpp:2128
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:2100
std::optional< Decimal > deductions_amount
Deduction amount.
Definition: types.hpp:2124
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:2088
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:2098
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:2066
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:2068
std::vector< OrderHistoryDetail > history
Order history details.
Definition: types.hpp:2134
std::optional< std::string > platform_deducted_currency
Platform deduction currency.
Definition: types.hpp:2132
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:2070
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:2096
Order history detail.
Definition: types.hpp:2004
Decimal quantity
Definition: types.hpp:2010
Decimal price
Definition: types.hpp:2007
std::string msg
Execution or error message.
Definition: types.hpp:2014
OrderStatus status
Order status.
Definition: types.hpp:2012
int64_t time
Occurrence time.
Definition: types.hpp:2016
Order.
Definition: types.hpp:1543
Decimal quantity
Submitted quantity.
Definition: types.hpp:1551
int64_t submitted_at
Submitted time.
Definition: types.hpp:1559
std::optional< Decimal > trailing_amount
TSMAMT / TSLPAMT order trailing amount
Definition: types.hpp:1583
OrderTag tag
Order tag.
Definition: types.hpp:1573
std::optional< Decimal > trigger_price
LIT / MIT Order Trigger Price
Definition: types.hpp:1569
OrderStatus status
Order status.
Definition: types.hpp:1547
std::string currency
Currency.
Definition: types.hpp:1591
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:1575
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1599
std::string stock_name
Stock name.
Definition: types.hpp:1549
std::optional< Date > expire_date
Long term order expire date.
Definition: types.hpp:1577
OrderSide side
Order side.
Definition: types.hpp:1561
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1557
std::string symbol
Security code.
Definition: types.hpp:1563
std::optional< Decimal > price
Submitted price.
Definition: types.hpp:1555
std::optional< Decimal > trailing_percent
TSMPCT / TSLPPCT order trailing percent
Definition: types.hpp:1585
std::string msg
Rejected Message or remark.
Definition: types.hpp:1571
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1589
std::optional< Decimal > last_done
Last done.
Definition: types.hpp:1567
std::string order_id
Order ID.
Definition: types.hpp:1545
std::optional< int64_t > updated_at
Last updated time.
Definition: types.hpp:1579
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:1593
OrderType order_type
Order type.
Definition: types.hpp:1565
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1595
std::string remark
Remark.
Definition: types.hpp:1601
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1553
std::optional< Decimal > limit_offset
TSLPAMT / TSLPPCT order limit offset amount
Definition: types.hpp:1587
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1581
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1597
Order changed message.
Definition: types.hpp:1606
std::string order_id
Order ID.
Definition: types.hpp:1624
Decimal submitted_quantity
Submitted quantity.
Definition: types.hpp:1612
int64_t submitted_at
Submitted time.
Definition: types.hpp:1630
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1646
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1644
std::string currency
Currency.
Definition: types.hpp:1626
std::optional< Decimal > executed_price
Executed price.
Definition: types.hpp:1622
std::string stock_name
Stock name.
Definition: types.hpp:1610
std::optional< Decimal > trigger_price
Order trigger price.
Definition: types.hpp:1634
OrderType order_type
Order type.
Definition: types.hpp:1616
std::optional< Decimal > last_price
Last price.
Definition: types.hpp:1654
std::optional< TriggerStatus > trigger_status
Conditional order trigger status.
Definition: types.hpp:1640
Decimal executed_quantity
Executed quantity.
Definition: types.hpp:1620
std::string msg
Rejected message or remark.
Definition: types.hpp:1636
int64_t updated_at
Last updated time.
Definition: types.hpp:1632
OrderSide side
Order side.
Definition: types.hpp:1608
std::optional< Decimal > limit_offset
Limit offset amount.
Definition: types.hpp:1648
OrderStatus status
Order status.
Definition: types.hpp:1628
std::string remark
Remark message.
Definition: types.hpp:1656
Decimal submitted_price
Submitted price.
Definition: types.hpp:1618
OrderTag tag
Order tag.
Definition: types.hpp:1638
std::optional< int64_t > trigger_at
Conditional order trigger time.
Definition: types.hpp:1642
std::string symbol
Order symbol.
Definition: types.hpp:1614
std::optional< Decimal > last_share
Last share.
Definition: types.hpp:1652
std::string account_no
Account no.
Definition: types.hpp:1650
Options for replace order request.
Definition: types.hpp:1693
std::string order_id
Order ID.
Definition: types.hpp:1695
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1709
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1713
std::optional< Decimal > price
Price.
Definition: types.hpp:1699
std::optional< Decimal > trigger_price
Trigger price.
Definition: types.hpp:1701
Decimal quantity
Quantity.
Definition: types.hpp:1697
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1711
std::optional< Decimal > trailing_percent
Trailing percent.
Definition: types.hpp:1707
std::optional< Decimal > trailing_amount
Trailing amount.
Definition: types.hpp:1705
std::optional< Decimal > limit_offset
Limit offset.
Definition: types.hpp:1703
std::optional< std::string > remark
Remark.
Definition: types.hpp:1715
Stock position channel.
Definition: types.hpp:1949
std::string account_channel
Account type.
Definition: types.hpp:1951
std::vector< StockPosition > positions
Stock positions.
Definition: types.hpp:1953
Stock position.
Definition: types.hpp:1927
std::optional< Decimal > init_quantity
Initial position before market opening.
Definition: types.hpp:1944
Decimal quantity
The number of holdings.
Definition: types.hpp:1933
std::string symbol
Stock code.
Definition: types.hpp:1929
std::string symbol_name
Stock name.
Definition: types.hpp:1931
Decimal available_quantity
Available quantity.
Definition: types.hpp:1935
Decimal cost_price
Definition: types.hpp:1940
Market market
Market.
Definition: types.hpp:1942
std::string currency
Currency.
Definition: types.hpp:1937
Stock positions response.
Definition: types.hpp:1958
std::vector< StockPositionChannel > channels
Channels.
Definition: types.hpp:1960
Options for submit order request.
Definition: types.hpp:1720
std::optional< Decimal > trailing_percent
Trailing percent (TSLPPCT / TSMAPCT Required)
Definition: types.hpp:1740
std::optional< int32_t > limit_depth_level
Limit depth level.
Definition: types.hpp:1747
std::optional< int32_t > trigger_count
Trigger count.
Definition: types.hpp:1749
OrderType order_type
Order type.
Definition: types.hpp:1724
TimeInForceType time_in_force
Time in force type.
Definition: types.hpp:1730
std::optional< std::string > remark
Remark (Maximum 64 characters)
Definition: types.hpp:1753
OrderSide side
Order side.
Definition: types.hpp:1726
std::optional< Decimal > limit_offset
Limit offset amount (TSLPAMT / TSLPPCT Required)
Definition: types.hpp:1736
std::optional< Decimal > submitted_price
Submitted price.
Definition: types.hpp:1732
std::optional< Decimal > trailing_amount
Trailing amount (TSLPAMT / TSMAMT Required)
Definition: types.hpp:1738
std::string symbol
Security symbol.
Definition: types.hpp:1722
std::optional< Decimal > monitor_price
Monitor price.
Definition: types.hpp:1751
std::optional< Decimal > trigger_price
Trigger price (LIT / MIT Required)
Definition: types.hpp:1734
std::optional< OutsideRTH > outside_rth
Enable or disable outside regular trading hours.
Definition: types.hpp:1745
std::optional< Date > expire_date
Definition: types.hpp:1743
Decimal submitted_quantity
Submitted price.
Definition: types.hpp:1728
Response for submit order request.
Definition: types.hpp:1758
std::string order_id
Order id.
Definition: types.hpp:1760