stock-sdk 2.0.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { n as MarketTz, v as TodayTimelineResponse, I as IndicatorOptions, H as HistoryKline, s as MinuteTimeline, t as MinuteKline, w as HKHistoryKline, y as HKMinuteTimeline, x as HKMinuteKline, U as USHistoryKline, E as USMinuteTimeline, z as USMinuteKline, K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DwEr9RKK.js';
2
1
  import { c as SdkErrorCode, R as RetryOptions, d as RateLimiterOptions, C as CircuitBreakerOptions, P as ProviderName, a as ProviderRequestPolicy, S as SdkError } from './index-mlzPfoON.js';
2
+ import { n as MarketTz, v as TodayTimelineResponse, I as IndicatorOptions, H as HistoryKline, s as MinuteTimeline, t as MinuteKline, w as HKHistoryKline, y as HKMinuteTimeline, x as HKMinuteKline, U as USHistoryKline, E as USMinuteTimeline, z as USMinuteKline, K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DQNysyLs.js';
3
3
 
4
4
  interface HostHealthState {
5
5
  host: string;
@@ -1554,6 +1554,304 @@ interface FundRankHistory {
1554
1554
  /** 排名走势序列;按日期升序 */
1555
1555
  items: FundRankPoint[];
1556
1556
  }
1557
+ /** 前十大重仓股 */
1558
+ interface FundHolding {
1559
+ /** 股票代码(纯数字 6 位,如 `"600519"`) */
1560
+ code: string;
1561
+ /** 新市场号(`"0"`=深圳, `"1"`=上海),用于拼接东财 secid */
1562
+ marketId: string;
1563
+ }
1564
+ /** 前五大债券持仓 */
1565
+ interface FundBondHolding {
1566
+ /** 债券代码 */
1567
+ code: string;
1568
+ /** 新市场号 */
1569
+ marketId: string;
1570
+ }
1571
+ /** 资产配置项(单季度) */
1572
+ interface FundAssetAllocation {
1573
+ /** 报告期 `YYYY-MM-DD` */
1574
+ date: string;
1575
+ /** 报告期 UTC 毫秒时间戳;日期串无法解析时为 `null`(不产出 NaN) */
1576
+ timestamp: number | null;
1577
+ /** 股票占净值比(%) */
1578
+ stockRatio: number;
1579
+ /** 债券占净值比(%) */
1580
+ bondRatio: number;
1581
+ /** 现金占净值比(%) */
1582
+ cashRatio: number;
1583
+ /** 其他资产占净值比(%);上游部分基金不提供该项,缺失时为 `0` */
1584
+ otherRatio: number;
1585
+ /** 净资产(亿元) */
1586
+ netAsset: number;
1587
+ }
1588
+ /** 股票仓位测算点(每日) */
1589
+ interface FundPositionPoint {
1590
+ /** 日期 `YYYY-MM-DD` */
1591
+ date: string;
1592
+ /** UTC 毫秒时间戳 */
1593
+ timestamp: number;
1594
+ /** 股票仓位占比(%) */
1595
+ position: number;
1596
+ }
1597
+ /** 基金经理信息 */
1598
+ interface FundManager {
1599
+ /** 基金经理 ID */
1600
+ id: string;
1601
+ /** 姓名 */
1602
+ name: string;
1603
+ /** 头像图片 URL;无则为 `null` */
1604
+ avatarUrl: string | null;
1605
+ /** 天天基金星级(0–5);无评级为 `null` */
1606
+ star: number | null;
1607
+ /**
1608
+ * 任职年限描述(东财原文,如 `"14年又192天"`);无则为 `null`。
1609
+ * 上游只提供这段中文描述,不提供可计算的天数/起始日,故原样透传。
1610
+ */
1611
+ workTime: string | null;
1612
+ /**
1613
+ * 在管基金规模描述(东财原文,如 `"78.91亿(4只基金)"`);无则为 `null`。
1614
+ * 规模与只数被上游拼在同一段字符串里,原样透传不做拆解。
1615
+ */
1616
+ fundSize: string | null;
1617
+ /**
1618
+ * 基金经理能力评分(综合分 + 各维度雷达),结构同 {@link FundPerformanceEvaluation};
1619
+ * 无评分为 `null`。
1620
+ */
1621
+ power: FundPerformanceEvaluation | null;
1622
+ }
1623
+ /** 业绩评价 */
1624
+ interface FundPerformanceEvaluation {
1625
+ /** 综合评分 */
1626
+ overall: number;
1627
+ /** 评价维度 */
1628
+ categories: string[];
1629
+ /** 各维度得分 */
1630
+ scores: number[];
1631
+ /** 各维度描述 */
1632
+ descriptions: string[];
1633
+ }
1634
+ /** 持有人结构(单期) */
1635
+ interface FundHolderStructure {
1636
+ /** 报告期 `YYYY-MM-DD` */
1637
+ date: string;
1638
+ /** 报告期 UTC 毫秒时间戳;日期串无法解析时为 `null`(不产出 NaN) */
1639
+ timestamp: number | null;
1640
+ /** 机构持有比例(%) */
1641
+ institutionRatio: number;
1642
+ /** 个人持有比例(%) */
1643
+ individualRatio: number;
1644
+ /** 内部持有比例(%) */
1645
+ internalRatio: number;
1646
+ }
1647
+ /** 规模变动(单季度) */
1648
+ interface FundScaleChange {
1649
+ /** 报告期 `YYYY-MM-DD` */
1650
+ date: string;
1651
+ /** 基金规模(亿元) */
1652
+ scale: number;
1653
+ /** 环比变动(东财原文,如 `"3.67%"` / `"-1.20%"`,不带前导 `+`) */
1654
+ mom: string;
1655
+ }
1656
+ /** 申购赎回(单季度) */
1657
+ interface FundBuySedemption {
1658
+ /** 报告期 `YYYY-MM-DD` */
1659
+ date: string;
1660
+ /** 报告期 UTC 毫秒时间戳;日期串无法解析时为 `null`(不产出 NaN) */
1661
+ timestamp: number | null;
1662
+ /** 期间申购(亿份) */
1663
+ buy: number;
1664
+ /** 期间赎回(亿份) */
1665
+ sell: number;
1666
+ /** 期末总份额(亿份);上游 series 名为「总份额」 */
1667
+ total: number;
1668
+ }
1669
+ /** 阶段收益率 */
1670
+ interface FundStageReturns {
1671
+ /** 近一月收益率(%) */
1672
+ oneMonth: number | null;
1673
+ /** 近三月收益率(%) */
1674
+ threeMonth: number | null;
1675
+ /** 近六月收益率(%) */
1676
+ sixMonth: number | null;
1677
+ /** 近一年收益率(%) */
1678
+ oneYear: number | null;
1679
+ }
1680
+ /** 同类基金中的一只 */
1681
+ interface FundSameTypePeer {
1682
+ /** 基金代码(纯数字) */
1683
+ code: string;
1684
+ /** 基金简称 */
1685
+ name: string;
1686
+ /**
1687
+ * 东财附带的排序数值(随分组维度而定,通常为某区间收益或净值);
1688
+ * 无法解析为 `null`。
1689
+ */
1690
+ value: number | null;
1691
+ }
1692
+ /**
1693
+ * 同类基金(用于「切换同类基金」对比)。
1694
+ *
1695
+ * 上游 `swithSameType` 是一个二维数组:东财按多个维度各取一组同类基金,
1696
+ * 故这里用 `groups`(外层为分组、内层为该组下的基金)如实表达。
1697
+ * 只想要去重后的代码列表可自行 `groups.flat()`。
1698
+ */
1699
+ interface FundSameType {
1700
+ /** 同类基金分组 */
1701
+ groups: FundSameTypePeer[][];
1702
+ }
1703
+ /**
1704
+ * 基金深度资料(pingzhongdata 全量字段,一次请求返回)。
1705
+ *
1706
+ * 数据源:`https://fund.eastmoney.com/pingzhongdata/{code}.js`
1707
+ */
1708
+ interface FundProfile {
1709
+ /** 基金代码 */
1710
+ code: string;
1711
+ /** 基金简称 */
1712
+ name: string | null;
1713
+ /** 原申购费率(%) */
1714
+ sourceRate: number | null;
1715
+ /** 现申购费率(%) */
1716
+ rate: number | null;
1717
+ /** 最小申购金额(元) */
1718
+ minSubscription: number | null;
1719
+ /** 前十大重仓股 */
1720
+ holdings: FundHolding[];
1721
+ /** 前五大债券持仓 */
1722
+ bondHoldings: FundBondHolding[];
1723
+ /** 资产配置(按季度,最近 4 期) */
1724
+ assetAllocation: FundAssetAllocation[];
1725
+ /** 股票仓位测算(每日,最近约 20 个交易日) */
1726
+ positions: FundPositionPoint[];
1727
+ /** 基金经理列表 */
1728
+ managers: FundManager[];
1729
+ /** 业绩评价 */
1730
+ performance: FundPerformanceEvaluation | null;
1731
+ /** 持有人结构(按报告期) */
1732
+ holderStructure: FundHolderStructure[];
1733
+ /** 规模变动(按季度) */
1734
+ scaleChanges: FundScaleChange[];
1735
+ /** 申购赎回(按季度) */
1736
+ buySedemption: FundBuySedemption[];
1737
+ /** 阶段收益率 */
1738
+ stageReturns: FundStageReturns;
1739
+ /** 同类基金 */
1740
+ sameType: FundSameType | null;
1741
+ }
1742
+ /** 主题基金排序字段(对应 FundMNSubjectList / FundThemeList 的 RankItems) */
1743
+ type ThemeFundSort = 'ZDF' | 'SYL_W' | 'SYL_M' | 'SYL_3M' | 'SYL_6M' | 'SYL_Y' | 'SYL_3Y' | 'SYL_5Y';
1744
+ /** 主题基金排序方向 */
1745
+ type ThemeFundOrder = 'desc' | 'asc';
1746
+ /** 主题基金类型筛选 */
1747
+ type ThemeCategory = '0' | '1' | '2';
1748
+ /** 获取主题列表选项 */
1749
+ interface GetThemeListOptions {
1750
+ sort?: ThemeFundSort;
1751
+ order?: ThemeFundOrder;
1752
+ category?: ThemeCategory;
1753
+ pageSize?: number;
1754
+ page?: number;
1755
+ }
1756
+ /** 获取热门主题选项 */
1757
+ interface GetHotThemesOptions {
1758
+ sort?: ThemeFundSort;
1759
+ order?: ThemeFundOrder;
1760
+ category?: ThemeCategory;
1761
+ limit?: number;
1762
+ }
1763
+ /** 主题基金排行排序字段(对应 FundMNRank 的 SortColumn) */
1764
+ type ThemeFundRankSort = 'SYL_Z' | 'SYL_Y' | 'SYL_3Y' | 'SYL_1N' | 'RZDF';
1765
+ /** 获取主题下基金选项 */
1766
+ interface GetThemeFundsOptions {
1767
+ sortColumn?: ThemeFundRankSort;
1768
+ sort?: ThemeFundOrder;
1769
+ page?: number;
1770
+ pageSize?: number;
1771
+ fundType?: string;
1772
+ }
1773
+ /** 主题基金条目(主题列表) */
1774
+ interface ThemeFund {
1775
+ code: string;
1776
+ name: string;
1777
+ dailyChange: number | null;
1778
+ weeklyReturn: number | null;
1779
+ monthlyReturn: number | null;
1780
+ quarterlyReturn: number | null;
1781
+ halfYearReturn: number | null;
1782
+ yearlyReturn: number | null;
1783
+ threeYearReturn: number | null;
1784
+ fiveYearReturn: number | null;
1785
+ type: '行业' | '概念';
1786
+ }
1787
+ /** 主题基金列表结果 */
1788
+ interface ThemeFundListResult {
1789
+ items: ThemeFund[];
1790
+ totalPages: number;
1791
+ pageSize: number;
1792
+ currentPage: number;
1793
+ }
1794
+ /** 热门主题结果(直接返回数组) */
1795
+ type HotThemesResult = ThemeFund[];
1796
+ /** 主题下基金条目 */
1797
+ interface ThemeFundItem {
1798
+ code: string;
1799
+ name: string;
1800
+ fundType: string;
1801
+ dailyChange: number | null;
1802
+ weeklyReturn: number | null;
1803
+ monthlyReturn: number | null;
1804
+ quarterlyReturn: number | null;
1805
+ yearlyReturn: number | null;
1806
+ nav: number | null;
1807
+ themeCode: string;
1808
+ /** 主题名称:上游 FundMNRank 不返回,通常缺省,调用方可用 themeCode 自行映射 */
1809
+ themeName?: string;
1810
+ }
1811
+ /** 主题下基金列表结果 */
1812
+ interface ThemeFundItemList {
1813
+ items: ThemeFundItem[];
1814
+ total: number;
1815
+ pageIndex: number;
1816
+ pageSize: number;
1817
+ }
1818
+
1819
+ declare abstract class BaseService {
1820
+ protected readonly client: RequestClient;
1821
+ constructor(client: RequestClient);
1822
+ }
1823
+
1824
+ declare class FundService extends BaseService {
1825
+ constructor(client: RequestClient);
1826
+ /** 获取基金分红明细(全市场,按年份分页) */
1827
+ getFundDividendList(options?: FundDividendListOptions): Promise<FundDividendListResult>;
1828
+ /** 获取基金历史净值(单位 + 累计,全历史一次返回) */
1829
+ getFundNavHistory(code: string): Promise<FundNavHistory>;
1830
+ /** 获取基金当日实时估值(含 T-1 单位净值 + 盘中估算) */
1831
+ getFundEstimate(code: string): Promise<FundEstimate>;
1832
+ /** 获取基金同类排名走势(每日近三月排名 + 百分位) */
1833
+ getFundRankHistory(code: string): Promise<FundRankHistory>;
1834
+ /**
1835
+ * 获取基金深度资料(一次请求返回全量字段)。
1836
+ *
1837
+ * 包含:前十大重仓股、资产配置、仓位测算、基金经理、业绩评价、
1838
+ * 持有人结构、规模变动、申购赎回、阶段收益率、同类基金等。
1839
+ *
1840
+ * @param code 基金代码(纯数字,如 `'000001'`)
1841
+ */
1842
+ getFundProfile(code: string): Promise<FundProfile>;
1843
+ /** 主题基金子命名空间 */
1844
+ readonly theme: FundThemeService;
1845
+ }
1846
+ /** 主题基金子命名空间 */
1847
+ declare class FundThemeService {
1848
+ readonly client: RequestClient;
1849
+ constructor(client: RequestClient);
1850
+ /** 获取全部主题基金列表 */
1851
+ getThemeList(options?: GetThemeListOptions): Promise<ThemeFundListResult>;
1852
+ /** 获取主题下基金列表 */
1853
+ getThemeFunds(themeCode: string, options?: GetThemeFundsOptions): Promise<ThemeFundItemList>;
1854
+ }
1557
1855
 
1558
1856
  /**
1559
1857
  * 腾讯财经 - 批量操作
@@ -1921,11 +2219,6 @@ interface NorthboundHistoryOptions {
1921
2219
  endDate?: string;
1922
2220
  }
1923
2221
 
1924
- declare abstract class BaseService {
1925
- protected readonly client: RequestClient;
1926
- constructor(client: RequestClient);
1927
- }
1928
-
1929
2222
  declare class QuoteService extends BaseService {
1930
2223
  constructor(client: RequestClient);
1931
2224
  getFullQuotes(codes: string[]): Promise<FullQuote[]>;
@@ -2212,6 +2505,8 @@ declare class StockSDK {
2212
2505
  navHistory: (code: string) => Promise<FundNavHistory>;
2213
2506
  estimate: (code: string) => Promise<FundEstimate>;
2214
2507
  rankHistory: (code: string) => Promise<FundRankHistory>;
2508
+ profile: (code: string) => Promise<FundProfile>;
2509
+ theme: FundThemeService;
2215
2510
  };
2216
2511
  /** 交易日历 / 市场状态 */
2217
2512
  get calendar(): {
@@ -2232,4 +2527,4 @@ declare class StockSDK {
2232
2527
  search(keyword: string): Promise<SearchResult[]>;
2233
2528
  }
2234
2529
 
2235
- export { type IndustryBoardConstituent as $, type AShareMarket as A, BaseService as B, type ConceptBoardKlineOptions as C, type NorthboundHistoryOptions as D, type ExternalLink as E, type FundDividendListOptions as F, type GetAllAShareQuotesOptions as G, type HistoryKlineOptions as H, type IndustryBoardKlineOptions as I, type BlockTradeDateOptions as J, type DragonTigerDateOptions as K, type FullQuote as L, type MarketType as M, type NorthboundHoldingRankOptions as N, type SimpleQuote as O, type FundFlow as P, type PanelLargeOrder as Q, type RequestClientOptions as R, StockSDK as S, TradingCalendarService as T, type USMarket as U, type HKQuote as V, type USQuote as W, type FundQuote as X, type Quote as Y, type IndustryBoard as Z, type IndustryBoardSpot as _, RequestClient as a, type IndustryBoardKline as a0, type IndustryBoardMinuteTimeline as a1, type IndustryBoardMinuteKline as a2, type ConceptBoard as a3, type ConceptBoardSpot as a4, type ConceptBoardConstituent as a5, type ConceptBoardKline as a6, type ConceptBoardMinuteTimeline as a7, type ConceptBoardMinuteKline as a8, type FuturesExchange as a9, type NorthboundHoldingRankItem as aA, type NorthboundHistoryItem as aB, type NorthboundIndividualItem as aC, type ZTPoolType as aD, type ZTPoolItem as aE, type StockChangeType as aF, type StockChangeItem as aG, type BoardChangeItem as aH, type DragonTigerPeriod as aI, type DragonTigerDetailItem as aJ, type DragonTigerStockStatItem as aK, type DragonTigerInstitutionItem as aL, type DragonTigerBranchItem as aM, type DragonTigerSeatItem as aN, type BlockTradeMarketStatItem as aO, type BlockTradeDetailItem as aP, type BlockTradeDailyStatItem as aQ, type MarginAccountItem as aR, type MarginTargetItem as aS, type FundDividendRank as aT, type FundSortDirection as aU, type FundDividend as aV, type FundNavPoint as aW, type FundRankPoint as aX, type FuturesKline as aa, type GlobalFuturesQuote as ab, type FuturesInventorySymbol as ac, type FuturesInventory as ad, type ComexInventory as ae, type IndexOptionProduct as af, type OptionTQuote as ag, type OptionTQuoteResult as ah, type OptionKline as ai, type OptionMinute as aj, type ETFOptionMonth as ak, type ETFOptionExpireDay as al, type ETFOptionCate as am, type CFFEXOptionQuote as an, type OptionLHBItem as ao, type SearchResultType as ap, type DividendDetail as aq, type StockFundFlowDaily as ar, type FundFlowRankItem as as, type SectorFundFlowItem as at, type MarketFundFlow as au, type NorthboundDirection as av, type NorthboundMarket as aw, type NorthboundRankPeriod as ax, type NorthboundMinuteItem as ay, type NorthboundFlowSummary as az, type FundDividendListResult as b, type FundNavHistory as c, type FundEstimate as d, type FundRankHistory as e, type SearchResult as f, type GetAShareCodeListOptions as g, type GetUSCodeListOptions as h, type GetAllUSQuotesOptions as i, type MarketStatus as j, type SupportedMarket as k, type MinuteKlineOptions as l, type HKKlineOptions as m, type HKMinuteKlineOptions as n, type USKlineOptions as o, type USMinuteKlineOptions as p, type IndustryBoardMinuteKlineOptions as q, type ConceptBoardMinuteKlineOptions as r, type FuturesKlineOptions as s, type GlobalFuturesSpotOptions as t, type GlobalFuturesKlineOptions as u, type FuturesInventoryOptions as v, type ComexInventoryOptions as w, type CFFEXOptionQuotesOptions as x, type FundFlowOptions as y, type FundFlowRankOptions as z };
2530
+ export { type ConceptBoard as $, type AShareMarket as A, type BlockTradeDateOptions as B, type ConceptBoardKlineOptions as C, type DragonTigerDateOptions as D, type ExternalLink as E, FundService as F, type GetAllAShareQuotesOptions as G, type HistoryKlineOptions as H, type IndustryBoardKlineOptions as I, type FundFlow as J, type HKQuote as K, type USQuote as L, type MarketType as M, type NorthboundHoldingRankOptions as N, type FundQuote as O, type PanelLargeOrder as P, type Quote as Q, type RequestClientOptions as R, StockSDK as S, TradingCalendarService as T, type USMarket as U, type IndustryBoard as V, type IndustryBoardSpot as W, type IndustryBoardConstituent as X, type IndustryBoardKline as Y, type IndustryBoardMinuteTimeline as Z, type IndustryBoardMinuteKline as _, RequestClient as a, type FundAssetAllocation as a$, type ConceptBoardSpot as a0, type ConceptBoardConstituent as a1, type ConceptBoardKline as a2, type ConceptBoardMinuteTimeline as a3, type ConceptBoardMinuteKline as a4, type FuturesExchange as a5, type FuturesKline as a6, type GlobalFuturesQuote as a7, type FuturesInventorySymbol as a8, type FuturesInventory as a9, type ZTPoolItem as aA, type StockChangeType as aB, type StockChangeItem as aC, type BoardChangeItem as aD, type DragonTigerPeriod as aE, type DragonTigerDetailItem as aF, type DragonTigerStockStatItem as aG, type DragonTigerInstitutionItem as aH, type DragonTigerBranchItem as aI, type DragonTigerSeatItem as aJ, type BlockTradeMarketStatItem as aK, type BlockTradeDetailItem as aL, type BlockTradeDailyStatItem as aM, type MarginAccountItem as aN, type MarginTargetItem as aO, type FundDividendRank as aP, type FundSortDirection as aQ, type FundDividendListOptions as aR, type FundDividend as aS, type FundDividendListResult as aT, type FundNavPoint as aU, type FundNavHistory as aV, type FundEstimate as aW, type FundRankPoint as aX, type FundRankHistory as aY, type FundHolding as aZ, type FundBondHolding as a_, type ComexInventory as aa, type IndexOptionProduct as ab, type OptionTQuote as ac, type OptionTQuoteResult as ad, type OptionKline as ae, type OptionMinute as af, type ETFOptionMonth as ag, type ETFOptionExpireDay as ah, type ETFOptionCate as ai, type CFFEXOptionQuote as aj, type OptionLHBItem as ak, type SearchResultType as al, type DividendDetail as am, type StockFundFlowDaily as an, type FundFlowRankItem as ao, type SectorFundFlowItem as ap, type MarketFundFlow as aq, type NorthboundDirection as ar, type NorthboundMarket as as, type NorthboundRankPeriod as at, type NorthboundMinuteItem as au, type NorthboundFlowSummary as av, type NorthboundHoldingRankItem as aw, type NorthboundHistoryItem as ax, type NorthboundIndividualItem as ay, type ZTPoolType as az, type SearchResult as b, type FundPositionPoint as b0, type FundManager as b1, type FundPerformanceEvaluation as b2, type FundHolderStructure as b3, type FundScaleChange as b4, type FundBuySedemption as b5, type FundStageReturns as b6, type FundSameTypePeer as b7, type FundSameType as b8, type ThemeFundSort as b9, type ThemeFundOrder as ba, type ThemeCategory as bb, type GetThemeListOptions as bc, type GetHotThemesOptions as bd, type ThemeFundRankSort as be, type GetThemeFundsOptions as bf, type ThemeFund as bg, type ThemeFundListResult as bh, type HotThemesResult as bi, type ThemeFundItem as bj, type ThemeFundItemList as bk, type GetAShareCodeListOptions as c, type GetUSCodeListOptions as d, type GetAllUSQuotesOptions as e, type MarketStatus as f, type SupportedMarket as g, type FundProfile as h, type MinuteKlineOptions as i, type HKKlineOptions as j, type HKMinuteKlineOptions as k, type USKlineOptions as l, type USMinuteKlineOptions as m, type IndustryBoardMinuteKlineOptions as n, type ConceptBoardMinuteKlineOptions as o, type FuturesKlineOptions as p, type GlobalFuturesSpotOptions as q, type GlobalFuturesKlineOptions as r, type FuturesInventoryOptions as s, type ComexInventoryOptions as t, type CFFEXOptionQuotesOptions as u, type FundFlowOptions as v, type FundFlowRankOptions as w, type NorthboundHistoryOptions as x, type FullQuote as y, type SimpleQuote as z };
@@ -1,4 +1,4 @@
1
- import { K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DwEr9RKK.cjs';
1
+ import { K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DQNysyLs.cjs';
2
2
 
3
3
  /**
4
4
  * 指标信号层类型(v2 B1)
package/dist/signals.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DwEr9RKK.js';
1
+ import { K as KlineWithIndicators, A as AnyHistoryKline } from './addIndicators-DQNysyLs.js';
2
2
 
3
3
  /**
4
4
  * 指标信号层类型(v2 B1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stock-sdk",
3
- "version": "2.0.0",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -16,12 +16,13 @@
16
16
  "test:integration": "RUN_INTEGRATION=1 vitest run",
17
17
  "test:integration:smoke": "RUN_INTEGRATION=1 vitest run test/integration/providers/tencent/quote.int.test.ts test/integration/providers/tencent/batch.int.test.ts test/integration/providers/tencent/tradeCalendar.int.test.ts test/integration/sdk/timeout.int.test.ts",
18
18
  "test:integration:full": "RUN_INTEGRATION=1 vitest run test/integration",
19
- "docs:meta": "pnpm build && node ./scripts/generate-doc-meta.js",
19
+ "docs:meta": "pnpm build && node ./scripts/generate-doc-meta.js && pnpm gen:llms",
20
20
  "docs:check": "pnpm docs:meta && node ./scripts/check-doc-consistency.js",
21
21
  "dev": "vitepress dev website",
22
22
  "preview": "vitepress preview website",
23
23
  "build:docs": "pnpm docs:meta && DOCS_BASE=/ vitepress build website",
24
24
  "build:pages": "pnpm docs:meta && DOCS_BASE=/stock-sdk/ vitepress build website",
25
+ "gen:llms": "tsx ./scripts/generate-llms.ts",
25
26
  "prepare": "node ./scripts/install-git-hooks.js"
26
27
  },
27
28
  "exports": {
@@ -36,32 +37,74 @@
36
37
  }
37
38
  },
38
39
  "./indicators": {
39
- "import": { "types": "./dist/indicators.d.ts", "default": "./dist/indicators.js" },
40
- "require": { "types": "./dist/indicators.d.cts", "default": "./dist/indicators.cjs" }
40
+ "import": {
41
+ "types": "./dist/indicators.d.ts",
42
+ "default": "./dist/indicators.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/indicators.d.cts",
46
+ "default": "./dist/indicators.cjs"
47
+ }
41
48
  },
42
49
  "./symbols": {
43
- "import": { "types": "./dist/symbols.d.ts", "default": "./dist/symbols.js" },
44
- "require": { "types": "./dist/symbols.d.cts", "default": "./dist/symbols.cjs" }
50
+ "import": {
51
+ "types": "./dist/symbols.d.ts",
52
+ "default": "./dist/symbols.js"
53
+ },
54
+ "require": {
55
+ "types": "./dist/symbols.d.cts",
56
+ "default": "./dist/symbols.cjs"
57
+ }
45
58
  },
46
59
  "./signals": {
47
- "import": { "types": "./dist/signals.d.ts", "default": "./dist/signals.js" },
48
- "require": { "types": "./dist/signals.d.cts", "default": "./dist/signals.cjs" }
60
+ "import": {
61
+ "types": "./dist/signals.d.ts",
62
+ "default": "./dist/signals.js"
63
+ },
64
+ "require": {
65
+ "types": "./dist/signals.d.cts",
66
+ "default": "./dist/signals.cjs"
67
+ }
49
68
  },
50
69
  "./screener": {
51
- "import": { "types": "./dist/screener.d.ts", "default": "./dist/screener.js" },
52
- "require": { "types": "./dist/screener.d.cts", "default": "./dist/screener.cjs" }
70
+ "import": {
71
+ "types": "./dist/screener.d.ts",
72
+ "default": "./dist/screener.js"
73
+ },
74
+ "require": {
75
+ "types": "./dist/screener.d.cts",
76
+ "default": "./dist/screener.cjs"
77
+ }
53
78
  },
54
79
  "./cache": {
55
- "import": { "types": "./dist/cache.d.ts", "default": "./dist/cache.js" },
56
- "require": { "types": "./dist/cache.d.cts", "default": "./dist/cache.cjs" }
80
+ "import": {
81
+ "types": "./dist/cache.d.ts",
82
+ "default": "./dist/cache.js"
83
+ },
84
+ "require": {
85
+ "types": "./dist/cache.d.cts",
86
+ "default": "./dist/cache.cjs"
87
+ }
57
88
  },
58
89
  "./errors": {
59
- "import": { "types": "./dist/errors.d.ts", "default": "./dist/errors.js" },
60
- "require": { "types": "./dist/errors.d.cts", "default": "./dist/errors.cjs" }
90
+ "import": {
91
+ "types": "./dist/errors.d.ts",
92
+ "default": "./dist/errors.js"
93
+ },
94
+ "require": {
95
+ "types": "./dist/errors.d.cts",
96
+ "default": "./dist/errors.cjs"
97
+ }
61
98
  },
62
99
  "./mcp": {
63
- "import": { "types": "./dist/mcp.d.ts", "default": "./dist/mcp.js" },
64
- "require": { "types": "./dist/mcp.d.cts", "default": "./dist/mcp.cjs" }
100
+ "import": {
101
+ "types": "./dist/mcp.d.ts",
102
+ "default": "./dist/mcp.js"
103
+ },
104
+ "require": {
105
+ "types": "./dist/mcp.d.cts",
106
+ "default": "./dist/mcp.cjs"
107
+ }
65
108
  },
66
109
  "./package.json": "./package.json"
67
110
  },
@@ -110,7 +153,9 @@
110
153
  "@vitest/coverage-v8": "^4.0.16",
111
154
  "msw": "^2.10.4",
112
155
  "playwright": "^1.58.2",
156
+ "shiki": "^2.5.0",
113
157
  "tsup": "^8.3.5",
158
+ "tsx": "^4.22.4",
114
159
  "typescript": "^5.9.3",
115
160
  "vitepress": "^1.6.4",
116
161
  "vitest": "^4.0.15",