stock-sdk 2.2.1 → 2.3.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.
- package/README.md +4 -1
- package/dist/{addIndicators-DQNysyLs.d.cts → addIndicators-_V3HEi0q.d.cts} +18 -0
- package/dist/{addIndicators-DQNysyLs.d.ts → addIndicators-_V3HEi0q.d.ts} +18 -0
- package/dist/chip-BbA23rr1.d.cts +113 -0
- package/dist/chip-BbA23rr1.d.ts +113 -0
- package/dist/chunk-3ASJZ3YA.js +1 -0
- package/dist/chunk-6IFA2HGD.cjs +1 -0
- package/dist/chunk-IWHFCLJM.js +1 -0
- package/dist/chunk-LMUFSVKQ.cjs +1 -0
- package/dist/chunk-QGYIBFXP.js +1 -0
- package/dist/chunk-ZESMWMHP.cjs +1 -0
- package/dist/cli.cjs +6 -6
- package/dist/cli.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +1 -1
- package/dist/indicators.cjs +1 -1
- package/dist/indicators.d.cts +8 -7
- package/dist/indicators.d.ts +8 -7
- package/dist/indicators.js +1 -1
- package/dist/mcp.cjs +2 -2
- package/dist/mcp.d.cts +3 -2
- package/dist/mcp.d.ts +3 -2
- package/dist/mcp.js +2 -2
- package/dist/{sdk-C1spOI0V.d.cts → sdk-6Qozazec.d.cts} +134 -6
- package/dist/{sdk-tyHVl5Ki.d.ts → sdk-CtqVdrof.d.ts} +134 -6
- package/dist/signals.d.cts +1 -1
- package/dist/signals.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-G5KF73BW.js +0 -1
- package/dist/chunk-LNFNYJHT.cjs +0 -1
- package/dist/chunk-PMERLSCU.cjs +0 -1
- package/dist/chunk-RHTNYDO2.cjs +0 -1
- package/dist/chunk-TXJPUZJI.js +0 -1
- package/dist/chunk-WHIIIKKO.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function fe(a,p){let m,h=p.reduce((i,F)=>{if(!(i==null||typeof i!="object"))return m=i,i[F]},a);if(typeof h=="function")return{fn:h,parent:m}}var B=["qfq","hfq","none"],w=["daily","weekly","monthly"],H=["1","5","15","30","60"],L=["sh","sz","bj","kc","cy"],x=["NASDAQ","NYSE","AMEX"],R=["A","HK","US"],g=["north","south"],U=["zt","yesterday","strong","sub_new","broken","dt"],y=["1month","3month","6month","1year"],D=["50ETF","300ETF","500ETF","\u79D1\u521B50","\u79D1\u521B\u677F50"],z=["ho","io","mo"],j=["gold","silver"],Q=["rocket_launch","quick_rebound","large_buy","limit_up_seal","limit_down_open","big_buy_order","auction_up","high_open_5d","gap_up","high_60d","surge_60d","accelerate_down","high_dive","large_sell","limit_down_seal","limit_up_open","big_sell_order","auction_down","low_open_5d","gap_down","low_60d","drop_60d"],Z=[...Q,"all"],s={flag:"adjust",type:"enum",enum:B,map:{none:""},default:"qfq",desc:"\u590D\u6743\uFF1Aqfq \u524D\u590D\u6743(\u9ED8\u8BA4) / hfq \u540E\u590D\u6743 / none \u4E0D\u590D\u6743",mcpDesc:"\u590D\u6743\uFF1Aqfq=\u524D\u590D\u6743(\u9ED8\u8BA4,\u770B\u8D70\u52BF) / hfq=\u540E\u590D\u6743(\u7B97\u6536\u76CA) / ''=\u4E0D\u590D\u6743"},S={...s,default:"",mcpDesc:"\u590D\u6743\u65B9\u5F0F\uFF0C\u9ED8\u8BA4\u4E0D\u590D\u6743\uFF08''\uFF09\uFF1B\u9700\u524D\u590D\u6743\u4F20 qfq\uFF08\u770B\u8D70\u52BF\uFF09\uFF0C\u540E\u590D\u6743\u4F20 hfq\uFF08\u7B97\u6536\u76CA\uFF09"},r={flag:"period",type:"enum",enum:w,default:"daily",desc:"K \u7EBF\u5468\u671F daily/weekly/monthly",mcpDesc:"\u5386\u53F2 K \u7EBF\u5468\u671F"},Y={...r,mcpDesc:"\u8D44\u91D1\u6D41\u7EDF\u8BA1\u5468\u671F\uFF08\u65E5 / \u5468 / \u6708\uFF09"},u={flag:"period",type:"enum",enum:H,default:"1",desc:"\u5206\u949F\u5468\u671F 1/5/15/30/60",mcpDesc:"\u5206\u949F\u5468\u671F\uFF1B1=\u5F53\u65E5\u5206\u65F6"},f={...u,default:"5",mcpDesc:"\u5206\u949F\u5468\u671F\uFF1B\u9ED8\u8BA4 5\uFF085 \u5206\u949F K \u7EBF\uFF09\uFF0C\u5F53\u65E5\u5206\u65F6\u8BF7\u4F20 period=1"},t={flag:"start",field:"startDate",type:"string",desc:"\u5F00\u59CB\u65E5\u671F YYYYMMDD",mcpDesc:"\u8D77\u59CB\u65E5\u671F YYYYMMDD"},o={flag:"end",field:"endDate",type:"string",desc:"\u7ED3\u675F\u65E5\u671F YYYYMMDD",mcpDesc:"\u7ED3\u675F\u65E5\u671F YYYYMMDD"},M={...t,required:!0},N={...o,required:!0},G={...t,mcpDesc:"\u5F00\u59CB\u65F6\u95F4"},X={...o,mcpDesc:"\u7ED3\u675F\u65F6\u95F4"},V={...t,mcpDesc:"\u5F00\u59CB\u65F6\u95F4 YYYY-MM-DD HH:mm\uFF08\u6E2F\u80A1\u672C\u5730\u65F6\u533A\uFF09"},J={...o,mcpDesc:"\u7ED3\u675F\u65F6\u95F4 YYYY-MM-DD HH:mm\uFF08\u6E2F\u80A1\u672C\u5730\u65F6\u533A\uFF09"},W={...t,mcp:!1},$={...o,mcp:!1},I={...t,mcpDesc:"\u8D77\u59CB\u65E5\u671F YYYY-MM-DD"},v={...o,mcpDesc:"\u7ED3\u675F\u65E5\u671F YYYY-MM-DD"},ee={...I,cli:!1},ae={...v,cli:!1},b=[{...t,mcpDesc:"\u8D77\u59CB\u65E5\u671F YYYYMMDD \u6216 YYYY-MM-DD"},{...o,mcpDesc:"\u7ED3\u675F\u65E5\u671F YYYYMMDD \u6216 YYYY-MM-DD"}],k={flag:"ndays",jsonKey:"recentDays",type:"number",desc:"\u6700\u8FD1 N \u4E2A\u4EA4\u6613\u65E5\u5206\u65F6(\u4EC5 period=1 \u751F\u6548)",mcpDesc:"\u4EC5 period=1 \u751F\u6548\uFF1A\u8FD4\u56DE\u6700\u8FD1 N \u4E2A\u4EA4\u6613\u65E5\u7684\u5206\u65F6\uFF0C\u9ED8\u8BA4 1\uFF08\u5F53\u65E5\uFF09"},A={flag:"market",type:"enum",enum:L,desc:"\u5E02\u573A\u7B5B\u9009 sh/sz/bj/kc/cy",mcpDesc:"\u6309\u677F\u5757\u7B5B\u9009"},E={flag:"market",type:"enum",enum:x,upper:!0,desc:"\u4EA4\u6613\u6240\u7B5B\u9009 NASDAQ/NYSE/AMEX"},te={flag:"market",type:"enum",enum:R,upper:!0,desc:"\u5E02\u573A(\u9ED8\u8BA4\u81EA\u52A8\u8BC6\u522B)",mcpDesc:"\u5E02\u573A\u7C7B\u578B A / HK / US\uFF1B\u4E0D\u4F20\u5219\u7531 symbol \u81EA\u52A8\u8BC6\u522B"},c={flag:"batchSize",type:"number",desc:"\u5355\u6279\u6570\u91CF(\u9ED8\u8BA4 500)",mcpDesc:"\u5355\u6279\u4EE3\u7801\u6570\uFF0C\u9ED8\u8BA4 500"},l={flag:"concurrency",type:"number",desc:"\u5E76\u53D1\u6570(\u9ED8\u8BA4 7)",mcpDesc:"\u5E76\u53D1\u6570\uFF0C\u9ED8\u8BA4 7"},O={flag:"simple",type:"boolean",desc:"\u53BB\u6389\u4EA4\u6613\u6240\u524D\u7F00"},oe={...O,mcpDesc:"\u53BB\u6389\u5E02\u573A\u524D\u7F00"},P={flag:"direction",type:"enum",enum:g,mcp:!1,desc:"\u65B9\u5411 north / south"},se=["ma","rsi","wr","bias"],re=["macd","kdj","boll","cci","atr","obv","roc","dmi","sar","kc"],ne=[...se.map(a=>({flag:a,type:"number[]",mcp:!1,desc:`${a.toUpperCase()} \u5468\u671F(\u9017\u53F7\u5206\u9694\uFF0C\u5982 5,10\uFF1B\u4EC5 --${a} \u7528\u9ED8\u8BA4)`})),...re.map(a=>({flag:a,type:"boolean",mcp:!1,desc:`\u542F\u7528 ${a.toUpperCase()}`}))],pe={flag:"days",type:"number",default:90,desc:"\u8FD4\u56DE\u6700\u8FD1 N \u4E2A\u4EA4\u6613\u65E5(\u9ED8\u8BA4 90)",mcpDesc:"\u8FD4\u56DE\u6700\u8FD1 N \u4E2A\u4EA4\u6613\u65E5\u7684\u7B79\u7801\u5206\u5E03\u5E8F\u5217\uFF0C\u9ED8\u8BA4 90"},me={flag:"range",type:"number",default:120,desc:"\u5206\u5E03\u56DE\u770B\u7A97\u53E3\u6839\u6570(\u9ED8\u8BA4 120,0=\u5168\u91CF\u7D2F\u8BA1)",mcpDesc:"\u5206\u5E03\u56DE\u770B\u7A97\u53E3(K \u7EBF\u6839\u6570)\u3002\u9ED8\u8BA4 120 = \u4E1C\u8D22 App \u663E\u793A\u53E3\u5F84\uFF1B0 = \u4ECE\u4E0A\u5E02\u9996\u65E5\u5168\u91CF\u7D2F\u8BA1(akshare stock_cyq_em \u53E3\u5F84\uFF0C\u8BA1\u7B97\u91CF\u66F4\u5927)"},ie={flag:"histogram",field:"includeHistogram",type:"enum",enum:["last","all"],desc:"\u9644\u5E26\u7B79\u7801\u5CF0\u76F4\u65B9\u56FE last=\u4EC5\u6700\u540E\u4E00\u65E5 / all=\u6BCF\u65E5(\u4E0D\u4F20\u5219\u4E0D\u9644\u5E26)",mcpDesc:"\u7B79\u7801\u5CF0\u76F4\u65B9\u56FE(150 \u4EF7\u683C\u6863\u7684\u5360\u6BD4\u5206\u5E03)\uFF1Alast=\u4EC5\u6700\u540E\u4E00\u65E5\u9644\u5E26 / all=\u6BCF\u65E5\u90FD\u9644\u5E26\uFF1B\u4E0D\u4F20\u5219\u4E0D\u9644\u5E26"},ce={flag:"decimals",type:"number",default:3,desc:"\u6BD4\u4F8B\u7C7B\u5B57\u6BB5\u820D\u5165\u5C0F\u6570\u4F4D(\u9ED8\u8BA4 3)",mcpDesc:"\u83B7\u5229\u6BD4\u4F8B / \u96C6\u4E2D\u5EA6\u7684\u820D\u5165\u5C0F\u6570\u4F4D\uFF0C\u9ED8\u8BA4 3(\u4EF7\u683C\u7C7B\u5B57\u6BB5\u56FA\u5B9A 2 \u4F4D)"},_=[pe,s,me,ie,ce],T={flag:"indicator",type:"enum",enum:["today","3day","5day","10day"],default:"today",cli:!1,desc:"\u6392\u540D\u5468\u671F today/3day/5day/10day",mcpDesc:"\u6392\u540D\u5468\u671F\uFF1Atoday=\u4ECA\u65E5(\u9ED8\u8BA4) / 3day / 5day / 10day"},le={flag:"sectorType",type:"enum",enum:["industry","concept","region"],default:"industry",cli:!1,desc:"\u677F\u5757\u7C7B\u578B industry/concept/region",mcpDesc:"\u677F\u5757\u7C7B\u578B\uFF1Aindustry=\u884C\u4E1A(\u9ED8\u8BA4) / concept=\u6982\u5FF5 / region=\u5730\u57DF"},de={flag:"market",type:"enum",enum:["all","shanghai","shenzhen"],default:"all",cli:!1,desc:"\u5E02\u573A all/shanghai/shenzhen",mcpDesc:"\u5E02\u573A:all(\u9ED8\u8BA4) / shanghai=\u6CAA\u80A1\u901A / shenzhen=\u6DF1\u80A1\u901A"},ue={flag:"period",type:"enum",enum:["today","3day","5day","10day","month","quarter","year"],default:"5day",cli:!1,desc:"\u6392\u540D\u5468\u671F today/3day/5day/10day/month/quarter/year",mcpDesc:"\u6392\u540D\u5468\u671F:today / 3day / 5day(\u9ED8\u8BA4) / 10day / month / quarter / year"},_e={flag:"date",type:"string",cli:!1,desc:"\u6307\u5B9A\u4EA4\u6613\u65E5 YYYY-MM-DD",mcpDesc:"\u6307\u5B9A\u4EA4\u6613\u65E5 YYYY-MM-DD\uFF08\u9ED8\u8BA4\u670D\u52A1\u7AEF\u6700\u65B0\u4EA4\u6613\u65E5\uFF09"},ge={flag:"pageSize",type:"number",cli:!1,desc:"\u6BCF\u9875\u6761\u6570\uFF0C\u9ED8\u8BA4 20"},he={flag:"pageSize",type:"number",cli:!1,desc:"\u6BCF\u9875\u6761\u6570\uFF0C\u9ED8\u8BA4 20000"},K={flag:"pageSize",type:"number",cli:!1,desc:"\u5355\u9875\u6279\u91CF\u5927\u5C0F\uFF0C\u9ED8\u8BA4 500\uFF1B\u63A5\u53E3\u8FD4\u56DE\u5168\u91CF\u5386\u53F2\uFF0C\u8FC7\u5927\u65F6\u4F1A\u88AB\u88C1\u526A"},ye={flag:"marketCode",type:"number",cli:!1,desc:"\u4E1C\u8D22\u5E02\u573A\u4EE3\u7801\uFF08\u672A\u5185\u7F6E\u54C1\u79CD\u65F6\u624B\u52A8\u6307\u5B9A\uFF09"},De={flag:"start",field:"startDate",type:"string",cli:!1,desc:"\u5F00\u59CB\u65E5\u671F YYYY-MM-DD\uFF0C\u9ED8\u8BA4 2020-10-28"},C={...s,mcp:!1},q="\u7EDF\u8BA1\u5468\u671F\uFF1A1month / 3month / 6month / 1year\uFF0C\u9ED8\u8BA4 1month",Se=[{flag:"year",type:"string",cli:!1,desc:'\u67E5\u8BE2\u5E74\u4EFD\uFF0C\u5982 "2026"\uFF1B\u9ED8\u8BA4\u5F53\u524D\u5E74\uFF08Asia/Shanghai\uFF09'},{flag:"page",type:"string",cli:!1,desc:"\u9875\u7801\uFF08\u4ECE 1 \u5F00\u59CB\uFF09\u7684\u6570\u5B57\u5B57\u7B26\u4E32\uFF0C\u6216 'all' \u81EA\u52A8\u7FFB\u5B8C\u8BE5\u5E74\u6240\u6709\u9875\u5E76\u805A\u5408\uFF1B\u9ED8\u8BA4 1"},{flag:"fundType",type:"string",cli:!1,desc:"\u57FA\u91D1\u7C7B\u578B\u7B5B\u9009\uFF0C\u7A7A\u8868\u793A\u5168\u90E8\uFF0C\u5982 '\u80A1\u7968\u578B' / '\u6307\u6570\u578B-\u80A1\u7968' / '\u6DF7\u5408\u578B-\u504F\u80A1' / 'REITs'"},{flag:"rank",type:"enum",enum:["BZDM","ABBNAME","DJR","FSRQ","FHFCZ","FFR"],default:"FSRQ",cli:!1,desc:"\u6392\u5E8F\u5B57\u6BB5\uFF1ABZDM=\u57FA\u91D1\u4EE3\u7801 / ABBNAME=\u57FA\u91D1\u7B80\u79F0 / DJR=\u6743\u76CA\u767B\u8BB0\u65E5 / FSRQ=\u9664\u606F\u65E5\u671F(\u9ED8\u8BA4) / FHFCZ=\u5206\u7EA2(\u5143/\u4EFD) / FFR=\u5206\u7EA2\u53D1\u653E\u65E5"},{flag:"sort",type:"enum",enum:["asc","desc"],default:"desc",cli:!1,desc:"\u6392\u5E8F\u65B9\u5411\uFF1Aasc=\u5347\u5E8F / desc=\u964D\u5E8F(\u9ED8\u8BA4)"},{flag:"code",type:"string",cli:!1,desc:"\u6309\u57FA\u91D1\u4EE3\u7801\u8FC7\u6EE4\uFF08\u5BA2\u6237\u7AEF\u8FC7\u6EE4\uFF09\uFF0C\u4E00\u822C\u642D\u914D page='all' \u4F7F\u7528"}],e=a=>({name:"symbol",required:!0,desc:a}),n=a=>({name:"code",required:!0,desc:a}),d="\u5355\u53EA\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519 / sh600519",Ye=[{path:["quotes","cn"],toolName:"get_a_share_quotes",tier:"core",summary:"A\u80A1\u5168\u91CF\u884C\u60C5(\u542B\u4E94\u6863)",mcpDesc:"\u83B7\u53D6 A \u80A1 / \u6307\u6570\u5168\u91CF\u884C\u60C5\uFF08\u817E\u8BAF\uFF09\uFF1A\u6700\u65B0\u4EF7\u3001\u6DA8\u8DCC\u5E45\u3001\u4E94\u6863\u76D8\u53E3\u3001\u5E02\u503C\u3001PE/PB \u7B49\u3002",argShape:"codes[]"},{path:["quotes","cnSimple"],toolName:"get_a_share_simple_quotes",summary:"A\u80A1\u7B80\u8981\u884C\u60C5",mcpDesc:"\u83B7\u53D6 A \u80A1 / \u6307\u6570\u7B80\u8981\u884C\u60C5\uFF08\u4EF7\u683C\u3001\u6DA8\u8DCC\u5E45\u3001\u6210\u4EA4\u91CF\u989D\uFF09\u3002",argShape:"codes[]"},{path:["quotes","hk"],toolName:"get_hk_quotes",tier:"core",summary:"\u6E2F\u80A1\u884C\u60C5",mcpDesc:"\u83B7\u53D6\u6E2F\u80A1\u884C\u60C5\u3002\u4EE3\u7801 5 \u4F4D\u6570\u5B57\uFF0C\u5E26\u4E0D\u5E26 hk \u524D\u7F00\u5747\u53EF\uFF08\u5982 00700 / hk00700\uFF09\u3002",argShape:"codes[]"},{path:["quotes","us"],toolName:"get_us_quotes",tier:"core",summary:"\u7F8E\u80A1\u884C\u60C5",mcpDesc:"\u83B7\u53D6\u7F8E\u80A1\u884C\u60C5\u3002\u4EE3\u7801\u5982 AAPL / BABA\u3002",argShape:"codes[]"},{path:["quotes","fund"],toolName:"get_fund_quotes",tier:"core",summary:"\u57FA\u91D1\u884C\u60C5",mcpDesc:"\u83B7\u53D6\u516C\u52DF\u57FA\u91D1\u884C\u60C5\uFF08\u573A\u5185 / \u573A\u5916\uFF0C\u51C0\u503C\u7C7B\uFF09\u3002",argShape:"codes[]"},{path:["quotes","fundFlow"],toolName:"get_fund_flow",summary:"\u8D44\u91D1\u6D41\u5411(\u7B80\u7248)",mcpDesc:"\u83B7\u53D6\u8D44\u91D1\u6D41\u5411\uFF08\u7B80\u7248\uFF0C\u6309\u4EE3\u7801\u6279\u91CF\uFF09\u3002",argShape:"codes[]"},{path:["quotes","largeOrder"],toolName:"get_panel_large_order",summary:"\u76D8\u53E3\u5927\u5355\u5360\u6BD4",mcpDesc:"\u83B7\u53D6\u76D8\u53E3\u5927\u5355\u5360\u6BD4\u3002",argShape:"codes[]"},{path:["quotes","timeline"],toolName:"get_today_timeline",tier:"core",summary:"\u5F53\u65E5\u5206\u65F6",mcpDesc:"\u83B7\u53D6 A \u80A1\u5F53\u65E5\u5206\u65F6\u8D70\u52BF\uFF08\u5355\u53EA\uFF09\u3002",argShape:"positional",positional:[n(d)]},{path:["codes","cn"],toolName:"get_a_share_code_list",summary:"A\u80A1\u4EE3\u7801\u5217\u8868",mcpDesc:"\u83B7\u53D6 A \u80A1\u5168\u91CF\u4EE3\u7801\u5217\u8868\uFF08\u53EF\u6309\u5E02\u573A\u7B5B\u9009 / \u53BB\u4EA4\u6613\u6240\u524D\u7F00\uFF09\u3002",argShape:"options",params:[O,A]},{path:["codes","us"],toolName:"get_us_code_list",summary:"\u7F8E\u80A1\u4EE3\u7801\u5217\u8868",mcpDesc:"\u83B7\u53D6\u7F8E\u80A1\u5168\u91CF\u4EE3\u7801\u5217\u8868\u3002",argShape:"options",params:[oe,E]},{path:["codes","hk"],toolName:"get_hk_code_list",summary:"\u6E2F\u80A1\u4EE3\u7801\u5217\u8868",mcpDesc:"\u83B7\u53D6\u6E2F\u80A1\u5168\u91CF\u4EE3\u7801\u5217\u8868\u3002",argShape:"none"},{path:["codes","fund"],toolName:"get_fund_code_list",summary:"\u57FA\u91D1\u4EE3\u7801\u5217\u8868",mcpDesc:"\u83B7\u53D6\u57FA\u91D1\u5168\u91CF\u4EE3\u7801\u5217\u8868\u3002",argShape:"none"},{path:["batch","cn"],toolName:"get_all_a_share_quotes",summary:"\u5168\u5E02\u573AA\u80A1\u884C\u60C5",mcpDesc:"\u6279\u91CF\u62C9\u53D6\u5168\u5E02\u573A A \u80A1\u884C\u60C5\u3002\u26A0\uFE0F \u53EF\u80FD\u8017\u65F6\u6570\u5341\u79D2\u3001\u8FD4\u56DE\u6570\u5343\u6761\uFF08MCP tools/call \u5927\u6570\u7EC4\u4F1A\u88AB\u88C1\u526A\u81F3 200 \u6761\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\uFF09\u3002",argShape:"options",params:[c,l,A]},{path:["batch","hk"],toolName:"get_all_hk_quotes",summary:"\u5168\u5E02\u573A\u6E2F\u80A1\u884C\u60C5",mcpDesc:"\u6279\u91CF\u62C9\u53D6\u5168\u5E02\u573A\u6E2F\u80A1\u884C\u60C5\u3002\u26A0\uFE0F \u8017\u65F6\u3002",argShape:"options",params:[c,l]},{path:["batch","us"],toolName:"get_all_us_quotes",summary:"\u5168\u5E02\u573A\u7F8E\u80A1\u884C\u60C5",mcpDesc:"\u6279\u91CF\u62C9\u53D6\u5168\u5E02\u573A\u7F8E\u80A1\u884C\u60C5\u3002\u26A0\uFE0F \u8017\u65F6\u3002",argShape:"options",params:[c,l,E]},{path:["batch","byCodes"],toolName:"get_quotes_by_codes",summary:"\u6309\u4EE3\u7801\u6279\u91CF\u884C\u60C5",mcpDesc:"\u6309\u4EE3\u7801\u5217\u8868\u6279\u91CF\u62C9\u53D6\u5B8C\u6574\u884C\u60C5\u3002",argShape:"codes+options",params:[c,l]},{path:["batch","raw"],summary:"\u817E\u8BAF\u539F\u59CB\u6279\u91CF",argShape:"positional",positional:[{name:"params",required:!0,desc:"\u817E\u8BAF raw \u6279\u91CF\u67E5\u8BE2\u53C2\u6570\u5B57\u7B26\u4E32\uFF08provider \u539F\u59CB\u683C\u5F0F\uFF0C\u5982 sh600519,sz000001\uFF09"}],mcp:!1},{path:["kline","cn"],toolName:"get_history_kline",tier:"core",summary:"A\u80A1\u5386\u53F2K\u7EBF",mcpDesc:"A \u80A1 / \u6307\u6570\u5386\u53F2 K \u7EBF\uFF08\u65E5 / \u5468 / \u6708\uFF0C\u542B\u590D\u6743\uFF09\uFF1A\u5F00\u9AD8\u4F4E\u6536\u3001\u6210\u4EA4\u91CF\u989D\u3001\u632F\u5E45\u3001\u6DA8\u8DCC\u5E45\u7B49\u3002\u590D\u6743\u9ED8\u8BA4 qfq\uFF08\u524D\u590D\u6743\uFF0C\u770B\u8D70\u52BF\uFF09\uFF1B\u505A\u56DE\u6D4B / \u6536\u76CA\u8BA1\u7B97\u8BF7\u663E\u5F0F\u4F20 hfq\uFF08\u540E\u590D\u6743\uFF09\u6216 ''\uFF08\u4E0D\u590D\u6743\uFF09\u3002\u652F\u6301\u4E2D\u8BC1\u7279\u6B8A\u6307\u6570\u7801\u5F62\uFF0893xxxx / H+5 \u4F4D\uFF0C\u5982 930955 / H30533\uFF09\u3002\u65E5\u671F\u683C\u5F0F YYYYMMDD\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968 / \u6307\u6570\u4EE3\u7801\uFF0C\u5982 600519 / sh600519 / 930955\uFF08\u4E2D\u8BC1\u6307\u6570\uFF09")],params:[r,s,t,o]},{path:["kline","cnMinute"],toolName:"get_minute_kline",tier:"core",summary:"A\u80A1\u5206\u949FK\u7EBF/\u5206\u65F6",mcpDesc:"A \u80A1\u5206\u949F K \u7EBF / \u5F53\u65E5\u5206\u65F6\u3002period=1 \u8FD4\u56DE\u6700\u8FD1\u7EA6 5 \u4E2A\u4EA4\u6613\u65E5\u7684\u5206\u65F6\uFF08\u4E0D\u652F\u6301\u590D\u6743\uFF0C\u53EF\u7528 startDate/endDate \u6536\u7A84\u5230\u5F53\u65E5\uFF09\uFF1Bperiod=5/15/30/60 \u8FD4\u56DE\u5206\u949F K \u7EBF\uFF08adjust \u4EC5\u6B64\u65F6\u6709\u6548\uFF0C\u9ED8\u8BA4 qfq\uFF09\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968 / \u6307\u6570\u4EE3\u7801\uFF0C\u5982 600519 / sh600519")],params:[u,s,G,X]},{path:["kline","hk"],toolName:"get_hk_history_kline",tier:"core",summary:"\u6E2F\u80A1\u5386\u53F2K\u7EBF",mcpDesc:"\u6E2F\u80A1\u5386\u53F2 K \u7EBF\uFF08\u65E5 / \u5468 / \u6708\uFF0C\u542B\u590D\u6743\uFF0C\u5E01\u79CD HKD\uFF09\u3002\u4EE3\u7801 5 \u4F4D\u6570\u5B57\uFF0C\u5E26\u4E0D\u5E26 hk \u524D\u7F00\u5747\u53EF\uFF08\u5982 00700 / hk00700\uFF09\uFF1B\u4EA6\u63A5\u53D7\u6052\u751F\u7279\u6B8A\u6307\u6570\u5B57\u6BCD\u4EE3\u7801\uFF08\u5982 HSHCI \u6052\u751F\u533B\u7597\u4FDD\u5065\u6307\u6570\uFF09\u3002\u590D\u6743\u9ED8\u8BA4 qfq\uFF1B\u65E5\u671F\u683C\u5F0F YYYYMMDD\u3002",argShape:"symbol+options",positional:[e("\u6E2F\u80A1\u4EE3\u7801\uFF0C\u5982 00700 / hk00700\uFF1B\u7279\u6B8A\u6307\u6570\u5982 HSHCI")],params:[r,s,t,o]},{path:["kline","hkMinute"],toolName:"get_hk_minute_kline",summary:"\u6E2F\u80A1\u5206\u949FK\u7EBF/\u5206\u65F6",mcpDesc:"\u6E2F\u80A1\u5206\u949F K \u7EBF / \u5F53\u65E5\u5206\u65F6\u3002period=1 \u8FD4\u56DE\u5F53\u65E5\u5206\u65F6\uFF08\u4E0D\u652F\u6301\u590D\u6743\uFF0C\u53EF\u7528 recentDays \u53D6\u8FD1 N \u65E5\uFF09\uFF1Bperiod=5/15/30/60 \u8FD4\u56DE\u5206\u949F K \u7EBF\uFF08adjust \u4EC5\u6B64\u65F6\u6709\u6548\uFF0C\u9ED8\u8BA4 qfq\uFF09\u3002\u65F6\u95F4\u683C\u5F0F YYYY-MM-DD HH:mm\uFF08\u6E2F\u80A1\u672C\u5730\u65F6\u533A Asia/Hong_Kong\uFF09\u3002",argShape:"symbol+options",positional:[e("\u6E2F\u80A1\u4EE3\u7801\uFF0C\u5982 00700 / hk00700\uFF1B\u4EA6\u63A5\u53D7\u7279\u6B8A\u6307\u6570\u4EE3\u7801\uFF08\u5982 HSHCI\uFF09")],params:[u,s,V,J,k]},{path:["kline","us"],toolName:"get_us_history_kline",tier:"core",summary:"\u7F8E\u80A1\u5386\u53F2K\u7EBF",mcpDesc:"\u7F8E\u80A1\u5386\u53F2 K \u7EBF\uFF08\u65E5 / \u5468 / \u6708\uFF0C\u542B\u590D\u6743\uFF0C\u5E01\u79CD USD\uFF09\u3002\u4EE3\u7801\u683C\u5F0F {market}.{ticker}\uFF08\u5982 105.AAPL / 106.BABA\uFF09\u3002\u590D\u6743\u9ED8\u8BA4 qfq\uFF1B\u65E5\u671F\u683C\u5F0F YYYYMMDD\u3002",argShape:"symbol+options",positional:[e("\u7F8E\u80A1\u4EE3\u7801\uFF0C\u683C\u5F0F {market}.{ticker}\uFF0C\u5982 105.AAPL / 106.BABA")],params:[r,s,t,o]},{path:["kline","usMinute"],toolName:"get_us_minute_kline",summary:"\u7F8E\u80A1\u5206\u949FK\u7EBF/\u5206\u65F6",mcpDesc:"\u7F8E\u80A1\u5206\u949F K \u7EBF / \u5F53\u65E5\u5206\u65F6\uFF08\u4EC5\u5E38\u89C4\u4EA4\u6613\u65F6\u6BB5\uFF0C\u4E0D\u542B\u76D8\u524D / \u76D8\u540E\uFF09\u3002period=1 \u8FD4\u56DE\u5F53\u65E5\u5206\u65F6\uFF08\u4E0D\u652F\u6301\u590D\u6743\uFF0C\u53EF\u7528 recentDays \u53D6\u8FD1 N \u65E5\uFF09\uFF1Bperiod=5/15/30/60 \u8FD4\u56DE\u5206\u949F K \u7EBF\uFF08adjust \u4EC5\u6B64\u65F6\u6709\u6548\uFF0C\u9ED8\u8BA4 qfq\uFF09\u3002\u4EE3\u7801\u683C\u5F0F {market}.{ticker}\uFF0C\u5982 105.AAPL\u3002",argShape:"symbol+options",positional:[e("\u7F8E\u80A1\u4EE3\u7801\uFF0C\u683C\u5F0F {market}.{ticker}\uFF0C\u5982 105.AAPL / 106.BABA")],params:[u,s,W,$,k]},{path:["kline","withIndicators"],toolName:"get_kline_with_indicators",tier:"core",summary:"\u5E26\u6307\u6807K\u7EBF(--ma 5,10 --macd --kdj --rsi ...)",mcpDesc:"\u5E26\u6280\u672F\u6307\u6807\u7684\u5386\u53F2 K \u7EBF\uFF08A \u80A1 / \u6E2F\u80A1 / \u7F8E\u80A1\uFF0Cmarket \u4E0D\u4F20\u81EA\u52A8\u6309 symbol \u8BC6\u522B\uFF09\u3002\u5468\u671F\u9ED8\u8BA4 daily\uFF0C\u590D\u6743\u9ED8\u8BA4\u6309 SDK \u9ED8\u8BA4\uFF08qfq\uFF09\uFF1B\u65E5\u671F\u652F\u6301 YYYYMMDD \u6216 YYYY-MM-DD\u3002indicators \u4E3A\u5BF9\u8C61\uFF0C\u952E\u53D6\u81EA 14 \u4E2A\u6307\u6807\uFF1Ama / macd / boll / kdj / rsi / wr / bias / cci / atr / obv / roc / dmi / sar / kc\uFF0C\u6BCF\u4E2A\u952E\u4F20 true \u5373\u7528\u9ED8\u8BA4\u53C2\u6570\u5F00\u542F\uFF0C\u6216\u4F20\u914D\u7F6E\u5BF9\u8C61\uFF08\u5982 { ma: { periods: [5,10,20] }, macd: { short: 12, long: 26, signal: 9 } }\uFF09\u3002SDK \u4F1A\u6309\u6307\u6807\u4F9D\u8D56\u81EA\u52A8\u5411\u524D\u591A\u53D6\u82E5\u5E72 bar \u4FDD\u8BC1\u9996\u65E5\u6709\u6548\u3002\u820D\u5165\u578B\u6307\u6807(ma/macd/boll/kdj/rsi/wr/bias/cci/atr)\u53EF\u4F20 decimals \u6307\u5B9A\u8F93\u51FA\u5C0F\u6570\u4F4D(\u9ED8\u8BA4 3;obv/roc/dmi/sar/kc \u8F93\u51FA\u4E0D\u820D\u5165)\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968\u4EE3\u7801\uFF08A \u80A1 / \u6E2F\u80A1 / \u7F8E\u80A1\uFF09")],params:[r,s,t,o,te,...ne],mcpCustom:!0},{path:["chips","cn"],toolName:"get_chip_distribution",tier:"core",summary:"A\u80A1\u7B79\u7801\u5206\u5E03",mcpDesc:"A \u80A1\u7B79\u7801\u5206\u5E03 / \u7B79\u7801\u5CF0\uFF08\u57FA\u4E8E\u65E5 K \u7EBF + \u6362\u624B\u7387\u672C\u5730\u8BA1\u7B97\uFF0C\u4E1C\u65B9\u8D22\u5BCC CYQ \u7B97\u6CD5\uFF09\uFF1A\u6BCF\u65E5\u83B7\u5229\u6BD4\u4F8B\u3001\u5E73\u5747\u6210\u672C\u300190/70 \u6210\u672C\u533A\u95F4\u4E0E\u96C6\u4E2D\u5EA6\u3002days \u9ED8\u8BA4 90\uFF1Brange \u4E3A\u5206\u5E03\u56DE\u770B\u7A97\u53E3\uFF08\u9ED8\u8BA4 120 = \u4E1C\u8D22 App \u53E3\u5F84\uFF0C0 = \u5168\u91CF\u7D2F\u8BA1\u5373 akshare \u53E3\u5F84\uFF09\uFF1B\u590D\u6743\u9ED8\u8BA4 qfq\uFF0C\u5BF9\u9F50 akshare \u8F93\u51FA\u8BF7\u4F20 ''\u3002histogram=last \u53EF\u9644\u5E26\u6700\u65B0\u4E00\u65E5\u7B79\u7801\u5CF0\u5F62\u72B6\u3002\u4EC5\u4E2A\u80A1\u6709\u610F\u4E49\uFF08\u6307\u6570 / ETF \u65E0\u6362\u624B\u7387\u6982\u5FF5\uFF09\uFF0C\u957F\u671F\u505C\u724C\u6216\u6781\u4F4E\u6362\u624B\u4E2A\u80A1\u7684\u5206\u5E03\u53C2\u8003\u4EF7\u503C\u6709\u9650\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519 / sh600519")],params:_},{path:["chips","hk"],toolName:"get_hk_chip_distribution",summary:"\u6E2F\u80A1\u7B79\u7801\u5206\u5E03",mcpDesc:"\u6E2F\u80A1\u7B79\u7801\u5206\u5E03 / \u7B79\u7801\u5CF0\uFF08\u57FA\u4E8E\u4E1C\u8D22\u6E2F\u80A1\u65E5 K \u7EBF + \u6362\u624B\u7387\u672C\u5730\u8BA1\u7B97\uFF0C\u540C A \u80A1 CYQ \u7B97\u6CD5\uFF09\uFF1A\u6BCF\u65E5\u83B7\u5229\u6BD4\u4F8B\u3001\u5E73\u5747\u6210\u672C\u300190/70 \u6210\u672C\u533A\u95F4\u4E0E\u96C6\u4E2D\u5EA6\u3002days \u9ED8\u8BA4 90\uFF1Brange \u9ED8\u8BA4 120\uFF080 = \u5168\u91CF\u7D2F\u8BA1\uFF09\u3002\u6CE8\u610F\uFF1A\u4EF7\u683C\u6863\u7CBE\u5EA6\u4E0B\u9650 0.01 \u5143\uFF0C\u4F4E\u4EF7\u4ED9\u80A1\u7684\u76F4\u65B9\u56FE\u7C92\u5EA6\u504F\u7C97\uFF1B\u6781\u4F4E\u6362\u624B\u4E2A\u80A1\u53C2\u8003\u4EF7\u503C\u6709\u9650\u3002",argShape:"symbol+options",positional:[e("\u6E2F\u80A1\u4EE3\u7801\uFF0C\u5982 00700 / hk00700")],params:_},{path:["chips","us"],toolName:"get_us_chip_distribution",summary:"\u7F8E\u80A1\u7B79\u7801\u5206\u5E03",mcpDesc:"\u7F8E\u80A1\u7B79\u7801\u5206\u5E03 / \u7B79\u7801\u5CF0\uFF08\u57FA\u4E8E\u4E1C\u8D22\u7F8E\u80A1\u65E5 K \u7EBF + \u6362\u624B\u7387\u672C\u5730\u8BA1\u7B97\uFF0C\u540C A \u80A1 CYQ \u7B97\u6CD5\uFF09\uFF1A\u6BCF\u65E5\u83B7\u5229\u6BD4\u4F8B\u3001\u5E73\u5747\u6210\u672C\u300190/70 \u6210\u672C\u533A\u95F4\u4E0E\u96C6\u4E2D\u5EA6\u3002days \u9ED8\u8BA4 90\uFF1Brange \u9ED8\u8BA4 120\uFF080 = \u5168\u91CF\u7D2F\u8BA1\uFF09\u3002\u6362\u624B\u7387\u4E3A\u4E1C\u8D22\u53E3\u5F84\uFF08\u4EA4\u6613\u6240\u516C\u5F00\u6210\u4EA4\u91CF / \u6D41\u901A\u80A1\u672C\uFF09\uFF0C\u4E0D\u542B\u6697\u6C60\u7EC6\u8282\u3002",argShape:"symbol+options",positional:[e("\u7F8E\u80A1\u4EE3\u7801\uFF0C\u683C\u5F0F {market}.{ticker}\uFF0C\u5982 105.AAPL / 106.BABA")],params:_},{path:["board","industry","list"],toolName:"get_industry_list",tier:"core",summary:"\u884C\u4E1A\u677F\u5757\u5217\u8868",mcpDesc:"\u83B7\u53D6\u884C\u4E1A\u677F\u5757\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u677F\u5757\u4EE3\u7801\u3001\u540D\u79F0\u3001\u6700\u65B0\u4EF7\u3001\u6DA8\u8DCC\u5E45\u3001\u6210\u4EA4\u989D\u3001\u9886\u6DA8\u80A1\u7B49\u3002\u65E0\u53C2\u3002",argShape:"none"},{path:["board","industry","spot"],toolName:"get_industry_spot",summary:"\u884C\u4E1A\u677F\u5757\u5B9E\u65F6\u6307\u6807",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u884C\u4E1A\u677F\u5757\u7684\u5B9E\u65F6\u884C\u60C5\u6307\u6807\uFF08\u6700\u65B0\u3001\u6700\u9AD8\u3001\u6700\u4F4E\u3001\u5F00\u76D8\u3001\u6210\u4EA4\u91CF\u989D\u3001\u6DA8\u8DCC\u5E45\u3001\u632F\u5E45\u3001\u6362\u624B\u7387\u7B49\uFF09\uFF0C\u8FD4\u56DE `{ item, value }[]`\u3002\u6210\u5206\u80A1\u5217\u8868\u8BF7\u7528 `constituents`\uFF1B\u6210\u5206\u80A1\u884C\u60C5\u4EA6\u89C1 `constituents`\uFF08\u542B\u4EF7\u683C/\u6DA8\u8DCC\u5E45\uFF09\u3002symbol \u4E3A\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u540D\u79F0\u3002",argShape:"positional",positional:[e("\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u677F\u5757\u540D\u79F0")]},{path:["board","industry","constituents"],toolName:"get_industry_constituents",tier:"core",summary:"\u884C\u4E1A\u677F\u5757\u6210\u5206\u80A1",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u884C\u4E1A\u677F\u5757\u7684\u6210\u5206\u80A1\u5217\u8868\uFF08\u4EE3\u7801\u3001\u540D\u79F0\u7B49\u57FA\u7840\u4FE1\u606F\uFF09\u3002symbol \u4E3A\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u540D\u79F0\u3002",argShape:"positional",positional:[e("\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u677F\u5757\u540D\u79F0")]},{path:["board","industry","kline"],toolName:"get_industry_kline",summary:"\u884C\u4E1A\u677F\u5757K\u7EBF",mcpDesc:"\u83B7\u53D6\u884C\u4E1A\u677F\u5757\u5386\u53F2 K \u7EBF\uFF08\u65E5/\u5468/\u6708\uFF09\uFF1A\u65E5\u671F\u3001\u5F00\u9AD8\u4F4E\u6536\u3001\u6210\u4EA4\u91CF\u989D\u3001\u6DA8\u8DCC\u5E45\u3002\u4EF7\u683C\u5355\u4F4D\u4E3A\u5143\u3002\u590D\u6743\u9ED8\u8BA4\u4E0D\u590D\u6743\uFF0C\u9700\u524D/\u540E\u590D\u6743\u8BF7\u663E\u5F0F\u4F20 adjust\u3002",argShape:"symbol+options",positional:[e("\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u677F\u5757\u540D\u79F0")],params:[r,S,t,o]},{path:["board","industry","minuteKline"],toolName:"get_industry_minute_kline",summary:"\u884C\u4E1A\u677F\u5757\u5206\u65F6",mcpDesc:"\u83B7\u53D6\u884C\u4E1A\u677F\u5757\u5206\u65F6/\u5206\u949F K \u7EBF\u3002period=1 \u8FD4\u56DE\u5F53\u65E5\u5206\u65F6\uFF1B5/15/30/60 \u8FD4\u56DE\u5BF9\u5E94\u5206\u949F K \u7EBF\u3002\u9ED8\u8BA4 5\uFF085 \u5206\u949F K \u7EBF\uFF09\uFF0C\u5F53\u65E5\u5206\u65F6\u8BF7\u4F20 period=1\u3002",argShape:"symbol+options",positional:[e("\u884C\u4E1A\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0475\uFF09\u6216\u677F\u5757\u540D\u79F0")],params:[f]},{path:["board","concept","list"],toolName:"get_concept_list",tier:"core",summary:"\u6982\u5FF5\u677F\u5757\u5217\u8868",mcpDesc:"\u83B7\u53D6\u6982\u5FF5\u677F\u5757\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u677F\u5757\u4EE3\u7801\u3001\u540D\u79F0\u3001\u6700\u65B0\u4EF7\u3001\u6DA8\u8DCC\u5E45\u3001\u6210\u4EA4\u989D\u3001\u9886\u6DA8\u80A1\u7B49\u3002\u65E0\u53C2\u3002",argShape:"none"},{path:["board","concept","spot"],toolName:"get_concept_spot",summary:"\u6982\u5FF5\u677F\u5757\u5B9E\u65F6\u6307\u6807",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u6982\u5FF5\u677F\u5757\u7684\u5B9E\u65F6\u884C\u60C5\u6307\u6807\uFF08\u6700\u65B0\u3001\u6700\u9AD8\u3001\u6700\u4F4E\u3001\u5F00\u76D8\u3001\u6210\u4EA4\u91CF\u989D\u3001\u6DA8\u8DCC\u5E45\u3001\u632F\u5E45\u3001\u6362\u624B\u7387\u7B49\uFF09\uFF0C\u8FD4\u56DE `{ item, value }[]`\u3002\u6210\u5206\u80A1\u5217\u8868\u8BF7\u7528 `constituents`\uFF1B\u6210\u5206\u80A1\u884C\u60C5\u4EA6\u89C1 `constituents`\uFF08\u542B\u4EF7\u683C/\u6DA8\u8DCC\u5E45\uFF09\u3002symbol \u4E3A\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u540D\u79F0\u3002",argShape:"positional",positional:[e("\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u677F\u5757\u540D\u79F0")]},{path:["board","concept","constituents"],toolName:"get_concept_constituents",tier:"core",summary:"\u6982\u5FF5\u677F\u5757\u6210\u5206\u80A1",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u6982\u5FF5\u677F\u5757\u7684\u6210\u5206\u80A1\u5217\u8868\uFF08\u4EE3\u7801\u3001\u540D\u79F0\u7B49\u57FA\u7840\u4FE1\u606F\uFF09\u3002symbol \u4E3A\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u540D\u79F0\u3002",argShape:"positional",positional:[e("\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u677F\u5757\u540D\u79F0")]},{path:["board","concept","kline"],toolName:"get_concept_kline",summary:"\u6982\u5FF5\u677F\u5757K\u7EBF",mcpDesc:"\u83B7\u53D6\u6982\u5FF5\u677F\u5757\u5386\u53F2 K \u7EBF\uFF08\u65E5/\u5468/\u6708\uFF09\uFF1A\u65E5\u671F\u3001\u5F00\u9AD8\u4F4E\u6536\u3001\u6210\u4EA4\u91CF\u989D\u3001\u6DA8\u8DCC\u5E45\u3002\u4EF7\u683C\u5355\u4F4D\u4E3A\u5143\u3002\u590D\u6743\u9ED8\u8BA4\u4E0D\u590D\u6743\uFF0C\u9700\u524D/\u540E\u590D\u6743\u8BF7\u663E\u5F0F\u4F20 adjust\u3002",argShape:"symbol+options",positional:[e("\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u677F\u5757\u540D\u79F0")],params:[r,S,t,o]},{path:["board","concept","minuteKline"],toolName:"get_concept_minute_kline",summary:"\u6982\u5FF5\u677F\u5757\u5206\u65F6",mcpDesc:"\u83B7\u53D6\u6982\u5FF5\u677F\u5757\u5206\u65F6/\u5206\u949F K \u7EBF\u3002period=1 \u8FD4\u56DE\u5F53\u65E5\u5206\u65F6\uFF1B5/15/30/60 \u8FD4\u56DE\u5BF9\u5E94\u5206\u949F K \u7EBF\u3002\u9ED8\u8BA4 5\uFF085 \u5206\u949F K \u7EBF\uFF09\uFF0C\u5F53\u65E5\u5206\u65F6\u8BF7\u4F20 period=1\u3002",argShape:"symbol+options",positional:[e("\u6982\u5FF5\u677F\u5757\u4EE3\u7801\uFF08\u5982 BK0815\uFF09\u6216\u677F\u5757\u540D\u79F0")],params:[f]},{path:["options","index","spot"],toolName:"get_index_option_spot",summary:"\u80A1\u6307\u671F\u6743T\u578B\u62A5\u4EF7",mcpDesc:"\u83B7\u53D6\u4E2D\u91D1\u6240\u80A1\u6307\u671F\u6743 T \u578B\u5B9E\u65F6\u62A5\u4EF7\uFF08\u8BA4\u8D2D/\u8BA4\u6CBD\u5206\u5217\uFF09\u3002product=\u4EA7\u54C1\u4EE3\u7801(ho/io/mo)\uFF1Bcontract=\u5408\u7EA6\u6708\u4EFD\u3002",argShape:"positional",positional:[{name:"product",required:!0,enum:z,desc:"\u4EA7\u54C1\u4EE3\u7801\uFF1Aho / io / mo"},{name:"contract",required:!0,desc:"\u5408\u7EA6\uFF08\u6708\u4EFD\uFF09\uFF0C\u5982 2406"}]},{path:["options","index","kline"],toolName:"get_index_option_kline",summary:"\u80A1\u6307\u671F\u6743\u65E5K",mcpDesc:"\u83B7\u53D6\u4E2D\u91D1\u6240\u80A1\u6307\u671F\u6743\u67D0\u5408\u7EA6\u7684\u65E5 K \u7EBF\u3002",argShape:"positional",positional:[e("\u671F\u6743\u5408\u7EA6\u4EE3\u7801")]},{path:["options","etf","months"],toolName:"get_etf_option_months",summary:"ETF\u671F\u6743\u6708\u4EFD",mcpDesc:"\u83B7\u53D6 ETF \u671F\u6743\u53EF\u4EA4\u6613\u6708\u4EFD\u5217\u8868\uFF08\u542B\u6807\u7684/\u54C1\u79CD\u4FE1\u606F\uFF09\u3002cate=\u671F\u6743\u54C1\u79CD\u3002",argShape:"positional",positional:[{name:"cate",required:!0,enum:D,desc:"\u671F\u6743\u54C1\u79CD\uFF1A50ETF / 300ETF / 500ETF / \u79D1\u521B50 / \u79D1\u521B\u677F50"}]},{path:["options","etf","expireDay"],toolName:"get_etf_option_expire_day",summary:"ETF\u671F\u6743\u5230\u671F\u65E5",mcpDesc:"\u83B7\u53D6 ETF \u671F\u6743\u6307\u5B9A\u6708\u4EFD\u7684\u5230\u671F\u65E5\u4E0E\u5269\u4F59\u5929\u6570\u3002month \u683C\u5F0F YYYY-MM\uFF08\u5982 2024-06\uFF09\uFF0C\u53EF\u76F4\u63A5\u53D6\u81EA get_etf_option_months \u8FD4\u56DE\u7684\u6708\u4EFD\u3002",argShape:"positional",positional:[{name:"cate",required:!0,enum:D,desc:"\u671F\u6743\u54C1\u79CD\uFF1A50ETF / 300ETF / 500ETF / \u79D1\u521B50 / \u79D1\u521B\u677F50"},{name:"month",required:!0,desc:"\u6708\u4EFD YYYY-MM\uFF0C\u5982 2024-06\uFF08\u53EF\u53D6\u81EA get_etf_option_months \u8FD4\u56DE\u7684\u6708\u4EFD\uFF09"}]},{path:["options","etf","minute"],toolName:"get_etf_option_minute",summary:"ETF\u671F\u6743\u5F53\u65E5\u5206\u65F6",mcpDesc:"\u83B7\u53D6 ETF \u671F\u6743\u67D0\u5408\u7EA6\u7684\u5F53\u65E5\u5206\u65F6\u6570\u636E\uFF08\u4EF7\u683C\u3001\u6210\u4EA4\u91CF\u3001\u6301\u4ED3\u91CF\u3001\u5747\u4EF7\uFF09\u3002",argShape:"positional",positional:[n("\u671F\u6743\u5408\u7EA6\u4EE3\u7801")]},{path:["options","etf","dailyKline"],toolName:"get_etf_option_daily_kline",summary:"ETF\u671F\u6743\u65E5K",mcpDesc:"\u83B7\u53D6 ETF \u671F\u6743\u67D0\u5408\u7EA6\u7684\u65E5 K \u7EBF\u3002",argShape:"positional",positional:[n("\u671F\u6743\u5408\u7EA6\u4EE3\u7801")]},{path:["options","etf","fiveDayMinute"],toolName:"get_etf_option_five_day_minute",summary:"ETF\u671F\u67435\u65E5\u5206\u65F6",mcpDesc:"\u83B7\u53D6 ETF \u671F\u6743\u67D0\u5408\u7EA6\u7684\u8FD1 5 \u65E5\u5206\u65F6\u6570\u636E\u3002",argShape:"positional",positional:[n("\u671F\u6743\u5408\u7EA6\u4EE3\u7801")]},{path:["options","commodity","spot"],toolName:"get_commodity_option_spot",summary:"\u5546\u54C1\u671F\u6743T\u578B\u62A5\u4EF7",mcpDesc:"\u83B7\u53D6\u5546\u54C1\u671F\u6743 T \u578B\u5B9E\u65F6\u62A5\u4EF7\uFF08\u8BA4\u8D2D/\u8BA4\u6CBD\u5206\u5217\uFF09\u3002variety=\u54C1\u79CD\u4EE3\u7801\uFF08\u5982 cu/m/au\uFF09\uFF1Bcontract=\u5408\u7EA6\u6708\u4EFD\u3002",argShape:"positional",positional:[{name:"variety",required:!0,desc:"\u54C1\u79CD\u4EE3\u7801\uFF0C\u5982 cu / m / au"},{name:"contract",required:!0,desc:"\u5408\u7EA6\uFF08\u6708\u4EFD\uFF09\uFF0C\u5982 2406"}]},{path:["options","commodity","kline"],toolName:"get_commodity_option_kline",summary:"\u5546\u54C1\u671F\u6743\u65E5K",mcpDesc:"\u83B7\u53D6\u5546\u54C1\u671F\u6743\u67D0\u5408\u7EA6\u7684\u65E5 K \u7EBF\u3002",argShape:"positional",positional:[e("\u671F\u6743\u5408\u7EA6\u4EE3\u7801")]},{path:["options","cffex","quotes"],toolName:"get_cffex_option_quotes",summary:"\u4E2D\u91D1\u6240\u671F\u6743\u5F53\u65E5\u62A5\u4EF7",mcpDesc:"\u83B7\u53D6\u4E2D\u91D1\u6240\u5168\u90E8\u671F\u6743\u5B9E\u65F6\u884C\u60C5\u5217\u8868\uFF08\u4EF7\u683C\u3001\u6DA8\u8DCC\u3001\u6210\u4EA4\u3001\u6301\u4ED3\u3001\u884C\u6743\u4EF7\u3001\u5269\u4F59\u5929\u6570\u7B49\uFF09\u3002\u26A0\uFE0F \u4F53\u79EF\u5927\uFF1A\u9ED8\u8BA4 pageSize=20000 \u8FD4\u56DE\u5168\u5E02\u573A\u5408\u7EA6\u3002",argShape:"options",params:[he]},{path:["options","lhb"],toolName:"get_option_lhb",summary:"\u671F\u6743\u9F99\u864E\u699C",mcpDesc:"\u83B7\u53D6\u671F\u6743\u9F99\u864E\u699C\uFF08\u6309\u6807\u7684\u4E0E\u65E5\u671F\uFF0C\u542B\u6210\u4EA4\u91CF/\u6301\u4ED3\u91CF\u6392\u540D\u3001\u4F1A\u5458\u5E2D\u4F4D\u3001\u51C0\u4E70\u5356\u7B49\uFF09\u3002date \u683C\u5F0F YYYY-MM-DD\u3002",argShape:"positional",positional:[{name:"symbol",required:!0,desc:"\u671F\u6743\u6807\u7684/\u5408\u7EA6\u4EE3\u7801"},{name:"date",required:!0,desc:"\u65E5\u671F YYYY-MM-DD\uFF0C\u5982 2024-06-03"}]},{path:["futures","kline"],toolName:"get_futures_kline",tier:"core",summary:"\u56FD\u5185\u671F\u8D27K\u7EBF",mcpDesc:"\u83B7\u53D6\u56FD\u5185\u671F\u8D27\u5386\u53F2 K \u7EBF\uFF08\u4E1C\u8D22\uFF09\uFF1A\u5F00\u9AD8\u4F4E\u6536\u3001\u6210\u4EA4\u91CF\u3001\u6301\u4ED3\u91CF\u7B49\u3002symbol \u4E3A\u5408\u7EA6\u4EE3\u7801\uFF0C\u5982 rb2605(\u87BA\u7EB9\u94A2) / IF2604(\u6CAA\u6DF1300\u80A1\u6307) / au2606(\u9EC4\u91D1)\uFF0Cperiod \u9ED8\u8BA4 daily(\u65E5\u7EBF)\uFF0CstartDate/endDate \u4E3A YYYYMMDD\u3002",argShape:"symbol+options",positional:[e("\u671F\u8D27\u5408\u7EA6\u4EE3\u7801\uFF0C\u5982 rb2605 / IF2604 / au2606")],params:[r,C,t,o]},{path:["futures","globalSpot"],toolName:"get_global_futures_spot",summary:"\u5168\u7403\u671F\u8D27\u5B9E\u65F6\u884C\u60C5",mcpDesc:"\u83B7\u53D6\u5168\u7403\u671F\u8D27\u5B9E\u65F6\u884C\u60C5\uFF08\u4E1C\u8D22\uFF09\uFF1A\u56FD\u9645\u539F\u6CB9\u3001\u9EC4\u91D1\u3001\u5916\u76D8\u6307\u6570\u671F\u8D27\u7B49\u7684\u6700\u65B0\u4EF7\u3001\u6DA8\u8DCC\u5E45\u3001\u6210\u4EA4\u91CF\u3002pageSize \u4E3A\u6BCF\u9875\u6761\u6570\uFF0C\u9ED8\u8BA4 20\u3002",argShape:"options",params:[ge]},{path:["futures","globalKline"],toolName:"get_global_futures_kline",summary:"\u5168\u7403\u671F\u8D27K\u7EBF",mcpDesc:"\u83B7\u53D6\u5168\u7403\u671F\u8D27\u5386\u53F2 K \u7EBF\uFF08\u4E1C\u8D22\uFF09\uFF1A\u5F00\u9AD8\u4F4E\u6536\u3001\u6210\u4EA4\u91CF\u7B49\u3002symbol \u4E3A\u5408\u7EA6\u4EE3\u7801\uFF0Cperiod \u9ED8\u8BA4 daily\uFF0CstartDate/endDate \u4E3A YYYYMMDD\u3002marketCode \u4E3A\u4E1C\u8D22\u5E02\u573A\u4EE3\u7801\uFF08\u7528\u4E8E\u672A\u5185\u7F6E\u54C1\u79CD\uFF0C\u53EF\u4ECE\u5168\u7403\u671F\u8D27\u5B9E\u65F6\u884C\u60C5\u7ED3\u679C\u53CD\u67E5\uFF09\u3002",argShape:"symbol+options",positional:[e("\u5168\u7403\u671F\u8D27\u5408\u7EA6\u4EE3\u7801\uFF0C\u5982 CONC(WTI \u539F\u6CB9) / GC00Y(COMEX \u9EC4\u91D1)")],params:[r,C,t,o,ye]},{path:["futures","inventorySymbols"],toolName:"get_futures_inventory_symbols",summary:"\u671F\u8D27\u5E93\u5B58\u54C1\u79CD\u5217\u8868",mcpDesc:"\u83B7\u53D6\u671F\u8D27\u5E93\u5B58\u54C1\u79CD\u5217\u8868\uFF08\u4E1C\u8D22\uFF09\uFF1A\u53EF\u67E5\u5E93\u5B58\u7684\u54C1\u79CD\u4EE3\u7801\u4E0E\u540D\u79F0\uFF0C\u4F9B get_futures_inventory \u4F7F\u7528\u3002",argShape:"none"},{path:["futures","inventory"],toolName:"get_futures_inventory",summary:"\u671F\u8D27\u5E93\u5B58\u5386\u53F2",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u54C1\u79CD\u7684\u671F\u8D27\u5E93\u5B58\u5386\u53F2\uFF08\u4E1C\u8D22\uFF09\uFF1A\u4EA4\u6613\u6240\u6CE8\u518C\u4ED3\u5355 / \u5E93\u5B58\u91CF\u53CA\u589E\u51CF\u3002symbol \u4E3A\u54C1\u79CD\u4EE3\u7801\uFF08\u89C1 get_futures_inventory_symbols\uFF09\uFF0CstartDate \u4E3A YYYY-MM-DD(\u9ED8\u8BA4 2020-10-28)\u3002pageSize \u4EC5\u4E3A\u5355\u9875\u6279\u91CF\u5927\u5C0F\uFF08\u9ED8\u8BA4 500\uFF09\uFF0C\u63A5\u53E3\u8FD4\u56DE\u5168\u91CF\u5386\u53F2\uFF0C\u8FC7\u5927\u65F6\u4F1A\u88AB\u88C1\u526A\u3002",argShape:"symbol+options",positional:[e("\u5E93\u5B58\u54C1\u79CD\u4EE3\u7801\uFF08\u89C1 get_futures_inventory_symbols\uFF09")],params:[De,K]},{path:["futures","comexInventory"],toolName:"get_comex_inventory",summary:"COMEX \u5E93\u5B58",mcpDesc:"\u83B7\u53D6 COMEX \u9EC4\u91D1 / \u767D\u94F6\u5E93\u5B58\u5386\u53F2\uFF08\u4E1C\u8D22\uFF09\uFF1A\u6CE8\u518C\u5E93\u5B58\u3001\u5408\u683C\u5E93\u5B58\u53CA\u603B\u91CF\u53D8\u5316\u3002symbol \u5FC5\u586B\uFF0C\u53D6 'gold'(\u9EC4\u91D1) \u6216 'silver'(\u767D\u94F6)\u3002pageSize \u4EC5\u4E3A\u5355\u9875\u6279\u91CF\u5927\u5C0F\uFF08\u9ED8\u8BA4 500\uFF09\uFF0C\u63A5\u53E3\u8FD4\u56DE\u5168\u91CF\u5386\u53F2\uFF0C\u8FC7\u5927\u65F6\u4F1A\u88AB\u88C1\u526A\u3002",argShape:"symbol+options",positional:[{name:"symbol",required:!0,enum:j,desc:"\u54C1\u79CD\uFF1Agold=\u9EC4\u91D1 / silver=\u767D\u94F6"}],params:[K]},{path:["fundFlow","individual"],toolName:"get_individual_fund_flow",tier:"core",summary:"\u4E2A\u80A1\u8D44\u91D1\u6D41\u5386\u53F2",mcpDesc:"\u83B7\u53D6\u4E2A\u80A1\u8D44\u91D1\u6D41\u5386\u53F2\uFF08\u65E5 / \u5468 / \u6708\uFF09\uFF1A\u4E3B\u529B / \u8D85\u5927\u5355 / \u5927\u5355 / \u4E2D\u5355 / \u5C0F\u5355\u51C0\u6D41\u5165\uFF08\u91D1\u989D\u5355\u4F4D\u5143\u3001\u5360\u6BD4\u4E3A\u767E\u5206\u6BD4\uFF09\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968\u4EE3\u7801\uFF0C\u5E26\u4E0D\u5E26 sh/sz/bj \u524D\u7F00\u5747\u53EF\uFF0C\u5982 600519 / sh600519")],params:[{...Y,cli:!1}]},{path:["fundFlow","market"],toolName:"get_market_fund_flow",summary:"\u5927\u76D8\u8D44\u91D1\u6D41",mcpDesc:"\u83B7\u53D6\u5927\u76D8\u8D44\u91D1\u6D41\uFF08\u4E0A\u8BC1\u7EFC\u6307 + \u6DF1\u8BC1\u6210\u6307(399001)\uFF09\uFF1A\u5404\u5206\u7C7B\u8D44\u91D1\u51C0\u6D41\u5165\u91D1\u989D\uFF08\u5143\uFF09\u4E0E\u5360\u6BD4\uFF08%\uFF09\u3002",argShape:"none"},{path:["fundFlow","rank"],toolName:"get_fund_flow_rank",tier:"core",summary:"\u4E2A\u80A1\u8D44\u91D1\u6D41\u6392\u540D",mcpDesc:"\u83B7\u53D6\u4E2A\u80A1\u8D44\u91D1\u6D41\u6392\u540D\uFF08\u6CAA\u6DF1\u5317 A \u80A1\u5168\u5E02\u573A\uFF09\uFF1A\u6309\u4E3B\u529B\u51C0\u6D41\u5165\u6392\u5E8F\uFF0C\u91D1\u989D\u5355\u4F4D\u5143\u3001\u5360\u6BD4\u4E3A\u767E\u5206\u6BD4\u3002\u26A0\uFE0F MCP tools/call \u5927\u6570\u7EC4\u4F1A\u88AB\u88C1\u526A\u81F3\u524D 200 \u6761\uFF08\u6309\u4E3B\u529B\u51C0\u6D41\u5165\u964D\u5E8F\uFF09\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\u3002",argShape:"options",params:[T]},{path:["fundFlow","sectorRank"],toolName:"get_sector_fund_flow_rank",summary:"\u677F\u5757\u8D44\u91D1\u6D41\u6392\u540D",mcpDesc:"\u83B7\u53D6\u677F\u5757\u8D44\u91D1\u6D41\u6392\u540D\uFF08\u884C\u4E1A / \u6982\u5FF5 / \u5730\u57DF\uFF09\uFF1A\u6309\u677F\u5757\u4E3B\u529B\u51C0\u6D41\u5165\u6392\u5E8F\uFF0C\u91D1\u989D\u5355\u4F4D\u5143\u3001\u5360\u6BD4\u4E3A\u767E\u5206\u6BD4\u3002",argShape:"options",params:[T,le]},{path:["fundFlow","sectorHistory"],toolName:"get_sector_fund_flow_history",summary:"\u5355\u677F\u5757\u5386\u53F2\u8D44\u91D1\u6D41",mcpDesc:"\u83B7\u53D6\u5355\u4E2A\u677F\u5757\u7684\u5386\u53F2\u8D44\u91D1\u6D41\uFF08\u65E5 / \u5468 / \u6708\uFF09\uFF1A\u5404\u5206\u7C7B\u8D44\u91D1\u51C0\u6D41\u5165\u91D1\u989D\uFF08\u5143\uFF09\u4E0E\u5360\u6BD4\uFF08%\uFF09\u3002symbol \u4E3A\u677F\u5757\u7F16\u53F7\uFF0C\u5982 BK0438 \u6216\u5168\u524D\u7F00 90.BK0438\u3002",argShape:"symbol+options",positional:[e("\u677F\u5757\u7F16\u53F7\uFF0C\u5982 BK0438 \u6216\u5168\u524D\u7F00 90.BK0438")],params:[{...Y,cli:!1}]},{path:["northbound","minute"],toolName:"get_northbound_minute",summary:"\u5317\u5411/\u5357\u5411\u5206\u65F6(--direction north|south \u6216\u4F4D\u7F6E\u53C2\u6570)",mcpDesc:"\u83B7\u53D6\u5317\u5411 / \u5357\u5411\u8D44\u91D1\u5206\u65F6\u6570\u636E\uFF08\u5F53\u65E5\uFF0C\u6309 HH:MM\uFF09\u3002\u8FD4\u56DE\u6CAA/\u6DF1\u5206\u9879\u4E0E\u5408\u8BA1\u51C0\u6D41\u5165\uFF08\u5355\u4F4D:\u4E07\u5143\uFF09\u3002direction:north=\u5317\u5411(\u9ED8\u8BA4) / south=\u5357\u5411\u3002",argShape:"positional",positional:[{name:"direction",enum:g,default:"north",desc:"\u8D44\u91D1\u65B9\u5411:north=\u5317\u5411(\u9ED8\u8BA4) / south=\u5357\u5411"}],params:[P]},{path:["northbound","summary"],toolName:"get_northbound_flow_summary",tier:"core",summary:"\u6CAA\u6DF1\u6E2F\u901A\u8D44\u91D1\u6C47\u603B",mcpDesc:"\u83B7\u53D6\u6CAA\u6DF1\u6E2F\u901A\u5E02\u573A\u8D44\u91D1\u6D41\u5411\u6C47\u603B\uFF08\u5317\u5411 + \u5357\u5411 + \u6E2F\u80A1\u901A\u62C6\u5206\uFF09\uFF1A\u542B\u677F\u5757\u540D\u3001\u51C0\u4E70\u989D/\u51C0\u6D41\u5165(\u5143)\u3001\u5F53\u65E5\u4F59\u989D\u3001\u76F8\u5173\u6307\u6570\u6DA8\u8DCC\u5E45\u7B49\u3002",argShape:"none"},{path:["northbound","holdingRank"],toolName:"get_northbound_holding_rank",summary:"\u5317\u5411\u6301\u80A1\u6392\u884C",mcpDesc:"\u83B7\u53D6\u5317\u5411 / \u6CAA\u80A1\u901A / \u6DF1\u80A1\u901A\u6301\u80A1\u4E2A\u80A1\u6392\u884C\uFF1A\u542B\u6301\u80A1\u80A1\u6570\u3001\u6301\u80A1\u5E02\u503C(\u5143)\u3001\u5360\u6D41\u901A\u80A1/\u603B\u80A1\u672C\u6BD4(%)\u3001\u533A\u95F4\u589E\u6301\u4F30\u8BA1\u7B49\u3002market:all(\u9ED8\u8BA4)/shanghai/shenzhen;period \u9ED8\u8BA4 5day;date \u987B\u4E3A\u6709\u6570\u636E\u7684\u4EA4\u6613\u65E5\uFF0C\u5426\u5219\u8FD4\u56DE\u7A7A\u3002",argShape:"options",params:[de,ue,_e]},{path:["northbound","history"],toolName:"get_northbound_history",summary:"\u5317\u5411/\u5357\u5411\u5386\u53F2(--direction north|south\uFF1B--start/--end)",mcpDesc:"\u83B7\u53D6\u5317\u5411 / \u5357\u5411\u8D44\u91D1\u5386\u53F2\uFF08\u6309\u65E5\uFF09\uFF1A\u6210\u4EA4\u51C0\u4E70\u989D\u3001\u4E70/\u5356\u6210\u4EA4\u989D\u3001\u5386\u53F2\u7D2F\u8BA1\u51C0\u4E70\u989D\u3001\u5F53\u65E5\u8D44\u91D1\u6D41\u5165/\u4F59\u989D(\u5143)\u53CA\u9886\u6DA8\u80A1\u3002direction:north(\u9ED8\u8BA4)/south;\u4E0D\u4F20 startDate/endDate \u53D6\u5168\u91CF\u533A\u95F4\u3002",argShape:"symbol+options",positional:[{name:"direction",enum:g,default:"north",desc:"\u8D44\u91D1\u65B9\u5411:north=\u5317\u5411(\u9ED8\u8BA4) / south=\u5357\u5411"}],params:[P,I,v]},{path:["northbound","individual"],toolName:"get_northbound_individual",summary:"\u4E2A\u80A1\u5317\u5411\u6301\u4ED3\u5386\u53F2",mcpDesc:"\u83B7\u53D6\u4E2A\u80A1\u7684\u5317\u5411\u6301\u4ED3\u5386\u53F2\uFF08\u6309\u65E5\uFF09\uFF1A\u6301\u80A1\u6570\u91CF\u3001\u6301\u80A1\u5E02\u503C(\u5143)\u3001\u5360\u6D41\u901A\u80A1/\u603B\u80A1\u672C\u6BD4(%)\u3001\u5F53\u65E5\u6536\u76D8\u4EF7\u4E0E\u6DA8\u8DCC\u5E45\u3002\u4E0D\u4F20 startDate/endDate \u53D6\u5168\u91CF\u533A\u95F4\u3002",argShape:"symbol+options",positional:[e(d)],params:[ee,ae]},{path:["marketEvent","ztPool"],toolName:"get_zt_pool",tier:"core",summary:"\u6DA8\u505C\u80A1\u6C60",mcpDesc:"\u83B7\u53D6\u6DA8\u505C\u80A1\u6C60\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u6DA8\u505C / \u6628\u65E5\u6DA8\u505C / \u5F3A\u52BF / \u6B21\u65B0 / \u70B8\u677F / \u8DCC\u505C\u3002\u5B57\u6BB5\u542B\u4EF7\u683C(\u5143)\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u6210\u4EA4\u989D(\u5143)\u3001\u6D41\u901A/\u603B\u5E02\u503C(\u5143)\u3001\u6362\u624B\u7387(%)\u3001\u8FDE\u677F\u6570\u3001\u5C01\u677F\u65F6\u95F4(HHMMSS) \u7B49\u3002type \u9ED8\u8BA4 zt\uFF1Bdate \u4E0D\u4F20\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5\u3002",argShape:"positional",positional:[{name:"type",enum:U,default:"zt",desc:"\u80A1\u6C60\u7C7B\u578B\uFF1Azt=\u6DA8\u505C / yesterday=\u6628\u65E5\u6DA8\u505C / strong=\u5F3A\u52BF / sub_new=\u6B21\u65B0 / broken=\u70B8\u677F / dt=\u8DCC\u505C"},{name:"date",desc:"\u65E5\u671F YYYYMMDD \u6216 YYYY-MM-DD\uFF0C\u4E0D\u4F20\u4E3A\u6700\u65B0\u4EA4\u6613\u65E5"}]},{path:["marketEvent","stockChanges"],toolName:"get_stock_changes",summary:"\u76D8\u53E3\u5F02\u52A8(type \u53EF\u4F20 all \u62C9\u5168\u7C7B\u578B)",mcpDesc:"\u83B7\u53D6\u5F53\u65E5\u76D8\u53E3\u5F02\u52A8\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u6BCF\u6761\u542B\u53D1\u751F\u65F6\u95F4(HH:MM:SS)\u3001\u4EE3\u7801\u3001\u540D\u79F0\u3001\u5F02\u52A8\u7C7B\u578B(changeType/typeCode)\u53CA\u4E2D\u6587\u6807\u7B7E\u3001\u76F8\u5173\u4FE1\u606F\u3002type \u4E0D\u4F20\u9ED8\u8BA4 large_buy(\u5927\u7B14\u4E70\u5165);\u4F20 'all' \u4E00\u6B21\u62C9\u53D6\u5168\u90E8 22 \u7C7B(\u603B\u91CF\u53EF\u8FBE\u4E0A\u4E07\u6761,\u81EA\u52A8\u7FFB\u9875\u6536\u5168,MCP tools/call \u8D85 200 \u6761\u4F1A\u88AB\u88C1\u526A)\u3002",argShape:"positional",positional:[{name:"type",enum:Z,default:"large_buy",desc:"\u5F02\u52A8\u7C7B\u578B\u7B5B\u9009(all=\u5168\u90E8 22 \u7C7B)\uFF1Arocket_launch=\u706B\u7BAD\u53D1\u5C04 / quick_rebound=\u5FEB\u901F\u53CD\u5F39 / large_buy=\u5927\u7B14\u4E70\u5165 / limit_up_seal=\u5C01\u6DA8\u505C\u677F / limit_down_open=\u6253\u5F00\u8DCC\u505C\u677F / big_buy_order=\u6709\u5927\u4E70\u76D8 / auction_up=\u7ADE\u4EF7\u4E0A\u6DA8 / high_open_5d=\u9AD8\u5F005\u65E5\u7EBF / gap_up=\u5411\u4E0A\u7F3A\u53E3 / high_60d=60\u65E5\u65B0\u9AD8 / surge_60d=60\u65E5\u5927\u5E45\u4E0A\u6DA8 / accelerate_down=\u52A0\u901F\u4E0B\u8DCC / high_dive=\u9AD8\u53F0\u8DF3\u6C34 / large_sell=\u5927\u7B14\u5356\u51FA / limit_down_seal=\u5C01\u8DCC\u505C\u677F / limit_up_open=\u6253\u5F00\u6DA8\u505C\u677F / big_sell_order=\u6709\u5927\u5356\u76D8 / auction_down=\u7ADE\u4EF7\u4E0B\u8DCC / low_open_5d=\u4F4E\u5F005\u65E5\u7EBF / gap_down=\u5411\u4E0B\u7F3A\u53E3 / low_60d=60\u65E5\u65B0\u4F4E / drop_60d=60\u65E5\u5927\u5E45\u4E0B\u8DCC"}]},{path:["marketEvent","individualChanges"],toolName:"get_individual_stock_changes",summary:"\u4E2A\u80A1\u5F53\u65E5\u76D8\u53E3\u5F02\u52A8",mcpDesc:'\u83B7\u53D6\u5355\u53EA A \u80A1\u67D0\u4E2A\u4EA4\u6613\u65E5\u7684\u76D8\u53E3\u5F02\u52A8\u4E8B\u4EF6\u6D41\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u65F6\u95F4\u3001\u7C7B\u578B(changeType/typeCode,\u542B\u4E2D\u6587\u6807\u7B7E)\u3001\u89E6\u53D1\u4EF7(\u5143)\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u76F8\u5173\u4FE1\u606F;\u5168\u90E8\u7C7B\u578B\u4E00\u6B21\u8FD4\u56DE,\u6700\u65B0\u5728\u524D\u3002date \u4E0D\u4F20\u4E3A\u4ECA\u5929\u3002\u6CE8\u610F:\u670D\u52A1\u7AEF\u4EC5\u4FDD\u7559\u7EA6\u6700\u8FD1\u6570\u5468\u6570\u636E(\u4E14\u53EF\u80FD\u6709\u4E2A\u522B\u65E5\u671F\u7A7A\u6D1E),\u65E0\u6570\u636E\u65E5\u671F\u8FD4\u56DE\u7A7A\u6570\u7EC4;\u9700\u8981\u533A\u5206"\u8D85\u7A97"\u4E0E"\u5F53\u65E5\u65E0\u5F02\u52A8"\u8BF7\u7528 get_individual_stock_changes_history(\u9010\u65E5\u5E26 available \u6807\u8BB0)\u3002',argShape:"symbol+options",positional:[e("\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519 / sh600519")],params:[{flag:"date",type:"string",desc:"\u4EA4\u6613\u65E5 YYYYMMDD \u6216 YYYY-MM-DD,\u4E0D\u4F20\u4E3A\u4ECA\u5929",mcpDesc:"\u4EA4\u6613\u65E5 YYYYMMDD \u6216 YYYY-MM-DD;\u4E0D\u4F20\u4E3A\u5317\u4EAC\u65F6\u95F4\u4ECA\u5929"}]},{path:["marketEvent","individualChangesHistory"],toolName:"get_individual_stock_changes_history",summary:"\u4E2A\u80A1\u8FD1N\u5929\u5F02\u52A8\u5386\u53F2(--days 7)",mcpDesc:"\u805A\u5408\u5355\u53EA A \u80A1\u6700\u8FD1 N \u4E2A\u81EA\u7136\u65E5\u7684\u76D8\u53E3\u5F02\u52A8\uFF08\u6309\u4EA4\u6613\u65E5\u5386\u9010\u4EA4\u6613\u65E5\u8BF7\u6C42\u540E\u5408\u5E76\uFF09\uFF1Adays \u6570\u7EC4\u6309\u65E5\u671F\u5347\u5E8F,\u6BCF\u65E5\u542B available \u6807\u8BB0\u4E0E\u4E8B\u4EF6\u6D41;coverage \u6807\u6CE8\u5B9E\u9645\u8986\u76D6\u8303\u56F4(\u670D\u52A1\u7AEF\u4EC5\u4FDD\u7559\u7EA6\u6700\u8FD1\u6570\u5468\u4E14\u53EF\u80FD\u6709\u7A7A\u6D1E\u65E5,\u65E0\u6570\u636E\u65E5\u671F available=false);stats \u4EE5\u539F\u59CB\u7C7B\u578B\u7801\u4E3A\u952E\u7ED9\u51FA\u5404\u7C7B\u578B\u8BA1\u6570(\u542B\u4E2D\u6587\u6807\u7B7E)\u3002days \u9ED8\u8BA4 7,\u8303\u56F4 1~60\u3002\u26A0\uFE0F \u8FD4\u56DE\u4E3A\u5D4C\u5957\u5BF9\u8C61:\u5E8F\u5217\u5316\u8D85\u7EA6 80KB \u4F1A\u88AB\u6574\u4F53\u7701\u7565(\u4EC5\u8FD4\u56DE\u63D0\u793A,\u62FF\u4E0D\u5230\u4EFB\u4F55\u6570\u636E);\u4E8B\u4EF6\u591A\u7684\u6D3B\u8DC3\u6807\u7684\u8BF7\u7528\u8F83\u5C0F days \u5206\u6BB5\u67E5\u8BE2,\u6216\u6539\u7528 get_individual_stock_changes \u9010\u65E5\u83B7\u53D6\u3002",argShape:"symbol+options",positional:[e("\u80A1\u7968\u4EE3\u7801\uFF0C\u5982 600519 / sh600519")],params:[{flag:"days",type:"number",default:7,desc:"\u6700\u8FD1 N \u4E2A\u81EA\u7136\u65E5(1~60,\u9ED8\u8BA4 7)",mcpDesc:"\u6700\u8FD1 N \u4E2A\u81EA\u7136\u65E5,\u9ED8\u8BA4 7,\u6700\u5927 60"}]},{path:["marketEvent","boardChanges"],toolName:"get_board_changes",summary:"\u677F\u5757\u5F02\u52A8",mcpDesc:"\u83B7\u53D6\u5F53\u65E5\u677F\u5757\u5F02\u52A8\u6C47\u603B\uFF08\u4E1C\u65B9\u8D22\u5BCC\uFF09\uFF1A\u6BCF\u6761\u542B\u677F\u5757\u540D\u79F0\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u4E3B\u529B\u51C0\u6D41\u5165(\u5143)\u3001\u5F02\u52A8\u603B\u6B21\u6570\u3001\u5F02\u52A8\u6700\u9891\u7E41\u4E2A\u80A1\uFF08\u4EE3\u7801 / \u540D\u79F0 / \u65B9\u5411\uFF09\u53CA\u5F02\u52A8\u7C7B\u578B\u5206\u5E03\u3002\u65E0\u53C2\u3002",argShape:"none"},{path:["dragonTiger","detail"],toolName:"get_dragon_tiger_detail",tier:"core",summary:"\u9F99\u864E\u699C\u8BE6\u60C5(\u5FC5\u586B --start/--end)",mcpDesc:"\u83B7\u53D6\u9F99\u864E\u699C\u4E0A\u699C\u4E2A\u80A1\u660E\u7EC6\uFF08\u6309\u65E5\u671F\u8303\u56F4\uFF09\uFF1A\u4EE3\u7801\u3001\u540D\u79F0\u3001\u4E0A\u699C\u65E5\u671F\u3001\u6536\u76D8\u4EF7\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u51C0\u4E70\u989D/\u4E70\u5165\u989D/\u5356\u51FA\u989D/\u6210\u4EA4\u989D(\u5143)\u3001\u5360\u603B\u6210\u4EA4\u6BD4(%)\u3001\u6362\u624B\u7387(%)\u3001\u6D41\u901A\u5E02\u503C(\u5143)\u3001\u4E0A\u699C\u539F\u56E0\u3001\u4E0A\u699C\u540E 1/2/5/10 \u65E5\u6DA8\u8DCC\u5E45(%)\u3002\u65E5\u671F\u683C\u5F0F YYYYMMDD\uFF0CstartDate / endDate \u5747\u5FC5\u586B\u3002\u65E5\u671F\u533A\u95F4\u8FC7\u5927\u65F6 MCP tools/call \u8D85 200 \u6761\u4F1A\u88AB\u88C1\u526A\uFF0C\u8BF7\u6536\u7A84\u533A\u95F4\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\u3002",argShape:"options",params:[M,N]},{path:["dragonTiger","stockStats"],toolName:"get_dragon_tiger_stock_stats",summary:"\u4E2A\u80A1\u4E0A\u699C\u7EDF\u8BA1",mcpDesc:"\u83B7\u53D6\u9F99\u864E\u699C\u4E2A\u80A1\u4E0A\u699C\u7EDF\u8BA1\uFF08\u6309\u5468\u671F\u805A\u5408\uFF09\uFF1A\u4EE3\u7801\u3001\u540D\u79F0\u3001\u6700\u8FD1\u4E0A\u699C\u65E5\u3001\u6536\u76D8\u4EF7\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u4E0A\u699C\u6B21\u6570\u3001\u7D2F\u8BA1\u4E70\u5165/\u5356\u51FA/\u51C0\u989D/\u6210\u4EA4\u989D(\u5143)\u3001\u7D2F\u8BA1\u4E70/\u5356\u65B9\u673A\u6784\u6B21\u6570\u3002period \u53EF\u9009\uFF0C\u9ED8\u8BA4 1month\u3002\u26A0\uFE0F MCP tools/call \u8D85 200 \u6761\u4F1A\u88AB\u88C1\u526A\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\u3002",argShape:"positional",positional:[{name:"period",enum:y,default:"1month",desc:q}]},{path:["dragonTiger","institution"],toolName:"get_dragon_tiger_institution",summary:"\u673A\u6784\u4E70\u5356\u7EDF\u8BA1(\u5FC5\u586B --start/--end)",mcpDesc:"\u83B7\u53D6\u9F99\u864E\u699C\u673A\u6784\u4E70\u5356\u660E\u7EC6\uFF08\u6309\u65E5\u671F\u8303\u56F4\uFF09\uFF1A\u4EE3\u7801\u3001\u540D\u79F0\u3001\u4E0A\u699C\u65E5\u671F\u3001\u6536\u76D8\u4EF7\u3001\u6DA8\u8DCC\u5E45(%)\u3001\u4E70/\u5356\u65B9\u673A\u6784\u6570\u3001\u673A\u6784\u4E70\u5165\u989D/\u5356\u51FA\u989D/\u51C0\u989D(\u5143)\u3002\u65E5\u671F\u683C\u5F0F YYYYMMDD\uFF0CstartDate / endDate \u5747\u5FC5\u586B\u3002\u65E5\u671F\u533A\u95F4\u8FC7\u5927\u65F6 MCP tools/call \u8D85 200 \u6761\u4F1A\u88AB\u88C1\u526A\uFF0C\u8BF7\u6536\u7A84\u533A\u95F4\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\u3002",argShape:"options",params:[M,N]},{path:["dragonTiger","branchRank"],toolName:"get_dragon_tiger_branch_rank",summary:"\u8425\u4E1A\u90E8\u6392\u884C",mcpDesc:"\u83B7\u53D6\u9F99\u864E\u699C\u8425\u4E1A\u90E8\uFF08\u5E2D\u4F4D\uFF09\u6392\u884C\uFF08\u6309\u5468\u671F\u805A\u5408\uFF09\uFF1A\u8425\u4E1A\u90E8\u4EE3\u7801\u3001\u540D\u79F0\u3001\u4E70\u5165\u603B\u989D/\u5356\u51FA\u603B\u989D(\u5143)\u3001\u4E70\u5165/\u5356\u51FA\u6B21\u6570\u3001\u4E0A\u699C\u6B21\u6570\u3002period \u53EF\u9009\uFF0C\u9ED8\u8BA4 1month\u3002\u26A0\uFE0F MCP tools/call \u8D85 200 \u6761\u4F1A\u88AB\u88C1\u526A\uFF1BSDK \u76F4\u8FDE\u8FD4\u56DE\u5168\u91CF\u3002",argShape:"positional",positional:[{name:"period",enum:y,default:"1month",desc:q}]},{path:["dragonTiger","seatDetail"],toolName:"get_dragon_tiger_seat_detail",summary:"\u4E2A\u80A1\u5E2D\u4F4D\u660E\u7EC6",mcpDesc:"\u83B7\u53D6\u4E2A\u80A1\u67D0\u65E5\u9F99\u864E\u699C\u5E2D\u4F4D\u660E\u7EC6\uFF1A\u6392\u540D\u3001\u8425\u4E1A\u90E8\u540D\u79F0\u3001\u4E70\u5165\u989D/\u5356\u51FA\u989D/\u51C0\u989D(\u5143)\u3001\u4E70\u5165/\u5356\u51FA\u5360\u603B\u6210\u4EA4\u6BD4(%)\u3001\u4E70\u5356\u65B9\u5411(buy/sell)\u3002symbol \u4E0E date \u5747\u5FC5\u586B\uFF1Bdate \u652F\u6301 YYYYMMDD \u6216 YYYY-MM-DD\u3002",argShape:"positional",positional:[{name:"symbol",required:!0,desc:d},{name:"date",required:!0,desc:"\u4E0A\u699C\u65E5\u671F\uFF0CYYYYMMDD \u6216 YYYY-MM-DD"}]},{path:["blockTrade","marketStat"],summary:"\u5927\u5B97\u4EA4\u6613\u5E02\u573A\u7EDF\u8BA1",mcpDesc:"\u83B7\u53D6\u5927\u5B97\u4EA4\u6613\u5E02\u573A\u6BCF\u65E5\u603B\u89C8\uFF08\u6210\u4EA4\u989D\u3001\u6EA2\u4EF7\u7387\u3001\u4E70\u5356\u65B9\u7EDF\u8BA1\u7B49\uFF09\u3002",argShape:"none",mcp:!1},{path:["blockTrade","detail"],summary:"\u5927\u5B97\u4EA4\u6613\u660E\u7EC6",mcpDesc:"\u83B7\u53D6\u5927\u5B97\u4EA4\u6613\u660E\u7EC6\uFF08\u6309\u65E5\u671F\u8303\u56F4\u7B5B\u9009\uFF09\uFF1A\u6210\u4EA4\u4EF7\u3001\u6210\u4EA4\u91CF\u3001\u4E70\u5356\u8425\u4E1A\u90E8\u7B49\u3002\u7701\u7565\u65E5\u671F\u5219\u9ED8\u8BA4\u6700\u8FD1\u4E00\u6BB5\u65F6\u95F4\u3002",argShape:"options",params:b,mcp:!1},{path:["blockTrade","dailyStat"],summary:"\u5927\u5B97\u4EA4\u6613\u6BCF\u65E5\u7EDF\u8BA1",mcpDesc:"\u83B7\u53D6\u5927\u5B97\u4EA4\u6613\u6BCF\u65E5\u7EDF\u8BA1\uFF08\u6309\u80A1\u7968\u6C47\u603B\uFF09\uFF1A\u6210\u4EA4\u7B14\u6570\u3001\u6210\u4EA4\u989D\u3001\u6EA2\u4EF7\u7387\u7B49\u3002\u7701\u7565\u65E5\u671F\u5219\u9ED8\u8BA4\u6700\u8FD1\u4E00\u6BB5\u65F6\u95F4\u3002",argShape:"options",params:b,mcp:!1},{path:["margin","accountInfo"],summary:"\u878D\u8D44\u878D\u5238\u8D26\u6237\u7EDF\u8BA1",mcpDesc:"\u83B7\u53D6\u878D\u8D44\u878D\u5238\u8D26\u6237\u7EDF\u8BA1\uFF08\u878D\u8D44\u4F59\u989D\u3001\u878D\u5238\u4F59\u91CF\u3001\u4E24\u878D\u4F59\u989D\u7B49\uFF09\u3002",argShape:"none",mcp:!1},{path:["margin","targetList"],summary:"\u878D\u8D44\u878D\u5238\u6807\u7684",mcpDesc:"\u83B7\u53D6\u878D\u8D44\u878D\u5238\u6807\u7684\u660E\u7EC6\u5217\u8868\uFF08\u53EF\u878D\u8D44 / \u53EF\u878D\u5238\u6807\u5FD7\u3001\u6298\u7B97\u7387\u7B49\uFF09\u3002",argShape:"positional",positional:[{name:"date",desc:"\u4EA4\u6613\u65E5 YYYYMMDD \u6216 YYYY-MM-DD\uFF1B\u4E0D\u4F20\u5219\u53D6\u6700\u65B0\u53EF\u7528\u65E5\u671F"}],mcp:!1},{path:["fund","dividendList"],toolName:"get_fund_dividend_list",summary:"\u57FA\u91D1\u5206\u7EA2\u660E\u7EC6",mcpDesc:"\u83B7\u53D6\u57FA\u91D1\u5206\u7EA2\u660E\u7EC6\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\u5206\u7EA2\u9001\u914D\u9891\u9053\uFF09\u3002\u63A5\u53E3\u4EC5\u652F\u6301\u300C\u5E74\u4EFD+\u5168\u5E02\u573A+\u7FFB\u9875\u300D\u67E5\u8BE2\uFF0C\u4E0D\u652F\u6301\u670D\u52A1\u7AEF\u6309\u4EE3\u7801\u7CBE\u786E\u67E5\uFF1B\u8981\u62FF\u5355\u53EA\u57FA\u91D1\u5B8C\u6574\u5206\u7EA2\u8BB0\u5F55\u8BF7\u540C\u65F6\u8BBE page='all' \u4E0E code\uFF08code \u4E3A\u5BA2\u6237\u7AEF\u8FC7\u6EE4\uFF09\u3002\u9ED8\u8BA4\u62C9\u5F53\u524D\u5E74\u7B2C 1 \u9875\u3001\u6309\u9664\u606F\u65E5(FSRQ)\u5012\u5E8F\u3002",argShape:"options",params:Se},{path:["fund","navHistory"],toolName:"get_fund_nav_history",summary:"\u57FA\u91D1\u5386\u53F2\u51C0\u503C",mcpDesc:"\u83B7\u53D6\u57FA\u91D1\u5386\u53F2\u51C0\u503C\uFF08\u5355\u4F4D\u51C0\u503C + \u7D2F\u8BA1\u51C0\u503C\uFF0C\u5168\u5386\u53F2\u4E00\u6B21\u8FD4\u56DE\uFF0C\u6309\u65E5\u671F\u5347\u5E8F\uFF09\u3002\u5F00\u653E\u5F0F / ETF / LOF / \u8D27\u5E01 / QDII \u5747\u901A\u7528\u3002\u26A0\uFE0F \u4F53\u79EF\u5927\uFF1A\u5168\u5386\u53F2\u6570\u5343\u6761\u3001\u54CD\u5E94\u4F53\u7EA6 600KB\uFF0C\u5EFA\u8BAE\u5E94\u7528\u5C42\u7F13\u5B58\u3002",argShape:"positional",positional:[n("\u57FA\u91D1\u4EE3\u7801\uFF0C\u7EAF\u6570\u5B57\uFF0C\u5982 110011")]},{path:["fund","estimate"],toolName:"get_fund_estimate",tier:"core",summary:"\u57FA\u91D1\u5F53\u65E5\u4F30\u503C",mcpDesc:"\u83B7\u53D6\u57FA\u91D1\u5F53\u65E5\u5B9E\u65F6\u4F30\u503C\uFF08\u5929\u5929\u57FA\u91D1 fundgz \u63A5\u53E3\uFF09\u3002\u540C\u65F6\u8FD4\u56DE\u6700\u65B0\u5DF2\u7ED3\u7B97\u5355\u4F4D\u51C0\u503C\uFF08nav/navDate\uFF09\u4E0E\u76D8\u4E2D\u5B9E\u65F6\u4F30\u7B97\uFF08estimatedNav/estimatedChangePercent/estimateTime\uFF0C\u6DA8\u8DCC\u5E45\u5355\u4F4D %\uFF09\u3002QDII / \u975E\u4EA4\u6613\u65E5 / \u90E8\u5206\u5C0F\u4F17\u57FA\u91D1\u7684\u4F30\u7B97\u5B57\u6BB5\u53EF\u80FD\u4E3A null\u3002",argShape:"positional",positional:[n("\u57FA\u91D1\u4EE3\u7801\uFF0C\u7EAF\u6570\u5B57\uFF0C\u5982 005827")]},{path:["fund","rankHistory"],toolName:"get_fund_rank_history",summary:"\u57FA\u91D1\u540C\u7C7B\u6392\u540D\u8D70\u52BF",mcpDesc:"\u83B7\u53D6\u57FA\u91D1\u540C\u7C7B\u6392\u540D\u8D70\u52BF\uFF08\u6BCF\u65E5\u8FD1\u4E09\u6708\u6392\u540D + \u540C\u7C7B\u603B\u6570 + \u6392\u540D\u767E\u5206\u4F4D %\uFF0C\u6309\u65E5\u671F\u5347\u5E8F\uFF09\u3002\u9002\u5408\u753B\u300C\u8BE5\u57FA\u91D1\u5728\u540C\u7C7B\u91CC\u7684\u76F8\u5BF9\u8868\u73B0\u300D\u6298\u7EBF\u56FE\u3002\u6570\u636E\u6E90\u540C get_fund_nav_history\u3002",argShape:"positional",positional:[n("\u57FA\u91D1\u4EE3\u7801\uFF0C\u7EAF\u6570\u5B57\uFF0C\u5982 110011")]},{path:["fund","profile"],toolName:"get_fund_profile",summary:"\u57FA\u91D1\u6DF1\u5EA6\u8D44\u6599",mcpDesc:"\u4E00\u6B21\u8BF7\u6C42\u83B7\u53D6\u57FA\u91D1\u6DF1\u5EA6\u8D44\u6599\uFF08\u4E1C\u65B9\u8D22\u5BCC pingzhongdata \u5168\u91CF\u5B57\u6BB5\uFF09\uFF1A\u524D\u5341\u5927\u91CD\u4ED3\u80A1\u3001\u524D\u4E94\u5927\u503A\u5238\u3001\u5B63\u5EA6\u8D44\u4EA7\u914D\u7F6E\u3001\u6BCF\u65E5\u80A1\u7968\u4ED3\u4F4D\u6D4B\u7B97\u3001\u57FA\u91D1\u7ECF\u7406\uFF08\u542B\u661F\u7EA7\u4E0E\u80FD\u529B\u8BC4\u5206\uFF09\u3001\u4E1A\u7EE9\u8BC4\u4EF7\u3001\u6301\u6709\u4EBA\u7ED3\u6784\u3001\u89C4\u6A21\u53D8\u52A8\u3001\u7533\u8D2D\u8D4E\u56DE\u3001\u9636\u6BB5\u6536\u76CA\u7387\uFF08\u8FD11\u6708/3\u6708/6\u6708/1\u5E74\uFF09\u3001\u540C\u7C7B\u57FA\u91D1\u7B49\u3002\u5B57\u6BB5\u968F\u57FA\u91D1\u7C7B\u578B\u4E0E\u6570\u636E\u5B8C\u6574\u5EA6\u53EF\u80FD\u4E3A\u7A7A\u3002\u4E0E navHistory / rankHistory \u540C\u6E90\uFF08\u540C\u4E00\u4EFD pingzhongdata \u6587\u4EF6\uFF0C\u7EA6 600KB\uFF09\uFF0C\u5EFA\u8BAE\u5E94\u7528\u5C42\u7F13\u5B58\u3002",argShape:"positional",positional:[n("\u57FA\u91D1\u4EE3\u7801\uFF0C\u7EAF\u6570\u5B57\uFF0C\u5982 000001")]},{path:["fund","theme","getThemeList"],toolName:"get_theme_list",tier:"core",summary:"\u4E3B\u9898\u57FA\u91D1\u5217\u8868",mcpDesc:"\u83B7\u53D6\u4E3B\u9898\u57FA\u91D1\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\u5929\u5929\u57FA\u91D1\uFF09\uFF0C\u53EF\u7B5B\u9009\u884C\u4E1A/\u6982\u5FF5\u4E3B\u9898\u7C7B\u578B\uFF0C\u6309\u65E5\u6DA8\u5E45/\u5404\u9636\u6BB5\u6536\u76CA\u7387\u6392\u5E8F\u5206\u9875\u3002\u8FD4\u56DE\u4E3B\u9898\u4EE3\u7801(code)\u3001\u540D\u79F0(name)\u3001\u65E5\u6DA8\u5E45\u53CA\u5404\u9636\u6BB5\u6536\u76CA\u7387\u3002category=0(\u884C\u4E1A)/1(\u6982\u5FF5)/2(\u5168\u90E8\uFF0C\u9ED8\u8BA4)\u3002",argShape:"options",params:[{flag:"sort",type:"string",cli:!1,desc:"\u6392\u5E8F\u5B57\u6BB5\uFF1AZDF(\u65E5\u6DA8\u5E45)/SYL_W(\u8FD11\u5468)/SYL_M(\u8FD11\u6708)/SYL_3M(\u8FD13\u6708)/SYL_6M(\u8FD16\u6708)/SYL_Y(\u8FD11\u5E74)/SYL_3Y(\u8FD13\u5E74)/SYL_5Y(\u8FD15\u5E74)\uFF0C\u9ED8\u8BA4ZDF"},{flag:"order",type:"enum",enum:["desc","asc"],default:"desc",cli:!1,desc:"\u6392\u5E8F\u65B9\u5411\uFF1Adesc(\u964D\u5E8F\uFF0C\u9ED8\u8BA4)/asc(\u5347\u5E8F)"},{flag:"category",type:"enum",enum:["0","1","2"],default:"2",cli:!1,desc:"\u4E3B\u9898\u7C7B\u578B\uFF1A0(\u884C\u4E1A)/1(\u6982\u5FF5)/2(\u5168\u90E8\uFF0C\u9ED8\u8BA4)"},{flag:"pageSize",type:"number",cli:!1,desc:"\u6BCF\u9875\u6761\u6570\uFF0C\u9ED8\u8BA420\uFF0C\u6700\u592750"},{flag:"page",type:"number",cli:!1,desc:"\u9875\u7801\uFF0C\u9ED8\u8BA41"}]},{path:["fund","theme","getThemeFunds"],toolName:"get_theme_funds",summary:"\u4E3B\u9898\u4E0B\u57FA\u91D1\u6392\u884C",mcpDesc:"\u83B7\u53D6\u6307\u5B9A\u4E3B\u9898\u4E0B\u7684\u57FA\u91D1\u6392\u884C\u5217\u8868\uFF08\u4E1C\u65B9\u8D22\u5BCC\u5929\u5929\u57FA\u91D1\uFF09\u3002themeCode\u4E3A\u4E3B\u9898\u4EE3\u7801\uFF08\u5982BK0438=\u98DF\u54C1\u996E\u6599\uFF09\u3002\u53EF\u6309\u65E5\u6DA8\u5E45/\u5404\u9636\u6BB5\u6536\u76CA\u7387\u6392\u5E8F\u5206\u9875\uFF0C\u8FD4\u56DE\u57FA\u91D1\u4EE3\u7801\u3001\u540D\u79F0\u3001\u57FA\u91D1\u7C7B\u578B\u3001\u65E5\u6DA8\u5E45\u53CA\u5404\u9636\u6BB5\u6536\u76CA\u7387\u3001\u6700\u65B0\u51C0\u503C\u3002",argShape:"symbol+options",positional:[e("\u4E3B\u9898\u4EE3\u7801\uFF0C\u5982 BK0438\uFF08\u98DF\u54C1\u996E\u6599\uFF09")],params:[{flag:"sortColumn",type:"string",cli:!1,desc:"\u6392\u5E8F\u5B57\u6BB5\uFF1ASYL_Z(\u8FD11\u5468)/SYL_Y(\u8FD11\u6708)/SYL_3Y(\u8FD13\u6708)/SYL_1N(\u8FD11\u5E74\uFF0C\u9ED8\u8BA4)/RZDF(\u65E5\u6DA8\u5E45)"},{flag:"sort",type:"enum",enum:["desc","asc"],default:"desc",cli:!1,desc:"\u6392\u5E8F\u65B9\u5411\uFF1Adesc(\u964D\u5E8F\uFF0C\u9ED8\u8BA4)/asc(\u5347\u5E8F)"},{flag:"pageSize",type:"number",cli:!1,desc:"\u6BCF\u9875\u6761\u6570\uFF0C\u9ED8\u8BA410\uFF0C\u6700\u592730"},{flag:"page",type:"number",cli:!1,desc:"\u9875\u7801\uFF0C\u9ED8\u8BA41"},{flag:"fundType",type:"string",cli:!1,desc:'\u57FA\u91D1\u7C7B\u578B\u7B5B\u9009\uFF0C\u5982"\u80A1\u7968\u578B"/"\u6DF7\u5408\u578B"\uFF0C\u7A7A\u8868\u793A\u5168\u90E8'}]},{path:["calendar","isTradingDay"],toolName:"is_trading_day",tier:"core",summary:"\u662F\u5426\u4EA4\u6613\u65E5",mcpDesc:"\u5224\u65AD\u67D0\u5929\u662F\u5426\u4E3A A \u80A1\u4EA4\u6613\u65E5\uFF08\u57FA\u4E8E\u4E0A\u6E38\u5B98\u65B9\u65E5\u5386\uFF0C\u80FD\u8BC6\u522B\u6CD5\u5B9A\u5047\u65E5\uFF09\u3002date \u53EF\u9009\uFF0C\u652F\u6301 YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u5219\u5224\u65AD\u4ECA\u5929\u3002\u8FD4\u56DE boolean\u3002",argShape:"positional",positional:[{name:"date",desc:"\u65E5\u671F YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u4E3A\u4ECA\u5929"}]},{path:["calendar","nextTradingDay"],toolName:"next_trading_day",summary:"\u4E0B\u4E00\u4EA4\u6613\u65E5",mcpDesc:"\u8FD4\u56DE\u7ED9\u5B9A\u65E5\u671F\u4E4B\u540E\u6700\u8FD1\u7684\u4E00\u4E2A A \u80A1\u4EA4\u6613\u65E5\uFF08YYYY-MM-DD\uFF09\u3002date \u53EF\u9009\uFF0C\u652F\u6301 YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u5219\u4EE5\u4ECA\u5929\u4E3A\u57FA\u51C6\u3002",argShape:"positional",positional:[{name:"date",desc:"\u57FA\u51C6\u65E5\u671F YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u4E3A\u4ECA\u5929"}]},{path:["calendar","prevTradingDay"],toolName:"prev_trading_day",summary:"\u4E0A\u4E00\u4EA4\u6613\u65E5",mcpDesc:"\u8FD4\u56DE\u7ED9\u5B9A\u65E5\u671F\u4E4B\u524D\u6700\u8FD1\u7684\u4E00\u4E2A A \u80A1\u4EA4\u6613\u65E5\uFF08YYYY-MM-DD\uFF09\u3002date \u53EF\u9009\uFF0C\u652F\u6301 YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u5219\u4EE5\u4ECA\u5929\u4E3A\u57FA\u51C6\u3002",argShape:"positional",positional:[{name:"date",desc:"\u57FA\u51C6\u65E5\u671F YYYY-MM-DD \u6216 YYYYMMDD\uFF1B\u4E0D\u4F20\u4E3A\u4ECA\u5929"}]},{path:["calendar","marketStatus"],toolName:"get_market_status",tier:"core",summary:"\u5E02\u573A\u72B6\u6001",mcpDesc:"\u83B7\u53D6\u5E02\u573A\u5F53\u524D\u5B9E\u65F6\u72B6\u6001\uFF1Apre_market(\u76D8\u524D) / open(\u4EA4\u6613\u4E2D) / lunch_break(\u5348\u4F11) / after_hours(\u76D8\u540E) / closed(\u4F11\u5E02)\u3002market \u53EF\u9009\u679A\u4E3E A/HK/US\uFF0C\u9ED8\u8BA4 A\u3002\u26A0\uFE0F \u540C\u6B65\u672C\u5730\u65F6\u949F\u5224\u65AD\u3001\u4E0D\u53D1\u8BF7\u6C42\uFF1AA \u80A1\u57FA\u4E8E\u4EA4\u6613\u65F6\u6BB5\u4F46\u4E0D\u8BC6\u522B\u6CD5\u5B9A\u5047\u65E5\uFF0C\u6E2F\u80A1/\u7F8E\u80A1\u9000\u5316\u4E3A'\u5468\u4E00-\u5468\u4E94 + \u5DF2\u77E5\u4EA4\u6613\u65F6\u6BB5'\u8FD1\u4F3C\u3002",argShape:"positional",positional:[{name:"market",upper:!0,enum:R,default:"A",desc:"\u5E02\u573A\uFF1AA=A\u80A1 / HK=\u6E2F\u80A1 / US=\u7F8E\u80A1\uFF0C\u9ED8\u8BA4 A"}]},{path:["reference","dividendDetail"],toolName:"get_dividend_detail",summary:"\u5206\u7EA2\u914D\u80A1\u660E\u7EC6",mcpDesc:"\u83B7\u53D6 A \u80A1\u5206\u7EA2\u914D\u80A1\u660E\u7EC6\uFF1A\u5386\u5E74\u9001\u8F6C\u3001\u6D3E\u606F\uFF08\u6BCF 10 \u80A1\u6D3E X \u5143\uFF09\u3001\u9664\u6743\u9664\u606F\u65E5\u3001\u80A1\u6743\u767B\u8BB0\u65E5\u7B49\u3002\u4EE3\u7801\u5E26\u4E0D\u5E26\u4EA4\u6613\u6240\u524D\u7F00\u5747\u53EF\uFF08\u5982 600519 / sh600519\uFF09\u3002",argShape:"positional",positional:[e(d)]},{path:["reference","tradingCalendar"],toolName:"get_trading_calendar",summary:"\u4EA4\u6613\u65E5\u5386(\u539F\u59CB\u6570\u7EC4)",mcpDesc:"\u83B7\u53D6 A \u80A1\u4EA4\u6613\u65E5\u5386\u539F\u59CB\u6570\u7EC4\uFF08\u5347\u5E8F 'YYYY-MM-DD' \u5B57\u7B26\u4E32\u5217\u8868\uFF0C\u6765\u81EA\u817E\u8BAF\u63A5\u53E3\uFF0C\u5E26 12 \u5C0F\u65F6\u7F13\u5B58\uFF09\u3002\u26A0\uFE0F \u4F53\u79EF\u5927\uFF1A\u8FD4\u56DE\u6570\u5343\u4E2A\u4EA4\u6613\u65E5\u3002\u53EA\u9700\u5224\u65AD\u67D0\u65E5\u662F\u5426\u4EA4\u6613\u65E5 / \u53D6\u4E0A\u4E00\u6216\u4E0B\u4E00\u4EA4\u6613\u65E5\u65F6\uFF0C\u4F18\u5148\u7528 calendar \u547D\u540D\u7A7A\u95F4\u4E0B\u7684\u5DE5\u5177\uFF0C\u65E0\u9700\u62C9\u5168\u91CF\u3002",argShape:"none"},{path:["search"],toolName:"search",tier:"core",summary:"\u641C\u7D22\u80A1\u7968/\u6307\u6570/\u57FA\u91D1",mcpDesc:"\u6A21\u7CCA\u641C\u7D22\u80A1\u7968 / \u6307\u6570 / \u57FA\u91D1\uFF08\u4EE3\u7801 / \u540D\u79F0 / \u62FC\u97F3\uFF09\u3002\u8FD4\u56DE code\u3001name\u3001market\u3001category\u3002",argShape:"positional",positional:[{name:"keyword",required:!0,desc:"\u641C\u7D22\u5173\u952E\u8BCD"}]}];function Ne(a){let p=Ye.find(m=>m.path.join(".")===a);if(!p)throw new Error(`spec \u4E2D\u4E0D\u5B58\u5728\u65B9\u6CD5: ${a}`);return p}export{fe as a,R as b,U as c,s as d,r as e,u as f,t as g,o as h,k as i,te as j,se as k,re as l,Ye as m,Ne as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkZESMWMHPcjs = require('./chunk-ZESMWMHP.cjs');var _chunkT5CH7H3Xcjs = require('./chunk-T5CH7H3X.cjs');var _chunkTVIEKKDQcjs = require('./chunk-TVIEKKDQ.cjs');var _chunk4Q7UQ5Q3cjs = require('./chunk-4Q7UQ5Q3.cjs');var _chunk4VDLQK6Fcjs = require('./chunk-4VDLQK6F.cjs');function yt(t){return new TextDecoder("gbk").decode(t)}function ht(t){let e=t.split(";").map(r=>r.trim()).filter(Boolean),n=[];for(let r of e){let o=r.indexOf("=");if(o<0)continue;let i=r.slice(0,o).trim();i.startsWith("v_")&&(i=i.slice(2));let s=r.slice(o+1).trim();s.startsWith('"')&&s.endsWith('"')&&(s=s.slice(1,-1));let a=s.split("~");n.push({key:i,fields:a})}return n}function Tt(t){let e=t.trim();return e===""||e==="-"||e==="--"}function T(t){if(!t||t==="")return 0;let e=parseFloat(t);return Number.isNaN(e)?0:e}function O(t){if(!t||Tt(t))return null;let e=parseFloat(t);return Number.isNaN(e)?null:e}function y(t){if(!t||Tt(t))return null;let e=parseFloat(t);return Number.isNaN(e)?null:e}function u(t){return t==null?null:y(String(t))}function _(t){if(t==null)return null;if(typeof t=="number")return Number.isFinite(t)?t:null;if(Tt(t))return null;let e=Number(t);return Number.isFinite(e)?e:null}var ri=new Set(["daily","weekly","monthly"]),oi=new Set(["1","5","15","30","60"]),ii=new Set(["","qfq","hfq"]);function V(t,e){if(!Number.isFinite(t)||!Number.isInteger(t)||t<=0)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`${e} must be a positive integer`,{argument:e,value:t})}function z(t){if(!ri.has(t))throw new (0, _chunk4Q7UQ5Q3cjs.e)("period must be one of: daily, weekly, monthly",{argument:"period",value:t})}function St(t){if(!oi.has(t))throw new (0, _chunk4Q7UQ5Q3cjs.e)("period must be one of: 1, 5, 15, 30, 60",{argument:"period",value:t})}function X(t){if(!ii.has(t))throw new (0, _chunk4Q7UQ5Q3cjs.e)("adjust must be one of: '', 'qfq', 'hfq'",{argument:"adjust",value:t})}function qe(t){if(t!=="north"&&t!=="south")throw new (0, _chunk4Q7UQ5Q3cjs.e)("direction must be one of: 'north', 'south'",{argument:"direction",value:t})}function me(t,e){V(e,"chunkSize");let n=[];for(let r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n}async function oe(t,e,n=!1){if(V(e,"concurrency"),t.length===0)return[];let r=n?new Array(t.length):[],o=0,i=Array.from({length:Math.min(e,t.length)},async()=>{for(;;){let s=o++;if(s>=t.length)return;let a=await t[s]();n?r[s]=a:r.push(a)}});return await Promise.all(i),r}function $(t){return{daily:"101",weekly:"102",monthly:"103"}[t]}function J(t){return{"":"0",qfq:"1",hfq:"2"}[t]}var si=typeof document<"u"&&typeof window<"u",ai=0;function Hn(){return`__stock_sdk_jsonp_${Date.now()}_${ai++}`}function ze(t){let e=t,n=e.indexOf("*/");n!==-1&&(e=e.slice(n+2).trim());let r=e.indexOf("(");if(r===-1)throw new (0, _chunk4Q7UQ5Q3cjs.a)({code:"PARSE_ERROR",message:"Invalid JSONP response: no opening parenthesis found"});let o=e.lastIndexOf(")");if(o===-1||o<=r)throw new (0, _chunk4Q7UQ5Q3cjs.a)({code:"PARSE_ERROR",message:"Invalid JSONP response: no closing parenthesis found"});let i=e.slice(r+1,o);try{return JSON.parse(i)}catch(s){throw new (0, _chunk4Q7UQ5Q3cjs.a)({code:"PARSE_ERROR",message:"Invalid JSONP response: payload is not valid JSON",cause:s})}}function ui(t,e){let{timeout:n=15e3,callbackParam:r="callback",callbackMode:o="query"}=e;return new Promise((i,s)=>{let a=Hn(),l;if(o==="path")l=t.replace("{callback}",a);else{let S=t.includes("?")?"&":"?";l=`${t}${S}${r}=${a}`}let c=document.createElement("script"),d=!1,m=window,p=()=>{c.parentNode&&c.parentNode.removeChild(c),delete m[a]},g=setTimeout(()=>{d||(d=!0,p(),s(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"TIMEOUT",message:`JSONP request timed out after ${n}ms: ${t}`,url:t,details:{timeout:n}})))},n);m[a]=S=>{d||(d=!0,clearTimeout(g),p(),i(S))},c.onerror=()=>{d||(d=!0,clearTimeout(g),p(),s(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:`JSONP script load failed: ${t}`,url:t})))},c.src=l,document.head.appendChild(c)})}async function li(t,e){let{timeout:n=15e3,callbackParam:r="callback",callbackMode:o="query"}=e,i=Hn(),s;if(o==="path")s=t.replace("{callback}",i);else{let c=t.includes("?")?"&":"?";s=`${t}${c}${r}=${i}`}let a=new AbortController,l=setTimeout(()=>a.abort(),n);try{let c=await fetch(s,{signal:a.signal});if(!c.ok)throw new (0, _chunk4Q7UQ5Q3cjs.b)(c.status,c.statusText,t);let d=await c.text();return ze(d)}catch(c){throw c instanceof DOMException&&c.name==="AbortError"?new (0, _chunk4Q7UQ5Q3cjs.a)({code:"TIMEOUT",message:`JSONP request timed out after ${n}ms: ${t}`,url:t,details:{timeout:n}}):c instanceof _chunk4Q7UQ5Q3cjs.a?c:new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:`JSONP request failed: ${c instanceof Error?c.message:String(c)}`,url:t,cause:c})}finally{clearTimeout(l)}}function v(t,e={}){return si?ui(t,e):li(t,e)}var qn=new Map;async function ge(t,e){let r=(_nullishCoalesce(qn.get(t), () => (Promise.resolve()))).then(e,e);return qn.set(t,r.then(()=>{},()=>{})),r}function ci(){return typeof document<"u"&&typeof window<"u"}var di=15e3,pi= exports.j ="jsVars";async function ue(t,e,n={}){let r=_nullishCoalesce(n.timeout, () => (di));return ci()?ge(pi,()=>mi(t,e,r)):gi(t,e,r,n.headers,n.client)}function Rt(t,e){let n={};for(let r of e){let o=fi(t,r);o!==void 0&&(n[r]=o)}return n}function mi(t,e,n){return new Promise((r,o)=>{let i=document.createElement("script"),s=!1,a=()=>{i.parentNode&&i.parentNode.removeChild(i)},l=setTimeout(()=>{s||(s=!0,a(),o(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"TIMEOUT",message:`fetchJsVars timed out after ${n}ms: ${t}`,url:t,details:{timeout:n}})))},n);i.onload=()=>{if(s)return;s=!0,clearTimeout(l);let c=window,d={};for(let m of e)if(m in c){d[m]=c[m];try{delete c[m]}catch (e2){}}a(),r(d)},i.onerror=()=>{s||(s=!0,clearTimeout(l),a(),o(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:`fetchJsVars script load failed: ${t}`,url:t})))},i.src=t,document.head.appendChild(i)})}async function gi(t,e,n,r,o){if(o){let a=await o.get(t,{responseType:"text"});return Rt(a,e)}let i=new AbortController,s=setTimeout(()=>i.abort(),n);try{let a=await fetch(t,{signal:i.signal,headers:r});if(!a.ok)throw new (0, _chunk4Q7UQ5Q3cjs.b)(a.status,a.statusText,t);let l=await a.text();return Rt(l,e)}catch(a){throw a instanceof DOMException&&a.name==="AbortError"?new (0, _chunk4Q7UQ5Q3cjs.a)({code:"TIMEOUT",message:`fetchJsVars timed out after ${n}ms: ${t}`,url:t,details:{timeout:n}}):a instanceof _chunk4Q7UQ5Q3cjs.a?a:new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:`fetchJsVars failed: ${a instanceof Error?a.message:String(a)}`,url:t,cause:a})}finally{clearTimeout(s)}}function fi(t,e){let r=new RegExp(`(?:^|[^\\w$])(?:var|let|const)\\s+${hi(e)}\\s*=\\s*`,"m").exec(t);if(!r)return;let o=r.index+r[0].length,i=Ti(t,o),s=t.slice(o,i).trim();try{return JSON.parse(s)}catch (e3){try{return JSON.parse(yi(s))}catch (e4){return}}}function yi(t){let e="",n=null;for(let r=0;r<t.length;r++){let o=t[r];if(n==='"'){e+=o,o==="\\"&&r+1<t.length?e+=t[++r]:o==='"'&&(n=null);continue}if(n==="'"){if(o==="\\"&&r+1<t.length){let i=t[++r];e+=i==="'"?"'":"\\"+i;continue}if(o==="'"){e+='"',n=null;continue}e+=o==='"'?'\\"':o;continue}if(o==='"'){n='"',e+=o;continue}if(o==="'"){n="'",e+='"';continue}e+=o}return e}function hi(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ti(t,e){let n=0,r=null;for(let o=e;o<t.length;o++){let i=t[o];if(r){if(i==="\\"){o++;continue}i===r&&(r=null);continue}if(i==='"'||i==="'"){r=i;continue}if(i==="["||i==="{"||i==="("){n++;continue}if(i==="]"||i==="}"||i===")"){n--;continue}if(i===";"&&n===0)return o}return t.length}var E={CN:"Asia/Shanghai",HK:"Asia/Hong_Kong",US:"America/New_York"};function Si(t){if(!t)return null;let e=t.trim();if(!e)return null;let n=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2})(?::(\d{2}))?$/.exec(e);if(n)return{year:+n[1],month:+n[2],day:+n[3],hour:+n[4],minute:+n[5],second:n[6]?+n[6]:0};let r=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);return r?{year:+r[1],month:+r[2],day:+r[3],hour:0,minute:0,second:0}:/^\d{14}$/.test(e)?{year:+e.slice(0,4),month:+e.slice(4,6),day:+e.slice(6,8),hour:+e.slice(8,10),minute:+e.slice(10,12),second:+e.slice(12,14)}:/^\d{8}$/.test(e)?{year:+e.slice(0,4),month:+e.slice(4,6),day:+e.slice(6,8),hour:0,minute:0,second:0}:null}var Ri={wallParts:{locale:"en-US",keyPrefix:"en-US|",options:{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}},svDisplay:{locale:"sv-SE",keyPrefix:"sv-SE|",options:{hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}},dateOnly:{locale:"en-CA",keyPrefix:"en-CA|",options:{year:"numeric",month:"2-digit",day:"2-digit"}}},zn=new Map;function Et(t,e){let n=Ri[t],r=n.keyPrefix+e,o=zn.get(r);return o||(o=new Intl.DateTimeFormat(n.locale,{timeZone:e,...n.options}),zn.set(r,o)),o}function fe(t,e){let r=Et("wallParts",e).formatToParts(new Date(t)),o={};for(let s of r)s.type!=="literal"&&(o[s.type]=s.value);let i=parseInt(_nullishCoalesce(o.hour, () => ("0")),10);return i===24&&(i=0),Date.UTC(parseInt(_nullishCoalesce(o.year, () => ("0")),10),parseInt(_nullishCoalesce(o.month, () => ("1")),10)-1,parseInt(_nullishCoalesce(o.day, () => ("1")),10),i,parseInt(_nullishCoalesce(o.minute, () => ("0")),10),parseInt(_nullishCoalesce(o.second, () => ("0")),10))}var $n=new Map;function Yn(t,e){return fe(t,e)-t}function Ei(t,e){let n=`${t}|${e}`,r=$n.get(n);if(r===void 0){let o=Yn(Date.UTC(e,0,1,12),t);for(let i=1;i<12;i++)if(Yn(Date.UTC(e,i,1,12),t)!==o){o=null;break}r=o,$n.set(n,r)}return r}function jn(t,e){if(!(t.month===1&&t.day<=2||t.month===12&&t.day>=30)){let s=Ei(e,t.year);if(s!==null)return Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second)-s}let r=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second),o=2*r-fe(r,e);if(fe(o,e)===r)return o;let i=r-fe(o,e)+o;return fe(i,e)===r?i:o}function _i(t,e){let n=(t||"").trim(),r=_nullishCoalesce(/^(\d{4})-(\d{2})-(\d{2})$/.exec(n), () => (/^(\d{4})(\d{2})(\d{2})$/.exec(n)));if(!r)return null;let o=/^(\d{2}):(\d{2})(?::(\d{2}))?$/.exec((e||"").trim());return o?{year:+r[1],month:+r[2],day:+r[3],hour:+o[1],minute:+o[2],second:o[3]?+o[3]:0}:null}function le(t,e){let n=Si(t);return n?jn(n,e):NaN}function ie(t){return Number.isNaN(t)?null:t}function L(t,e){return{timestamp:ie(le(t,e)),tz:e}}function Z(t,e){let[n,r,o]=t.split("-").map(Number);return new Date(Date.UTC(n,r-1,o+e)).toISOString().slice(0,10)}function _t(t,e,n){let r=_i(t,e);return r?{timestamp:ie(jn(r,n)),tz:n}:{timestamp:null,tz:n}}function Ct(t,e){if(t==null||!Number.isFinite(t))return"";let n=Et("svDisplay",e).format(new Date(t)),r=n.match(/^(\d{4}-\d{2}-\d{2})[ T](\d{2}):(\d{2})/);if(!r)return n;let o=r[2]==="24"?"00":r[2];return`${r[1]} ${o}:${r[3]}`}function w(t,e=Date.now()){return Et("dateOnly",t).format(new Date(e))}var At="https://qt.gtimg.cn",Ot="https://web.ifzq.gtimg.cn/appstock/app/minute/query",Pt="https://assets.linkdiary.cn/shares/zh_a_list.json",Dt="https://assets.linkdiary.cn/shares/us_list.json",It="https://assets.linkdiary.cn/shares/hk_list.json",$e="https://assets.linkdiary.cn/shares/fund_list",bt="https://assets.linkdiary.cn/shares/trade-data-list.txt",Ye="https://push2his.eastmoney.com/api/qt/stock/kline/get",kt="https://push2his.eastmoney.com/api/qt/stock/trends2/get",je="https://33.push2his.eastmoney.com/api/qt/stock/kline/get",Ge="https://63.push2his.eastmoney.com/api/qt/stock/kline/get",Mt="https://33.push2his.eastmoney.com/api/qt/stock/trends2/get",Nt="https://63.push2his.eastmoney.com/api/qt/stock/trends2/get",Lt="https://17.push2.eastmoney.com/api/qt/clist/get",Ft="https://91.push2.eastmoney.com/api/qt/stock/get",vt="https://29.push2.eastmoney.com/api/qt/clist/get",wt="https://7.push2his.eastmoney.com/api/qt/stock/kline/get",xt="https://push2his.eastmoney.com/api/qt/stock/trends2/get",Ut="https://79.push2.eastmoney.com/api/qt/clist/get",Kt="https://91.push2.eastmoney.com/api/qt/stock/get",Bt="https://29.push2.eastmoney.com/api/qt/clist/get",Ht="https://91.push2his.eastmoney.com/api/qt/stock/kline/get",qt="https://push2his.eastmoney.com/api/qt/stock/trends2/get",zt="https://datacenter-web.eastmoney.com/api/data/v1/get",ye="https://push2his.eastmoney.com/api/qt/stock/fflow/daykline/get",$t="https://push2.eastmoney.com/api/qt/clist/get",Yt="https://push2.eastmoney.com/api/qt/kamtbs.rtmin/get",ce="https://push2ex.eastmoney.com",N="7eea3edcaed734bea9cbfc24409ed989",Y="b2884a393a59ad64002292a3e90d46a5",he="https://push2his.eastmoney.com/api/qt/stock/kline/get",jt="https://futsseapi.eastmoney.com/list/COMEX,NYMEX,COBOT,SGX,NYBOT,LME,MDEX,TOCOM,IPE",Te="58b2fa8f54638b60b87d69b31969089c",Gt={SHFE:113,DCE:114,CZCE:115,INE:142,CFFEX:220,GFEX:225},de={cu:"SHFE",al:"SHFE",zn:"SHFE",pb:"SHFE",au:"SHFE",ag:"SHFE",rb:"SHFE",wr:"SHFE",fu:"SHFE",ru:"SHFE",bu:"SHFE",hc:"SHFE",ni:"SHFE",sn:"SHFE",sp:"SHFE",ss:"SHFE",ao:"SHFE",br:"SHFE",c:"DCE",a:"DCE",b:"DCE",m:"DCE",y:"DCE",p:"DCE",l:"DCE",v:"DCE",j:"DCE",jm:"DCE",i:"DCE",jd:"DCE",pp:"DCE",cs:"DCE",eg:"DCE",eb:"DCE",pg:"DCE",lh:"DCE",WH:"CZCE",CF:"CZCE",SR:"CZCE",TA:"CZCE",OI:"CZCE",MA:"CZCE",FG:"CZCE",RM:"CZCE",SF:"CZCE",SM:"CZCE",ZC:"CZCE",AP:"CZCE",CJ:"CZCE",UR:"CZCE",SA:"CZCE",PF:"CZCE",PK:"CZCE",PX:"CZCE",SH:"CZCE",sc:"INE",nr:"INE",lu:"INE",bc:"INE",ec:"INE",IF:"CFFEX",IC:"CFFEX",IH:"CFFEX",IM:"CFFEX",TS:"CFFEX",TF:"CFFEX",T:"CFFEX",TL:"CFFEX",si:"GFEX",lc:"GFEX",ps:"GFEX",pt:"GFEX",pd:"GFEX"},Qe={HG:101,GC:101,SI:101,QI:101,QO:101,MGC:101,CL:102,NG:102,RB:102,HO:102,PA:102,PL:102,ZW:103,ZM:103,ZS:103,ZC:103,ZL:103,ZR:103,YM:103,NQ:103,ES:103,SB:108,CT:108,LCPT:109,LZNT:109,LALT:109},Se="https://stock.finance.sina.com.cn/futures/api/openapi.php/OptionService.getOptionData",Re="https://stock.finance.sina.com.cn/futures/api/jsonp.php/{callback}/FutureOptionAllService.getOptionDayline",Qt="https://stock.finance.sina.com.cn/futures/api/openapi.php/StockOptionService.getStockName",We="https://stock.finance.sina.com.cn/futures/api/openapi.php/StockOptionService.getRemainderDay",Wt="https://stock.finance.sina.com.cn/futures/api/openapi.php/StockOptionDaylineService.getOptionMinline",Vt="https://stock.finance.sina.com.cn/futures/api/jsonp_v2.php/{callback}/StockOptionDaylineService.getSymbolInfo",Zt="https://stock.finance.sina.com.cn/futures/api/openapi.php/StockOptionDaylineService.getFiveDayLine",Xt="https://futsseapi.eastmoney.com/list/option/221",Jt="https://datacenter-web.eastmoney.com/api/data/get";var Ve={au:{product:"au_o",exchange:"shfe"},ag:{product:"ag_o",exchange:"shfe"},cu:{product:"cu_o",exchange:"shfe"},al:{product:"al_o",exchange:"shfe"},zn:{product:"zn_o",exchange:"shfe"},ru:{product:"ru_o",exchange:"shfe"},sc:{product:"sc_o",exchange:"ine"},m:{product:"m_o",exchange:"dce"},c:{product:"c_o",exchange:"dce"},i:{product:"i_o",exchange:"dce"},p:{product:"p_o",exchange:"dce"},pp:{product:"pp_o",exchange:"dce"},l:{product:"l_o",exchange:"dce"},v:{product:"v_o",exchange:"dce"},pg:{product:"pg_o",exchange:"dce"},y:{product:"y_o",exchange:"dce"},a:{product:"a_o",exchange:"dce"},b:{product:"b_o",exchange:"dce"},eg:{product:"eg_o",exchange:"dce"},eb:{product:"eb_o",exchange:"dce"},SR:{product:"SR_o",exchange:"czce"},CF:{product:"CF_o",exchange:"czce"},TA:{product:"TA_o",exchange:"czce"},MA:{product:"MA_o",exchange:"czce"},RM:{product:"RM_o",exchange:"czce"},OI:{product:"OI_o",exchange:"czce"},PK:{product:"PK_o",exchange:"czce"},PF:{product:"PF_o",exchange:"czce"},SA:{product:"SA_o",exchange:"czce"},UR:{product:"UR_o",exchange:"czce"}},en=3e4,Ee=500,_e=500,Ce=7,tn=3,nn=1e3,rn=3e4,on=2,sn=[408,429,500,502,503,504];var Ze=class{constructor(e={}){this.acquireChain=Promise.resolve();let n=_nullishCoalesce(e.requestsPerSecond, () => (5));this.maxTokens=_nullishCoalesce(e.maxBurst, () => (n)),this.tokens=this.maxTokens,this.refillRate=n/1e3,this.lastRefillTime=Date.now()}refill(){let e=Date.now(),r=(e-this.lastRefillTime)*this.refillRate;this.tokens=Math.min(this.maxTokens,this.tokens+r),this.lastRefillTime=e}tryAcquire(){return this.refill(),this.tokens>=1?(this.tokens-=1,!0):!1}getWaitTime(){if(this.refill(),this.tokens>=1)return 0;let e=1-this.tokens;return Math.ceil(e/this.refillRate)}async acquire(){let e=this.acquireChain,n;this.acquireChain=new Promise(r=>{n=r});try{await e;let r=this.getWaitTime();r>0&&await this.sleep(r),this.refill(),this.tokens-=1}finally{n()}}sleep(e){return new Promise(n=>setTimeout(n,e))}getAvailableTokens(){return this.refill(),this.tokens}};var Gn=["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0","Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:121.0) Gecko/20100101 Firefox/121.0","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15","Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"],an=0;function Ci(){return typeof window<"u"&&typeof window.document<"u"}function Qn(){if(Ci())return;let t=Gn[an];return an=(an+1)%Gn.length,t}var pe=class extends _chunk4Q7UQ5Q3cjs.a{constructor(e="Circuit breaker is OPEN"){super({code:"CIRCUIT_OPEN",message:e}),this.name="CircuitBreakerError"}},Xe=class{constructor(e={}){this.state="CLOSED";this.failureCount=0;this.lastFailureTime=0;this.halfOpenSuccessCount=0;this.halfOpenProbeStartedAt=[];this.failureThreshold=_nullishCoalesce(e.failureThreshold, () => (5)),this.resetTimeout=_nullishCoalesce(e.resetTimeout, () => (3e4)),this.halfOpenRequests=_nullishCoalesce(e.halfOpenRequests, () => (1)),this.probeRecycleTimeout=_nullishCoalesce(e.probeRecycleTimeout, () => (Math.max(this.resetTimeout*4,12e4))),this.onStateChange=e.onStateChange}getState(){return this.checkStateTransition(),this.state}canRequest(){switch(this.checkStateTransition(),this.state){case"CLOSED":return!0;case"OPEN":return!1;case"HALF_OPEN":{let e=Date.now();for(;this.halfOpenProbeStartedAt.length>0&&e-this.halfOpenProbeStartedAt[0]>=this.probeRecycleTimeout;)this.halfOpenProbeStartedAt.shift();return this.halfOpenProbeStartedAt.length+this.halfOpenSuccessCount>=this.halfOpenRequests?!1:(this.halfOpenProbeStartedAt.push(e),!0)}}}releaseProbe(){this.state==="HALF_OPEN"&&this.halfOpenProbeStartedAt.shift()}recordSuccess(){this.checkStateTransition(),this.state==="HALF_OPEN"?(this.halfOpenProbeStartedAt.shift(),this.halfOpenSuccessCount++,this.halfOpenSuccessCount>=this.halfOpenRequests&&this.transitionTo("CLOSED")):this.state==="CLOSED"&&(this.failureCount=0)}recordFailure(){this.lastFailureTime=Date.now(),this.state==="HALF_OPEN"?(this.halfOpenProbeStartedAt.shift(),this.transitionTo("OPEN")):this.state==="CLOSED"&&(this.failureCount++,this.failureCount>=this.failureThreshold&&this.transitionTo("OPEN"))}checkStateTransition(){this.state==="OPEN"&&Date.now()-this.lastFailureTime>=this.resetTimeout&&this.transitionTo("HALF_OPEN")}transitionTo(e){if(this.state===e)return;let n=this.state;this.state=e,e==="CLOSED"?(this.failureCount=0,this.halfOpenSuccessCount=0,this.halfOpenProbeStartedAt=[]):e==="HALF_OPEN"&&(this.halfOpenSuccessCount=0,this.halfOpenProbeStartedAt=[]),_optionalChain([this, 'access', _2 => _2.onStateChange, 'optionalCall', _3 => _3(n,e)])}reset(){this.transitionTo("CLOSED"),this.failureCount=0,this.halfOpenSuccessCount=0,this.halfOpenProbeStartedAt=[],this.lastFailureTime=0}async execute(e){if(!this.canRequest())throw new pe;try{let n=await e();return this.recordSuccess(),n}catch(n){throw this.recordFailure(),n}}getStats(){return{state:this.getState(),failureCount:this.failureCount,lastFailureTime:this.lastFailureTime,halfOpenSuccessCount:this.halfOpenSuccessCount}}};var Ai=3e4,Oi=1,Wn=["push2his.eastmoney.com","7.push2his.eastmoney.com","33.push2his.eastmoney.com","63.push2his.eastmoney.com","91.push2his.eastmoney.com"],Vn=["17.push2.eastmoney.com","29.push2.eastmoney.com","79.push2.eastmoney.com","91.push2.eastmoney.com"];function Pi(t,e){return e!=="eastmoney"?[t]:t.includes("push2his.eastmoney.com")?Wn:t.includes("push2.eastmoney.com")?Vn:[t]}function Di(t){return Array.from(new Set(t))}var Je=class{constructor(e=Ai,n=Oi){this.cooldownMs=e;this.failureThreshold=n;this.states=new Map}getCandidateUrls(e,n){let r;try{r=new URL(e)}catch (e5){return[e]}let o=Date.now(),i=Pi(r.hostname,n);if(i.length<=1)return[e];let s=i.filter(c=>{let d=this.states.get(c);return!d||d.cooldownUntil<=o}),a=i.filter(c=>{let d=this.states.get(c);return d&&d.cooldownUntil>o});return Di([...s.includes(r.hostname)?[r.hostname]:[],...s.filter(c=>c!==r.hostname),...a.includes(r.hostname)?[r.hostname]:[],...a.filter(c=>c!==r.hostname)]).map(c=>{let d=new URL(e);return d.hostname=c,d.toString()})}recordSuccess(e){let n=this.safeGetHost(e);if(!n)return;let r=this.getState(n);r.failureCount=0,r.cooldownUntil=0,r.successCount++,r.lastErrorCode=void 0}recordFailure(e,n){let r=this.safeGetHost(e);if(!r)return;let o=this.getState(r);o.failureCount++,o.lastFailureAt=Date.now(),o.lastErrorCode=_chunk4Q7UQ5Q3cjs.k.call(void 0, n),o.failureCount>=this.failureThreshold&&(o.cooldownUntil=Date.now()+this.cooldownMs)}shouldFallback(e){let n=_chunk4Q7UQ5Q3cjs.k.call(void 0, e);return n==="NETWORK_ERROR"||n==="TIMEOUT"||n==="PARSE_ERROR"?!0:e instanceof _chunk4Q7UQ5Q3cjs.b?e.status===408||e.status===429||e.status>=500:!1}getStats(e){let n=Array.from(this.states.values()).map(o=>({...o}));if(!e)return n;if(e!=="eastmoney")return[];let r=new Set([...Wn,...Vn]);return n.filter(o=>r.has(o.host))}safeGetHost(e){try{return new URL(e).hostname}catch (e6){return null}}getState(e){let n=this.states.get(e);if(n)return n;let r={host:e,failureCount:0,successCount:0,cooldownUntil:0,lastFailureAt:0};return this.states.set(e,r),r}};function Ii(t){return{maxRetries:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _4 => _4.maxRetries]), () => (tn)),baseDelay:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _5 => _5.baseDelay]), () => (nn)),maxDelay:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _6 => _6.maxDelay]), () => (rn)),backoffMultiplier:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _7 => _7.backoffMultiplier]), () => (on)),retryableStatusCodes:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _8 => _8.retryableStatusCodes]), () => (sn)),retryOnNetworkError:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _9 => _9.retryOnNetworkError]), () => (!0)),retryOnTimeout:_nullishCoalesce(_optionalChain([t, 'optionalAccess', _10 => _10.retryOnTimeout]), () => (!0)),onRetry:_optionalChain([t, 'optionalAccess', _11 => _11.onRetry])}}function bi(t,e){let n={..._nullishCoalesce(t, () => ({}))};return e&&(Object.keys(n).some(o=>o.toLowerCase()==="user-agent")||(n["User-Agent"]=e)),n}function Zn(t,e){return e?{timeout:_nullishCoalesce(e.timeout, () => (t.timeout)),retry:e.retry?{..._nullishCoalesce(t.retry, () => ({})),...e.retry}:t.retry?{...t.retry}:void 0,headers:{..._nullishCoalesce(t.headers, () => ({})),..._nullishCoalesce(e.headers, () => ({}))},userAgent:_nullishCoalesce(e.userAgent, () => (t.userAgent)),rateLimit:e.rateLimit?{..._nullishCoalesce(t.rateLimit, () => ({})),...e.rateLimit}:t.rateLimit?{...t.rateLimit}:void 0,rotateUserAgent:_nullishCoalesce(e.rotateUserAgent, () => (t.rotateUserAgent)),circuitBreaker:e.circuitBreaker?{..._nullishCoalesce(t.circuitBreaker, () => ({})),...e.circuitBreaker}:t.circuitBreaker?{...t.circuitBreaker}:void 0}:{...t,headers:{..._nullishCoalesce(t.headers, () => ({}))},retry:t.retry?{...t.retry}:void 0,rateLimit:t.rateLimit?{...t.rateLimit}:void 0,circuitBreaker:t.circuitBreaker?{...t.circuitBreaker}:void 0}}function un(t={}){return{timeout:_nullishCoalesce(t.timeout, () => (en)),retry:Ii(t.retry),headers:bi(t.headers,t.userAgent),rotateUserAgent:_nullishCoalesce(t.rotateUserAgent, () => (!1)),rateLimit:t.rateLimit?{...t.rateLimit}:void 0,circuitBreaker:t.circuitBreaker?{...t.circuitBreaker}:void 0}}function Xn(t,e){if(e)return e;try{let n=new URL(t).hostname;if(n.includes("eastmoney.com"))return"eastmoney";if(n.includes("gtimg.cn"))return"tencent";if(n.includes("sina.com.cn"))return"sina";if(n.includes("linkdiary.cn"))return"linkdiary"}catch (e7){return"unknown"}return"unknown"}function Jn(t){if(t instanceof DOMException&&t.name==="AbortError")return!0;if(t instanceof Error){if(t.name==="AbortError")return!0;let e=t.cause;if((e instanceof Error||e instanceof DOMException)&&e.name==="AbortError")return!0}return!1}var ln=()=>{};function ki(t){let e=t.filter(a=>!!a);if(e.length===0)return{signal:void 0,cleanup:ln};if(e.length===1)return{signal:e[0],cleanup:ln};let n=AbortSignal.any;if(typeof n=="function")return{signal:n(e),cleanup:ln};let r=new AbortController,o=a=>{r.signal.aborted||r.abort(a)},i=[];for(let a of e){if(a.aborted){o(a.reason);break}let l=()=>o(a.reason);a.addEventListener("abort",l,{once:!0}),i.push({s:a,handler:l})}let s=()=>{for(let{s:a,handler:l}of i)a.removeEventListener("abort",l)};return{signal:r.signal,cleanup:s}}async function Mi(t,e){if(!t)return e;if(Promise.resolve(e).catch(()=>{}),t.aborted)return Promise.race([e,Promise.reject(t.reason)]);let n,r=new Promise((o,i)=>{n=()=>i(t.reason),t.addEventListener("abort",n,{once:!0})});try{return await Promise.race([e,r])}finally{t.removeEventListener("abort",n)}}var Ae=class{constructor(e={}){this.baseUrl=_nullishCoalesce(e.baseUrl, () => (At));let n={timeout:e.timeout,retry:e.retry,headers:e.headers,userAgent:e.userAgent,rateLimit:e.rateLimit,rotateUserAgent:e.rotateUserAgent,circuitBreaker:e.circuitBreaker};this.defaultPolicy=un(n),this.providerPolicies={},this.runtimeStates=new Map,this.fallbackManager=new Je,this.fetchImpl=e.fetchImpl,this.clientSignal=e.signal,this.hooks=e.hooks;for(let[r,o]of Object.entries(_nullishCoalesce(e.providerPolicies, () => ({})))){let i=Zn(n,o);this.providerPolicies[r]=un(i)}}getProviderState(e){let n=this.runtimeStates.get(e);if(n)return n;let r=_nullishCoalesce(this.providerPolicies[e], () => (this.defaultPolicy)),o={policy:r,rateLimiter:r.rateLimit?new Ze(r.rateLimit):null,circuitBreaker:r.circuitBreaker?new Xe(r.circuitBreaker):null};return this.runtimeStates.set(e,o),o}getTimeout(){return this.defaultPolicy.timeout}getHostHealth(e){return this.fallbackManager.getStats(e)}safe(e){try{e()}catch (e8){}}toSdkError(e){return e instanceof _chunk4Q7UQ5Q3cjs.a?e:new (0, _chunk4Q7UQ5Q3cjs.a)({code:_nullishCoalesce(_chunk4Q7UQ5Q3cjs.k.call(void 0, e), () => ("NETWORK_ERROR")),message:e.message,provider:e.provider,url:e.url,status:e.status,details:e.details,cause:e})}calculateDelay(e,n){return Math.min(n.baseDelay*Math.pow(n.backoffMultiplier,e),n.maxDelay)+Math.random()*100}sleep(e){return new Promise(n=>setTimeout(n,e))}shouldRetry(e,n,r){if(n>=r.maxRetries)return!1;let o=_chunk4Q7UQ5Q3cjs.k.call(void 0, e);return o==="ABORTED"?!1:o==="TIMEOUT"?r.retryOnTimeout:o==="NETWORK_ERROR"?r.retryOnNetworkError:e instanceof _chunk4Q7UQ5Q3cjs.b?r.retryableStatusCodes.includes(e.status):!1}async executeWithRetry(e,n,r,o=0){try{return await e(o)}catch(i){let s=_chunk4Q7UQ5Q3cjs.l.call(void 0, i,r),a={provider:r.provider,url:r.url,timeout:r.timeout,attempt:o,responseType:r.responseType};if(this.safe(()=>_optionalChain([this, 'access', _12 => _12.hooks, 'optionalAccess', _13 => _13.onError, 'optionalCall', _14 => _14(a,this.toSdkError(s))])),this.safe(()=>_optionalChain([this, 'access', _15 => _15.hooks, 'optionalAccess', _16 => _16.trace, 'optionalCall', _17 => _17("error",a)])),this.shouldRetry(s,o,n)){let l=this.calculateDelay(o,n);return n.onRetry&&n.onRetry(o+1,s,l),this.safe(()=>_optionalChain([this, 'access', _18 => _18.hooks, 'optionalAccess', _19 => _19.onRetry, 'optionalCall', _20 => _20(a,this.toSdkError(s),l)])),this.safe(()=>_optionalChain([this, 'access', _21 => _21.hooks, 'optionalAccess', _22 => _22.trace, 'optionalCall', _23 => _23("retry",a)])),await this.sleep(l),this.executeWithRetry(e,n,r,o+1)}throw s}}async performRequest(e,n,r,o="text",i={},s=0){n.rateLimiter&&await n.rateLimiter.acquire();let a=new AbortController,l=new DOMException(`Request timed out after ${n.policy.timeout}ms`,"AbortError"),c=setTimeout(()=>a.abort(l),n.policy.timeout),{signal:d,cleanup:m}=ki([a.signal,i.signal,this.clientSignal]),p=_nullishCoalesce(_nullishCoalesce(i.fetchImpl, () => (this.fetchImpl)), () => (globalThis.fetch)),g={...n.policy.headers};if(n.policy.rotateUserAgent){let h=Qn();if(h){for(let C of Object.keys(g))C.toLowerCase()==="user-agent"&&delete g[C];g["User-Agent"]=h}}let S={provider:r,url:e,timeout:n.policy.timeout,attempt:s,responseType:o};this.safe(()=>_optionalChain([this, 'access', _24 => _24.hooks, 'optionalAccess', _25 => _25.onRequest, 'optionalCall', _26 => _26(S)])),this.safe(()=>_optionalChain([this, 'access', _27 => _27.hooks, 'optionalAccess', _28 => _28.trace, 'optionalCall', _29 => _29("request",S)]));let A=Date.now();try{let h=await Mi(d,p(e,{signal:d,headers:g}));if(this.safe(()=>_optionalChain([this, 'access', _30 => _30.hooks, 'optionalAccess', _31 => _31.onResponse, 'optionalCall', _32 => _32(S,{status:h.status,durationMs:Date.now()-A})])),this.safe(()=>_optionalChain([this, 'access', _33 => _33.hooks, 'optionalAccess', _34 => _34.trace, 'optionalCall', _35 => _35("response",S)])),!h.ok)throw new (0, _chunk4Q7UQ5Q3cjs.b)(h.status,h.statusText,e,r);switch(o){case"json":try{return await h.json()}catch(C){throw new (0, _chunk4Q7UQ5Q3cjs.a)({code:"PARSE_ERROR",message:`Failed to parse JSON response from ${e}`,provider:r,url:e,cause:C})}case"arraybuffer":return await h.arrayBuffer();default:return await h.text()}}catch(h){let C=I=>_optionalChain([I, 'optionalAccess', _36 => _36.aborted])?h===I.reason?!0:h instanceof Error&&h.cause===I.reason:!1;if(!C(a.signal)){let I=_optionalChain([i, 'access', _37 => _37.signal, 'optionalAccess', _38 => _38.aborted])||_optionalChain([this, 'access', _39 => _39.clientSignal, 'optionalAccess', _40 => _40.aborted]);if(C(i.signal)||C(this.clientSignal)||I&&Jn(h))throw new (0, _chunk4Q7UQ5Q3cjs.h)("Request aborted by external signal",r,e);if(a.signal.aborted&&Jn(h))throw l}throw h}finally{clearTimeout(c),m()}}async get(e,n={}){let r=Xn(e,n.provider),o=this.getProviderState(r);if(o.circuitBreaker&&!o.circuitBreaker.canRequest())throw new pe("Circuit breaker is OPEN, request rejected");let i={fetchImpl:n.fetchImpl,signal:n.signal},s=this.fallbackManager.getCandidateUrls(e,r),a;for(let l=0;l<s.length;l++){let c=s[l],d=l===0?o.policy.retry:{...o.policy.retry,maxRetries:0};try{let m=await this.executeWithRetry(p=>this.performRequest(c,o,r,n.responseType,i,p),d,{provider:r,url:c,timeout:o.policy.timeout,responseType:n.responseType});return _optionalChain([o, 'access', _41 => _41.circuitBreaker, 'optionalAccess', _42 => _42.recordSuccess, 'call', _43 => _43()]),this.fallbackManager.recordSuccess(c),m}catch(m){let p=_chunk4Q7UQ5Q3cjs.l.call(void 0, m,{provider:r,url:c,timeout:o.policy.timeout});a=p;let g=_chunk4Q7UQ5Q3cjs.k.call(void 0, p)==="ABORTED";if(g?_optionalChain([o, 'access', _44 => _44.circuitBreaker, 'optionalAccess', _45 => _45.releaseProbe, 'call', _46 => _46()]):this.fallbackManager.recordFailure(c,p),l<s.length-1&&this.fallbackManager.shouldFallback(p)){this.safe(()=>_optionalChain([this, 'access', _47 => _47.hooks, 'optionalAccess', _48 => _48.trace, 'optionalCall', _49 => _49("fallback",{provider:r,url:c,timeout:o.policy.timeout,attempt:0,responseType:n.responseType})]));continue}throw g||_optionalChain([o, 'access', _50 => _50.circuitBreaker, 'optionalAccess', _51 => _51.recordFailure, 'call', _52 => _52()]),this.toSdkError(p)}}throw _optionalChain([o, 'access', _53 => _53.circuitBreaker, 'optionalAccess', _54 => _54.recordFailure, 'call', _55 => _55()]),a?this.toSdkError(a):new pe("Request failed without a concrete error")}async getTencentQuote(e){let n=`${this.baseUrl}/?q=${encodeURIComponent(e)}`,r=await this.get(n,{responseType:"arraybuffer",provider:"tencent"}),o=yt(r);return ht(o)}};var x=(t,e)=>t*60+e,Ni={A:{tz:E.CN,open:[[x(9,30),x(11,30)],[x(13,0),x(15,0)]],lunchBreak:[x(11,30),x(13,0)],tradingWeekdays:[1,2,3,4,5]},HK:{tz:E.HK,open:[[x(9,30),x(12,0)],[x(13,0),x(16,0)]],lunchBreak:[x(12,0),x(13,0)],tradingWeekdays:[1,2,3,4,5]},US:{tz:E.US,open:[[x(9,30),x(16,0)]],tradingWeekdays:[1,2,3,4,5]}};function cn(t,e){if(t==null)return w(e);if(t instanceof Date)return w(e,t.getTime());let n=t.trim();if(/^\d{4}-\d{2}-\d{2}$/.test(n))return n;if(/^\d{8}$/.test(n))return`${n.slice(0,4)}-${n.slice(4,6)}-${n.slice(6,8)}`;let r=new Date(n);if(!Number.isNaN(r.getTime()))return w(e,r.getTime());throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Unsupported date input: ${JSON.stringify(t)}. Expected 'YYYY-MM-DD', 'YYYYMMDD', or Date.`)}function Li(t,e){let n=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,weekday:"short",hour:"2-digit",minute:"2-digit"}),r={};for(let l of n.formatToParts(t))l.type!=="literal"&&(r[l.type]=l.value);let o=parseInt(_nullishCoalesce(r.hour, () => ("0")),10);o===24&&(o=0);let i=parseInt(_nullishCoalesce(r.minute, () => ("0")),10),a=_nullishCoalesce({Mon:1,Tue:2,Wed:3,Thu:4,Fri:5,Sat:6,Sun:7}[_nullishCoalesce(r.weekday, () => (""))], () => (0));return{minutes:o*60+i,weekday:a}}function dn(t,e){let n=0,r=t.length;for(;n<r;){let o=n+r>>>1;t[o]<e?n=o+1:r=o}return n}var Oe=class{constructor(e){this.quoteService=e}async isTradingDay(e){let n=cn(e,E.CN),r=await this.quoteService.getTradingCalendar(),o=dn(r,n);return o<r.length&&r[o]===n}async nextTradingDay(e){let n=cn(e,E.CN),r=await this.quoteService.getTradingCalendar(),o=dn(r,n);if(o<r.length&&r[o]===n&&(o+=1),o>=r.length)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`nextTradingDay: ${n} \u4E4B\u540E\u6CA1\u6709\u53EF\u7528\u4EA4\u6613\u65E5 (\u65E5\u5386\u6700\u5927\u65E5\u671F ${_nullishCoalesce(r[r.length-1], () => ("N/A"))})`);return r[o]}async prevTradingDay(e){let n=cn(e,E.CN),r=await this.quoteService.getTradingCalendar(),i=dn(r,n)-1;if(i<0)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`prevTradingDay: ${n} \u4E4B\u524D\u6CA1\u6709\u53EF\u7528\u4EA4\u6613\u65E5 (\u65E5\u5386\u6700\u5C0F\u65E5\u671F ${_nullishCoalesce(r[0], () => ("N/A"))})`);return r[i]}getMarketStatus(e="A",n=new Date){let r=Ni[e],{minutes:o,weekday:i}=Li(n,r.tz);if(!r.tradingWeekdays.includes(i))return"closed";let s=r.open[0][0],a=r.open[r.open.length-1][1];if(o<s)return"pre_market";if(o>=a)return"after_hours";for(let[l,c]of r.open)if(o>=l&&o<c)return"open";return r.lunchBreak&&o>=r.lunchBreak[0]&&o<r.lunchBreak[1]?"lunch_break":"closed"}};var M={};_chunk4VDLQK6Fcjs.a.call(void 0, M,{getAShareCodeList:()=>sr,getAllHKQuotesByCodes:()=>cr,getAllQuotesByCodes:()=>lr,getAllUSQuotesByCodes:()=>dr,getFullQuotes:()=>et,getFundCodeList:()=>pr,getFundFlow:()=>tr,getFundQuotes:()=>rr,getHKCodeList:()=>ur,getHKQuotes:()=>tt,getPanelLargeOrder:()=>nr,getSimpleQuotes:()=>er,getTodayTimeline:()=>or,getTradingCalendar:()=>mr,getUSCodeList:()=>ar,getUSQuotes:()=>nt,parseFullQuote:()=>pn,parseFundFlow:()=>gn,parseFundQuote:()=>Tn,parseHKQuote:()=>yn,parsePanelLargeOrder:()=>fn,parseSimpleQuote:()=>mn,parseUSQuote:()=>hn,search:()=>fr});function pn(t){let e=[];for(let i=0;i<5;i++)e.push({price:T(t[9+i*2]),volume:T(t[10+i*2])});let n=[];for(let i=0;i<5;i++)n.push({price:T(t[19+i*2]),volume:T(t[20+i*2])});let r=_nullishCoalesce(t[30], () => ("")),o=L(r,E.CN);return{marketId:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),code:_nullishCoalesce(t[2], () => ("")),price:T(t[3]),prevClose:T(t[4]),open:T(t[5]),volume:T(t[6]),outerVolume:T(t[7]),innerVolume:T(t[8]),bid:e,ask:n,time:r,timestamp:o.timestamp,tz:o.tz,change:T(t[31]),changePercent:T(t[32]),high:T(t[33]),low:T(t[34]),volume2:T(t[36]),amount:T(t[37]),turnoverRate:O(t[38]),pe:O(t[39]),amplitude:O(t[43]),circulatingMarketCap:O(t[44]),totalMarketCap:O(t[45]),pb:O(t[46]),limitUp:O(t[47]),limitDown:O(t[48]),volumeRatio:O(t[49]),avgPrice:O(t[51]),peStatic:O(t[52]),peDynamic:O(t[53]),high52w:O(t[67]),low52w:O(t[68]),circulatingShares:O(t[72]),totalShares:O(t[73]),market:"CN",assetType:"stock",source:"tencent"}}function mn(t){return{marketId:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),code:_nullishCoalesce(t[2], () => ("")),price:T(t[3]),change:T(t[4]),changePercent:T(t[5]),volume:T(t[6]),amount:T(t[7]),marketCap:O(t[9]),marketType:_nullishCoalesce(t[10], () => ("")),market:"CN",assetType:"stock",source:"tencent"}}function gn(t){let e=_nullishCoalesce(t[13], () => ("")),n=L(e,E.CN);return{code:_nullishCoalesce(t[0], () => ("")),mainInflow:T(t[1]),mainOutflow:T(t[2]),mainNet:T(t[3]),mainNetRatio:T(t[4]),retailInflow:T(t[5]),retailOutflow:T(t[6]),retailNet:T(t[7]),retailNetRatio:T(t[8]),totalFlow:T(t[9]),name:_nullishCoalesce(t[12], () => ("")),date:e,timestamp:n.timestamp,tz:n.tz}}function fn(t){return{buyLargeRatio:T(t[0]),buySmallRatio:T(t[1]),sellLargeRatio:T(t[2]),sellSmallRatio:T(t[3])}}function yn(t){let e=_nullishCoalesce(t[30], () => ("")),n=L(e,E.HK);return{marketId:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),code:_nullishCoalesce(t[2], () => ("")),price:T(t[3]),prevClose:T(t[4]),open:T(t[5]),volume:T(t[6]),time:e,timestamp:n.timestamp,tz:n.tz,change:T(t[31]),changePercent:T(t[32]),high:T(t[33]),low:T(t[34]),amount:T(t[37]),lotSize:O(t[40]),circulatingMarketCap:O(t[44]),totalMarketCap:O(t[45]),currency:_nullishCoalesce(t[t.length-3], () => ("")),market:"HK",assetType:"stock",source:"tencent"}}function hn(t){let e=_nullishCoalesce(t[30], () => ("")),n=L(e,E.US);return{marketId:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),code:_nullishCoalesce(t[2], () => ("")),price:T(t[3]),prevClose:T(t[4]),open:T(t[5]),volume:T(t[6]),time:e,timestamp:n.timestamp,tz:n.tz,change:T(t[31]),changePercent:T(t[32]),high:T(t[33]),low:T(t[34]),amount:T(t[37]),turnoverRate:O(t[38]),pe:O(t[39]),amplitude:O(t[43]),totalMarketCap:O(t[45]),pb:O(t[47]),high52w:O(t[48]),low52w:O(t[49]),market:"US",assetType:"stock",source:"tencent"}}function Tn(t){let e=_nullishCoalesce(t[8], () => ("")),n=L(e,E.CN);return{code:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),nav:T(t[5]),accNav:T(t[6]),change:T(t[7]),navDate:e,timestamp:n.timestamp,tz:n.tz,market:"CN",assetType:"fund",source:"tencent"}}async function et(t,e){if(!e||e.length===0)return[];let n=await t.getTencentQuote(e.join(",")),r=new Set(e);return n.filter(o=>r.has(o.key)&&o.fields&&o.fields.length>5&&o.fields[0]!=="").map(o=>pn(o.fields))}async function er(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`s_${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>5&&i.fields[0]!=="").map(i=>mn(i.fields))}async function tr(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`ff_${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>=14&&i.fields[0]!=="").map(i=>gn(i.fields))}async function nr(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`s_pk${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>=4&&i.fields[0]!=="").map(i=>fn(i.fields))}async function tt(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`hk${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>5&&i.fields[0]!=="").map(i=>yn(i.fields))}async function nt(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`us${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>5&&i.fields[0]!=="").map(i=>hn(i.fields))}async function rr(t,e){if(!e||e.length===0)return[];let n=e.map(i=>`jj${i}`),r=await t.getTencentQuote(n.join(",")),o=new Set(n);return r.filter(i=>o.has(i.key)&&i.fields&&i.fields.length>=9&&i.fields[0]!=="").map(i=>Tn(i.fields))}async function or(t,e){let n=`${Ot}?code=${encodeURIComponent(e)}`,r=await t.get(n,{responseType:"json",provider:"tencent"});if(r.code!==0)throw new (0, _chunk4Q7UQ5Q3cjs.g)(r.msg||"API error","tencent",n);let o=_optionalChain([r, 'access', _56 => _56.data, 'optionalAccess', _57 => _57[e]]);if(!o){let p=L("",E.CN);return{code:e,date:"",timestamp:p.timestamp,tz:p.tz,preClose:0,data:[]}}let i=_nullishCoalesce(_optionalChain([o, 'access', _58 => _58.data, 'optionalAccess', _59 => _59.data]), () => ([])),s=_nullishCoalesce(_optionalChain([o, 'access', _60 => _60.data, 'optionalAccess', _61 => _61.date]), () => ("")),a=_nullishCoalesce(_optionalChain([o, 'access', _62 => _62.qt, 'optionalAccess', _63 => _63[e]]), () => ([])),l=parseFloat(_nullishCoalesce(a[4], () => ("")))||0,c=!1;for(let p of i){let g=p.split(" "),S=parseFloat(g[1])||0,A=parseInt(g[2],10)||0,h=parseFloat(g[3])||0;if(A>0&&S>0){h/A>S*50&&(c=!0);break}}let d=i.map(p=>{let g=p.split(" "),S=g[0],A=`${S.slice(0,2)}:${S.slice(2,4)}`,h=parseInt(g[2],10)||0,C=parseFloat(g[3])||0,I=c?h*100:h,U=I>0?C/I:0,K=_t(s,A,E.CN);return{time:A,timestamp:K.timestamp,tz:K.tz,price:parseFloat(g[1])||0,volume:I,amount:C,avgPrice:Math.round(U*100)/100}}),m=L(s,E.CN);return{code:e,date:s,timestamp:m.timestamp,tz:m.tz,preClose:l,data:d}}var ir=_chunkTVIEKKDQcjs.b.call(void 0, "tencent:code-lists",{defaultTTL:360*60*1e3,maxSize:16});async function Sn(t,e,n){return ir.getOrFetch(e,async()=>{let r=await t.get(n,{responseType:"json"}),o=_optionalChain([r, 'optionalAccess', _64 => _64.list]);if(_optionalChain([r, 'optionalAccess', _65 => _65.success])===!1||!Array.isArray(o)||o.length===0)throw new (0, _chunk4Q7UQ5Q3cjs.c)(`\u4EE3\u7801\u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u7A7A\u6570\u636E: ${e}`,"tencent",n);return o})}function Fi(t,e){let n=t.replace(/^(sh|sz|bj)/,"");switch(e){case"sh":return n.startsWith("6");case"sz":return n.startsWith("0")||n.startsWith("3");case"bj":return n.startsWith("4")||n.startsWith("8")||n.startsWith("92");case"kc":return n.startsWith("688");case"cy":return n.startsWith("30");default:return!0}}async function sr(t,e){let n=_nullishCoalesce(_optionalChain([e, 'optionalAccess', _66 => _66.simple]), () => (!1)),r=_optionalChain([e, 'optionalAccess', _67 => _67.market]),i=await Sn(t,"a-share:full",Pt);return r&&(i=i.filter(s=>Fi(s,r))),n?i.map(s=>s.replace(/^(sh|sz|bj)/,"")):i.slice()}async function ar(t,e){let n=_nullishCoalesce(_optionalChain([e, 'optionalAccess', _68 => _68.simple]), () => (!1)),r=_optionalChain([e, 'optionalAccess', _69 => _69.market]),i=(await Sn(t,"us:full",Dt)).slice();if(r){let s=`${_chunkT5CH7H3Xcjs.g[r]}.`;i=i.filter(a=>a.startsWith(s))}return n?i.map(s=>s.replace(/^\d{3}\./,"")):i}async function ur(t){return(await Sn(t,"hk:full",It)).slice()}async function lr(t,e,n={}){let{batchSize:r=Ee,concurrency:o=Ce,onProgress:i}=n;V(r,"batchSize"),V(o,"concurrency");let s=Math.min(r,_e),a=me(e,s),l=a.length,c=0,d=a.map(p=>async()=>{let g=await et(t,p);return c++,i&&i(c,l),g});return(await oe(d,o,!0)).flat()}async function cr(t,e,n={}){let{batchSize:r=Ee,concurrency:o=Ce,onProgress:i}=n;V(r,"batchSize"),V(o,"concurrency");let s=Math.min(r,_e),a=me(e,s),l=a.length,c=0,d=a.map(p=>async()=>{let g=await tt(t,p);return c++,i&&i(c,l),g});return(await oe(d,o,!0)).flat()}async function dr(t,e,n={}){let{batchSize:r=Ee,concurrency:o=Ce,onProgress:i}=n;V(r,"batchSize"),V(o,"concurrency");let s=Math.min(r,_e),a=me(e,s),l=a.length,c=0,d=a.map(p=>async()=>{let g=await nt(t,p);return c++,i&&i(c,l),g});return(await oe(d,o,!0)).flat()}async function pr(t){return(await ir.getOrFetch("fund:full",async()=>{let o=(await _asyncNullishCoalesce(await t.get($e,{responseType:"text"}), async () => (""))).split(",").slice(1).filter(i=>i.trim());if(o.length===0)throw new (0, _chunk4Q7UQ5Q3cjs.c)("\u57FA\u91D1\u4EE3\u7801\u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u7A7A\u6570\u636E","tencent",$e);return o})).slice()}var vi=_chunkTVIEKKDQcjs.b.call(void 0, "tencent:trade-calendar",{defaultTTL:720*60*1e3,maxSize:4});async function mr(t){return(await vi.getOrFetch("a-share",async()=>{let r=(await _asyncNullishCoalesce(await t.get(bt), async () => (""))).trim().split(",").map(o=>o.trim()).filter(o=>o.length>0);if(r.length===0)throw new (0, _chunk4Q7UQ5Q3cjs.c)("\u4EA4\u6613\u65E5\u5386\u63A5\u53E3\u8FD4\u56DE\u7A7A\u6570\u636E","tencent",bt);return r})).slice()}var gr="https://smartbox.gtimg.cn/s3/";function wi(t){return t.replace(/\\u([0-9a-fA-F]{4})/g,(e,n)=>String.fromCharCode(parseInt(n,16)))}function xi(t){let e=t.toUpperCase();return e.startsWith("QDII")||e.startsWith("ETF")||e.startsWith("LOF")||e.startsWith("KJ")||e.startsWith("JJ")||e.includes("FUND")?"fund":e.startsWith("GP")||e.includes("STOCK")?"stock":e==="ZS"||e.includes("INDEX")?"index":e.startsWith("ZQ")||e.includes("BOND")?"bond":e.startsWith("QH")||e.includes("FUTURE")?"futures":e.startsWith("QZ")||e.includes("OPTION")?"option":"other"}function Ui(t){return!t||t==="N"?[]:t.split("^").filter(Boolean).map(n=>{let r=n.split("~"),o=r[0]||"",i=r[1]||"",s=wi(r[2]||""),a=r[4]||"";return{code:o+i,name:s,market:o,type:a,category:xi(a)}})}function Ki(t){return new Promise((e,n)=>{let r=`${gr}?v=2&t=all&q=${encodeURIComponent(t)}`;window.v_hint="";let o=document.createElement("script");o.src=r,o.charset="utf-8",o.onload=()=>{let i=window.v_hint||"";document.body.removeChild(o),e(i)},o.onerror=()=>{document.body.removeChild(o),n(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:"Network error calling Smartbox",url:r}))},document.body.appendChild(o)})}async function Bi(t,e){let n=`${gr}?v=2&t=all&q=${encodeURIComponent(e)}`,o=(await t.get(n)).match(/v_hint="([^"]*)"/);return o?o[1]:""}function Hi(){return typeof window<"u"&&typeof document<"u"}async function fr(t,e){if(!e||!e.trim())return[];let n;return Hi()?n=await Ki(e):n=await Bi(t,e),Ui(n)}var f={};_chunk4VDLQK6Fcjs.a.call(void 0, f,{assertCnStockSymbol:()=>Mn,extractVariety:()=>Dn,fetchDatacenter:()=>En,fetchDatacenterList:()=>D,getBlockTradeDailyStat:()=>Ko,getBlockTradeDetail:()=>Uo,getBlockTradeMarketStat:()=>xo,getBoardChanges:()=>bo,getCFFEXOptionQuotes:()=>Jr,getComexInventory:()=>oo,getConceptConstituents:()=>Ur,getConceptKline:()=>Kr,getConceptList:()=>wr,getConceptMinuteKline:()=>Br,getConceptSpot:()=>xr,getDividendDetail:()=>Hr,getDragonTigerBranchRank:()=>Fo,getDragonTigerDetail:()=>Mo,getDragonTigerInstitution:()=>Lo,getDragonTigerStockSeatDetail:()=>vo,getDragonTigerStockStats:()=>No,getFundDividendList:()=>qr,getFundEstimate:()=>$r,getFundFlowRank:()=>po,getFundNavHistory:()=>zr,getFundProfile:()=>Qr,getFundRankHistory:()=>Yr,getFuturesHistoryKline:()=>Vr,getFuturesInventory:()=>ro,getFuturesInventorySymbols:()=>no,getFuturesMarketCode:()=>In,getGlobalFuturesKline:()=>Xr,getGlobalFuturesSpot:()=>Zr,getHKHistoryKline:()=>Rr,getHKMinuteKline:()=>Er,getHistoryKline:()=>Tr,getHotThemes:()=>zo,getIndividualFundFlow:()=>lo,getIndividualStockChanges:()=>Io,getIndustryConstituents:()=>Lr,getIndustryKline:()=>Fr,getIndustryList:()=>Mr,getIndustryMinuteKline:()=>vr,getIndustrySpot:()=>Nr,getMarginAccountInfo:()=>Bo,getMarginTargetList:()=>Ho,getMarketFundFlow:()=>co,getMinuteKline:()=>Sr,getNorthboundFlowSummary:()=>ho,getNorthboundHistory:()=>So,getNorthboundHoldingRank:()=>To,getNorthboundIndividual:()=>Ro,getNorthboundMinute:()=>yo,getOptionLHB:()=>eo,getSectorFundFlowHistory:()=>go,getSectorFundFlowRank:()=>mo,getStockChanges:()=>Do,getThemeFunds:()=>$o,getThemeList:()=>qo,getUSHistoryKline:()=>_r,getUSMinuteKline:()=>Cr,getZTPool:()=>Po});function k(t){return/^\d{8}$/.test(t)?`${t.slice(0,4)}-${t.slice(4,6)}-${t.slice(6,8)}`:t}function yr(t,e){let n=i=>k(i.replace("T"," ").trim()).slice(0,16),r=n(t),o=n(e);return o.length===10&&(o+=" 23:59"),{start:r,end:o}}function hr(t,e,n=0){let r=s=>{if(!s)return;let a=/^(\d{4})-?(\d{2})-?(\d{2})/.exec(s.trim());return a?`${a[1]}${a[2]}${a[3]}`:void 0},o=_nullishCoalesce(r(t), () => ("0")),i=r(e);return i!==void 0&&n>0&&(i=Z(`${i.slice(0,4)}-${i.slice(4,6)}-${i.slice(6,8)}`,n).replace(/-/g,"")),{beg:o,end:_nullishCoalesce(i, () => ("20500000"))}}async function Rn(t,e,n,r,o=100,i){let s=[],a=1,l=0;do{let c=new URLSearchParams({...n,pn:String(a),pz:String(o),fields:r}),d=`${e}?${c.toString()}`,p=await _asyncOptionalChain([(await t.get(d,{responseType:"json"})), 'optionalAccess', async _70 => _70.data]);if(!p||!Array.isArray(p.diff))break;a===1&&(l=_nullishCoalesce(p.total, () => (0)));let g=p.diff.map((S,A)=>i(S,s.length+A+1));if(s.push(...g),g.length===0)break;a++}while(s.length<l);return s}function B(t){let[e,n,r,o,i,s,a,l,c,d,m]=t.split(",");return{date:e,open:y(n),close:y(r),high:y(o),low:y(i),volume:y(s),amount:y(a),amplitude:y(l),changePercent:y(c),change:y(d),turnoverRate:y(m)}}async function H(t,e,n){let r=`${e}?${n.toString()}`,o=await t.get(r,{responseType:"json"});return{klines:_optionalChain([o, 'optionalAccess', _71 => _71.data, 'optionalAccess', _72 => _72.klines])||[],name:_optionalChain([o, 'optionalAccess', _73 => _73.data, 'optionalAccess', _74 => _74.name]),code:_optionalChain([o, 'optionalAccess', _75 => _75.data, 'optionalAccess', _76 => _76.code])}}function qi(t){let[e,n,r,o,i,s,a,l]=t.split(",");return{time:e,open:y(n),close:y(r),high:y(o),low:y(i),volume:y(s),amount:y(a),avgPrice:y(l)}}function rt(t,e){let n=r=>{let o=le(r,E.CN);return{time:Ct(o,t)||r,timestamp:ie(o)}};return{mapTrendRow:({time:r,...o},i)=>({...n(r),tz:t,...o,currency:e,code:i.code}),mapKlineRow:({date:r,...o},i)=>({...n(r),tz:t,...o,currency:e,code:i.code})}}function ne(t){return async function(n,r,o={}){let i=_nullishCoalesce(o.period, () => (t.defaultPeriod));St(i),t.fqt==="option"&&X(_nullishCoalesce(o.adjust, () => ("qfq")));let s=t.resolveTarget(r),a=t.window,l=p=>{if(a.mode==="full")return p;let{start:g,end:S}=yr(_nullishCoalesce(o.startDate, () => ("1979-09-01 09:32:00")),_nullishCoalesce(o.endDate, () => ("2222-01-01 09:32:00")));return p.filter(A=>A.time>=g&&A.time<=S)};if(i==="1"){let p=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f11,f12,f13",fields2:"f51,f52,f53,f54,f55,f56,f57,f58",...t.includeUt?{ut:N}:{},ndays:t.ndays==="option"?String(_nullishCoalesce(o.ndays, () => (1))):t.ndays.fixed,iscr:"0",secid:s.secid}),g=`${t.trendsUrl}?${p.toString()}`,A=await _asyncOptionalChain([(await n.get(g,{responseType:"json"})), 'optionalAccess', async _77 => _77.data, 'optionalAccess', async _78 => _78.trends]);return!Array.isArray(A)||A.length===0?[]:l(A.map(h=>t.mapTrendRow(qi(h),s)))}let c=a.mode==="filter"?hr(o.startDate,o.endDate,_nullishCoalesce(a.endExtraDays, () => (0))):{beg:a.beg,end:a.end},d=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",...t.includeUt?{ut:N}:{},klt:i,fqt:t.fqt==="option"?J(_nullishCoalesce(o.adjust, () => ("qfq"))):t.fqt.fixed,secid:s.secid,beg:c.beg,end:c.end,..._nullishCoalesce(t.extraKlineParams, () => ({}))}),{klines:m}=await H(n,t.klineUrl,d);return!Array.isArray(m)||m.length===0?[]:l(m.map(p=>t.mapKlineRow(B(p),s)))}}async function Tr(t,e,n={}){let{period:r="daily",adjust:o="qfq",startDate:i="19700101",endDate:s="20500101"}=n;z(r),X(o);let a=_chunkT5CH7H3Xcjs.e.call(void 0, e,{market:"CN"}),l=_chunkT5CH7H3Xcjs.i.call(void 0, a),c=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f116",ut:N,klt:$(r),fqt:J(o),secid:l,beg:i,end:s}),d=Ye,{klines:m}=await H(t,d,c);return m.length===0?[]:m.map(p=>{let g=B(p),S=L(g.date,E.CN);return{...g,timestamp:S.timestamp,tz:S.tz,code:a.code}})}var zi=ne({trendsUrl:kt,klineUrl:Ye,resolveTarget:t=>{let e=_chunkT5CH7H3Xcjs.e.call(void 0, t,{market:"CN"});return{secid:_chunkT5CH7H3Xcjs.i.call(void 0, e),code:e.code}},defaultPeriod:"1",ndays:{fixed:"5"},fqt:"option",includeUt:!0,window:{mode:"filter"},mapTrendRow:({time:t,...e})=>{let n=L(t,E.CN);return{time:t,timestamp:n.timestamp,tz:n.tz,...e}},mapKlineRow:t=>{let e=L(t.date,E.CN);return{...t,time:t.date,timestamp:e.timestamp,tz:e.tz}}});async function Sr(t,e,n={}){return zi(t,e,n)}function ot(t){return async function(n,r,o={}){let{period:i="daily",adjust:s="qfq",startDate:a="19700101",endDate:l="20500101"}=o;z(i),X(s);let c=t.normalizeSymbol(r),d=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",ut:N,klt:$(i),fqt:J(s),secid:c.secid,beg:a,end:l,lmt:"1000000"}),{klines:m,name:p,code:g}=await H(n,t.url,d);if(m.length===0)return[];let S=t.resolveResultMeta?t.resolveResultMeta(r,c,{code:g,name:p}):{code:g||c.fallbackCode,name:p||""};return m.map(A=>{let h=B(A),C=L(h.date,t.tz),I={...h,timestamp:C.timestamp,tz:C.tz,code:S.code,name:S.name};return t.enrichItem(I)})}}var $i=ot({url:je,tz:E.HK,normalizeSymbol:t=>{let e=_chunkT5CH7H3Xcjs.e.call(void 0, t,{market:"HK"});return{secid:_chunkT5CH7H3Xcjs.i.call(void 0, e),fallbackCode:e.code}},enrichItem:t=>({...t,currency:"HKD",lotSize:null})});async function Rr(t,e,n={}){return $i(t,e,n)}var Yi=ne({trendsUrl:Mt,klineUrl:je,resolveTarget:t=>{let e=_chunkT5CH7H3Xcjs.e.call(void 0, t,{market:"HK"});return{secid:_chunkT5CH7H3Xcjs.i.call(void 0, e),code:e.code}},defaultPeriod:"1",ndays:"option",fqt:"option",includeUt:!0,window:{mode:"filter"},...rt(E.HK,"HKD")});async function Er(t,e,n={}){return Yi(t,e,n)}var ji=ot({url:Ge,tz:E.US,normalizeSymbol:t=>({secid:t,fallbackCode:t.split(".")[1]||t}),resolveResultMeta:(t,e,n)=>({code:n.code||e.fallbackCode,name:n.name||""}),enrichItem:t=>({...t,currency:"USD"})});async function _r(t,e,n={}){return ji(t,e,n)}var Gi=ne({trendsUrl:Nt,klineUrl:Ge,resolveTarget:t=>({secid:t,code:t.split(".")[1]||t}),defaultPeriod:"1",ndays:"option",fqt:"option",includeUt:!0,window:{mode:"filter",endExtraDays:1},...rt(E.US,"USD")});async function Cr(t,e,n={}){return Gi(t,e,n)}function Or(t){let e=_chunkTVIEKKDQcjs.b.call(void 0, `eastmoney:board-code-map:${t.type}`,{defaultTTL:36e5,maxSize:4});return{async getCode(n,r,o){if(r.startsWith("BK"))return r;let s=(await e.getOrFetch("name-code-map",async()=>{let a=await o(n);if(a.length===0)throw new (0, _chunk4Q7UQ5Q3cjs.c)(`${t.errorPrefix}: \u677F\u5757\u5217\u8868\u63A5\u53E3\u8FD4\u56DE\u7A7A\u6570\u636E`,"eastmoney");return Object.fromEntries(a.map(l=>[l.name,l.code]))}))[r];if(!s)throw new (0, _chunk4Q7UQ5Q3cjs.d)(`${t.errorPrefix}: ${r}`,"eastmoney");return s}}}async function Pr(t,e){let n={po:"1",np:"1",ut:"bd1d9ddb04089700cf9c27f6f7426281",fltt:"2",invt:"2",fid:e.type==="concept"?"f12":"f3",fs:e.fsFilter},r=e.type==="concept"?"f2,f3,f4,f8,f12,f14,f15,f16,f17,f18,f20,f21,f24,f25,f22,f33,f11,f62,f128,f124,f107,f104,f105,f136":"f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f26,f22,f33,f11,f62,f128,f136,f115,f152,f124,f107,f104,f105,f140,f141,f207,f208,f209,f222",o=await Rn(t,e.listUrl,n,r,100,(i,s)=>({rank:s,name:String(_nullishCoalesce(i.f14, () => (""))),code:String(_nullishCoalesce(i.f12, () => (""))),price:u(i.f2),change:u(i.f4),changePercent:u(i.f3),totalMarketCap:u(i.f20),turnoverRate:u(i.f8),riseCount:u(i.f104),fallCount:u(i.f105),leadingStock:i.f128?String(i.f128):null,leadingStockChangePercent:u(i.f136)}));return o.sort((i,s)=>(_nullishCoalesce(s.changePercent, () => (0)))-(_nullishCoalesce(i.changePercent, () => (0)))),o.forEach((i,s)=>{i.rank=s+1}),o}async function Dr(t,e,n){let r=new URLSearchParams({fields:"f43,f44,f45,f46,f47,f48,f170,f171,f168,f169",mpi:"1000",invt:"2",fltt:"1",secid:`90.${e}`}),o=`${n}?${r.toString()}`,s=await _asyncOptionalChain([(await t.get(o,{responseType:"json"})), 'optionalAccess', async _79 => _79.data]);return s?[{key:"f43",name:"\u6700\u65B0",divide:!0},{key:"f44",name:"\u6700\u9AD8",divide:!0},{key:"f45",name:"\u6700\u4F4E",divide:!0},{key:"f46",name:"\u5F00\u76D8",divide:!0},{key:"f47",name:"\u6210\u4EA4\u91CF",divide:!1},{key:"f48",name:"\u6210\u4EA4\u989D",divide:!1},{key:"f170",name:"\u6DA8\u8DCC\u5E45",divide:!0},{key:"f171",name:"\u632F\u5E45",divide:!0},{key:"f168",name:"\u6362\u624B\u7387",divide:!0},{key:"f169",name:"\u6DA8\u8DCC\u989D",divide:!0}].map(({key:l,name:c,divide:d})=>{let m=s[l],p=null;return typeof m=="number"&&!isNaN(m)&&(p=d?m/100:m),{item:c,value:p}}):[]}async function Ir(t,e,n){let r={po:"1",np:"1",ut:"bd1d9ddb04089700cf9c27f6f7426281",fltt:"2",invt:"2",fid:"f3",fs:`b:${e} f:!50`};return Rn(t,n,r,"f1,f2,f3,f4,f5,f6,f7,f8,f9,f10,f12,f13,f14,f15,f16,f17,f18,f20,f21,f23,f24,f25,f22,f11,f62,f128,f136,f115,f152,f45",100,(i,s)=>({rank:s,code:String(_nullishCoalesce(i.f12, () => (""))),name:String(_nullishCoalesce(i.f14, () => (""))),price:u(i.f2),changePercent:u(i.f3),change:u(i.f4),volume:u(i.f5),amount:u(i.f6),amplitude:u(i.f7),high:u(i.f15),low:u(i.f16),open:u(i.f17),prevClose:u(i.f18),turnoverRate:u(i.f8),pe:u(i.f9),pb:u(i.f23)}))}async function br(t,e,n,r={}){let{period:o="daily",adjust:i="",startDate:s="19700101",endDate:a="20500101"}=r;z(o),X(i);let l=new URLSearchParams({secid:`90.${e}`,fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61",klt:$(o),fqt:J(i),beg:s,end:a,smplmt:"10000",lmt:"1000000"}),{klines:c}=await H(t,n,l);return c.length===0?[]:c.map(d=>B(d))}var Ar=new Map;async function kr(t,e,n,r,o={}){let i=`${n}|${r}`,s=Ar.get(i);return s||(s=ne({trendsUrl:r,klineUrl:n,resolveTarget:a=>({secid:`90.${a}`,code:a}),defaultPeriod:"5",ndays:{fixed:"1"},fqt:{fixed:"1"},includeUt:!1,window:{mode:"full",beg:"0",end:"20500101"},extraKlineParams:{smplmt:"10000",lmt:"1000000"},mapTrendRow:({avgPrice:a,...l})=>({...l,price:a}),mapKlineRow:a=>({time:a.date,open:a.open,close:a.close,high:a.high,low:a.low,changePercent:a.changePercent,change:a.change,volume:a.volume,amount:a.amount,amplitude:a.amplitude,turnoverRate:a.turnoverRate})}),Ar.set(i,s)),s(t,e,o)}function it(t){let e=Or(t);async function n(o){return Pr(o,t)}async function r(o,i){return e.getCode(o,i,n)}return{async getList(o){return n(o)},async getSpot(o,i){let s=await r(o,i);return Dr(o,s,t.spotUrl)},async getConstituents(o,i){let s=await r(o,i);return Ir(o,s,t.consUrl)},async getKline(o,i,s={}){let a=await r(o,i);return br(o,a,t.klineUrl,s)},async getMinuteKline(o,i,s={}){let a=await r(o,i);return kr(o,a,t.klineUrl,t.trendsUrl,s)}}}var Qi={type:"industry",fsFilter:"m:90 t:2 f:!50",listUrl:Lt,spotUrl:Ft,consUrl:vt,klineUrl:wt,trendsUrl:xt,errorPrefix:"\u672A\u627E\u5230\u884C\u4E1A\u677F\u5757"},Pe=it(Qi);async function Mr(t){return Pe.getList(t)}async function Nr(t,e){return Pe.getSpot(t,e)}async function Lr(t,e){return Pe.getConstituents(t,e)}async function Fr(t,e,n={}){return Pe.getKline(t,e,n)}async function vr(t,e,n={}){return Pe.getMinuteKline(t,e,n)}var Wi={type:"concept",fsFilter:"m:90 t:3 f:!50",listUrl:Ut,spotUrl:Kt,consUrl:Bt,klineUrl:Ht,trendsUrl:qt,errorPrefix:"\u672A\u627E\u5230\u6982\u5FF5\u677F\u5757"},De=it(Wi);async function wr(t){return De.getList(t)}async function xr(t,e){return De.getSpot(t,e)}async function Ur(t,e){return De.getConstituents(t,e)}async function Kr(t,e,n={}){return De.getKline(t,e,n)}async function Br(t,e,n={}){return De.getMinuteKline(t,e,n)}async function En(t,e,n){let{reportName:r,columns:o="ALL",filter:i,sortColumns:s,sortTypes:a,pageSize:l=500,startPage:c=1,fetchAllPages:d=!0,maxPages:m=1e3,quoteColumns:p,quoteType:g,extraParams:S}=e,A=[],h=c,C=1,I=0,U=0;do{let K=new URLSearchParams({reportName:r,columns:o,pageSize:String(l),pageNumber:String(h),source:"WEB",client:"WEB"});if(i&&K.set("filter",i),s&&K.set("sortColumns",s),a&&K.set("sortTypes",a),p&&K.set("quoteColumns",p),g&&K.set("quoteType",g),S)for(let[at,ut]of Object.entries(S))K.set(at,ut);let ti=`${zt}?${K.toString()}`,ae=await _asyncOptionalChain([(await t.get(ti,{responseType:"json"})), 'optionalAccess', async _80 => _80.result]);if(!ae||!Array.isArray(ae.data))break;h===c&&(C=_nullishCoalesce(ae.pages, () => (1)),I=_nullishCoalesce(ae.count, () => (ae.data.length)));let ni=ae.data.map((at,ut)=>n(at,A.length+ut));if(A.push(...ni),h++,U++,!d)break}while(h<=C&&U<m);return d&&U>=m&&h<=C&&console.warn(`[stock-sdk] fetchDatacenter("${r}") truncated at maxPages=${m} (server reports ${C} pages). Pass a larger \`maxPages\` to fetch the full dataset.`),{data:A,total:I,pages:C}}async function D(t,e,n){return(await En(t,e,n)).data}function F(t){if(t==null)return"";let e=String(t),n=e.match(/^(\d{4}-\d{2}-\d{2})/);return n?n[1]:e}function se(t){if(!t)return null;let e=t.match(/^(\d{4}-\d{2}-\d{2})/);return e?e[1]:null}function Vi(t){return{code:_nullishCoalesce(t.SECURITY_CODE, () => ("")),name:_nullishCoalesce(t.SECURITY_NAME_ABBR, () => ("")),reportDate:se(t.REPORT_DATE),planNoticeDate:se(t.PLAN_NOTICE_DATE),disclosureDate:se(_nullishCoalesce(t.PUBLISH_DATE, () => (t.PLAN_NOTICE_DATE))),assignTransferRatio:_nullishCoalesce(t.BONUS_IT_RATIO, () => (null)),bonusRatio:_nullishCoalesce(t.BONUS_RATIO, () => (null)),transferRatio:_nullishCoalesce(t.IT_RATIO, () => (null)),dividendPretax:_nullishCoalesce(t.PRETAX_BONUS_RMB, () => (null)),dividendDesc:_nullishCoalesce(t.IMPL_PLAN_PROFILE, () => (null)),dividendYield:_nullishCoalesce(t.DIVIDENT_RATIO, () => (null)),eps:_nullishCoalesce(t.BASIC_EPS, () => (null)),bps:_nullishCoalesce(t.BVPS, () => (null)),capitalReserve:_nullishCoalesce(t.PER_CAPITAL_RESERVE, () => (null)),unassignedProfit:_nullishCoalesce(t.PER_UNASSIGN_PROFIT, () => (null)),netProfitYoy:_nullishCoalesce(t.PNP_YOY_RATIO, () => (null)),totalShares:_nullishCoalesce(t.TOTAL_SHARES, () => (null)),equityRecordDate:se(t.EQUITY_RECORD_DATE),exDividendDate:se(t.EX_DIVIDEND_DATE),payDate:se(t.PAY_DATE),assignProgress:_nullishCoalesce(t.ASSIGN_PROGRESS, () => (null)),noticeDate:se(t.NOTICE_DATE)}}async function Hr(t,e){let n=e.replace(/^(sh|sz|bj)/,"");return D(t,{reportName:"RPT_SHAREBONUS_DET",sortColumns:"REPORT_DATE",sortTypes:"-1",pageSize:500,filter:`(SECURITY_CODE="${n}")`},r=>Vi(r))}var Zi="https://fund.eastmoney.com/Data/funddataIndex_Interface.aspx",An="https://fund.eastmoney.com/pingzhongdata",Xi="https://fundgz.1234567.com.cn/js";function Ji(){return typeof document<"u"&&typeof window<"u"}var es=1e4;function ts(){return Number(w(E.CN).slice(0,4))}function ns(t,e){let n=new URLSearchParams({dt:"8",page:String(e),rank:_nullishCoalesce(t.rank, () => ("FSRQ")),sort:_nullishCoalesce(t.sort, () => ("desc")),gs:"",ftype:_nullishCoalesce(t.fundType, () => ("")),year:String(_nullishCoalesce(t.year, () => (ts())))});return`${Zi}?${n.toString()}`}function _n(t){if(!t)return null;let e=t.trim().match(/^(\d{4}-\d{2}-\d{2})/);return e?e[1]:null}function rs(t){return{code:_nullishCoalesce(t[0], () => ("")),name:_nullishCoalesce(t[1], () => ("")),equityRecordDate:_n(t[2]),exDividendDate:_n(t[3]),dividendPerShare:_(t[4]),payDate:_n(t[5]),dividendType:_optionalChain([t, 'access', _81 => _81[6], 'optionalAccess', _82 => _82.trim, 'call', _83 => _83()])?t[6].trim():null}}async function Cn(t,e,n){let r=ns(e,n),o=await ue(r,["pageinfo","jjfh_data"],{client:t}),i=_nullishCoalesce(o.pageinfo, () => ([0,0,n])),[s=0,a=0,l=n]=i;return{items:(_nullishCoalesce(o.jjfh_data, () => ([]))).map(rs),totalPages:s,pageSize:a,currentPage:l}}async function qr(t,e={}){if(e.page==="all"){let o=await Cn(t,e,1),i=o.items;for(let s=2;s<=o.totalPages;s++){let a=await Cn(t,e,s);i=i.concat(a.items)}return e.code&&(i=i.filter(s=>s.code===e.code)),{items:i,totalPages:o.totalPages,pageSize:o.pageSize,currentPage:-1}}let n=_nullishCoalesce(e.page, () => (1)),r=await Cn(t,e,n);return e.code?{...r,items:r.items.filter(o=>o.code===e.code)}:r}function On(t){return w(E.CN,t)}function Pn(t){return ie(le(t,E.CN))}function j(t,e){return _nullishCoalesce(_optionalChain([t, 'optionalAccess', _84 => _84.find, 'call', _85 => _85(n=>n.name===e), 'optionalAccess', _86 => _86.data]), () => ([]))}async function zr(t,e){let n=`${An}/${encodeURIComponent(e)}.js`,r=await ue(n,["fS_code","fS_name","Data_netWorthTrend","Data_ACWorthTrend"],{client:t}),o=_nullishCoalesce(r.Data_netWorthTrend, () => ([])),i=new Map;for(let a of _nullishCoalesce(r.Data_ACWorthTrend, () => ([])))Array.isArray(a)&&a.length>=2&&i.set(a[0],a[1]);let s=o.map(a=>({date:On(a.x),timestamp:a.x,nav:a.y,accNav:i.has(a.x)?i.get(a.x):null,dailyReturn:_(a.equityReturn),unitMoney:_nullishCoalesce(a.unitMoney, () => (""))}));return{code:_nullishCoalesce(r.fS_code, () => (e)),name:_nullishCoalesce(r.fS_name, () => (null)),items:s}}function os(t,e,n=es){let r=`${Xi}/${encodeURIComponent(e)}.js?rt=${Date.now()}`;return Ji()?ge("fundgz:jsonpgz",()=>is(r,n)):ss(t,r)}function is(t,e){return new Promise((n,r)=>{let o=document.createElement("script"),i=window,s=i.jsonpgz,a=!1,l=()=>{if(o.parentNode&&o.parentNode.removeChild(o),s===void 0)try{delete i.jsonpgz}catch (e9){}else i.jsonpgz=s},c=setTimeout(()=>{a||(a=!0,l(),r(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"TIMEOUT",message:`fundgz JSONP timed out after ${e}ms: ${t}`,url:t,details:{timeout:e}})))},e);i.jsonpgz=d=>{a||(a=!0,clearTimeout(c),l(),n(_nullishCoalesce(d, () => ({}))))},o.onerror=()=>{a||(a=!0,clearTimeout(c),l(),r(new (0, _chunk4Q7UQ5Q3cjs.a)({code:"NETWORK_ERROR",message:`fundgz JSONP script load failed: ${t}`,url:t})))},o.src=t,document.head.appendChild(o)})}async function ss(t,e){let r=(await t.get(e,{responseType:"text",provider:"eastmoney"})).trim();if(!r)return{};try{return ze(r)}catch (e10){return{}}}async function $r(t,e){let n=await os(t,e);return{code:_nullishCoalesce(n.fundcode, () => (e)),name:_nullishCoalesce(n.name, () => (null)),navDate:_optionalChain([n, 'access', _87 => _87.jzrq, 'optionalAccess', _88 => _88.trim, 'call', _89 => _89()])?n.jzrq.trim():null,nav:_(n.dwjz),estimatedNav:_(n.gsz),estimatedChangePercent:_(n.gszzl),estimateTime:_optionalChain([n, 'access', _90 => _90.gztime, 'optionalAccess', _91 => _91.trim, 'call', _92 => _92()])?n.gztime.trim():null}}async function Yr(t,e){let n=`${An}/${encodeURIComponent(e)}.js`,r=await ue(n,["fS_code","fS_name","Data_rateInSimilarType","Data_rateInSimilarPersent"],{client:t}),o=_nullishCoalesce(r.Data_rateInSimilarType, () => ([])),i=new Map;for(let a of _nullishCoalesce(r.Data_rateInSimilarPersent, () => ([])))Array.isArray(a)&&a.length>=2&&i.set(a[0],a[1]);let s=o.map(a=>({date:On(a.x),timestamp:a.x,rank:_(a.y),total:_(a.sc),percentile:i.has(a.x)?i.get(a.x):null}));return{code:_nullishCoalesce(r.fS_code, () => (e)),name:_nullishCoalesce(r.fS_name, () => (null)),items:s}}function jr(t){let e=t.indexOf(".");return e<0?{code:t,marketId:""}:{marketId:t.slice(0,e),code:t.slice(e+1)}}function as(t){return t?t.map(e=>e.trim()).filter(Boolean).map(jr):[]}function us(t){return t?t.split(",").map(e=>e.trim()).filter(Boolean).map(jr):[]}function ls(t){if(!_optionalChain([t, 'optionalAccess', _93 => _93.categories, 'optionalAccess', _94 => _94.length])||!_optionalChain([t, 'optionalAccess', _95 => _95.series]))return[];let e=j(t.series,"\u80A1\u7968\u5360\u51C0\u6BD4"),n=j(t.series,"\u503A\u5238\u5360\u51C0\u6BD4"),r=j(t.series,"\u73B0\u91D1\u5360\u51C0\u6BD4"),o=j(t.series,"\u5176\u4ED6\u5360\u51C0\u6BD4"),i=j(t.series,"\u51C0\u8D44\u4EA7");return t.categories.map((s,a)=>({date:s,timestamp:Pn(s),stockRatio:_nullishCoalesce(e[a], () => (0)),bondRatio:_nullishCoalesce(n[a], () => (0)),cashRatio:_nullishCoalesce(r[a], () => (0)),otherRatio:_nullishCoalesce(o[a], () => (0)),netAsset:_nullishCoalesce(i[a], () => (0))}))}function cs(t){return t?t.filter(([e])=>typeof e=="number"&&Number.isFinite(e)).map(([e,n])=>({date:On(e),timestamp:e,position:n})):[]}function ds(t){return t?t.map(e=>{let n=_optionalChain([e, 'optionalAccess', _96 => _96.star]);return{id:_nullishCoalesce(_optionalChain([e, 'optionalAccess', _97 => _97.id]), () => ("")),name:_nullishCoalesce(_optionalChain([e, 'optionalAccess', _98 => _98.name]), () => ("")),avatarUrl:_optionalChain([e, 'optionalAccess', _99 => _99.pic, 'optionalAccess', _100 => _100.trim, 'call', _101 => _101()])||null,star:typeof n=="number"&&Number.isFinite(n)?n:null,workTime:_optionalChain([e, 'optionalAccess', _102 => _102.workTime, 'optionalAccess', _103 => _103.trim, 'call', _104 => _104()])||null,fundSize:_optionalChain([e, 'optionalAccess', _105 => _105.fundSize, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()])||null,power:Gr(_optionalChain([e, 'optionalAccess', _108 => _108.power]))}}):[]}function Gr(t){return _optionalChain([t, 'optionalAccess', _109 => _109.categories, 'optionalAccess', _110 => _110.length])?{overall:_nullishCoalesce(_(t.avr), () => (0)),categories:t.categories,scores:_nullishCoalesce(t.data, () => ([])),descriptions:_nullishCoalesce(t.dsc, () => ([]))}:null}function ps(t){if(!_optionalChain([t, 'optionalAccess', _111 => _111.categories, 'optionalAccess', _112 => _112.length])||!_optionalChain([t, 'optionalAccess', _113 => _113.series]))return[];let e=j(t.series,"\u673A\u6784\u6301\u6709\u6BD4\u4F8B"),n=j(t.series,"\u4E2A\u4EBA\u6301\u6709\u6BD4\u4F8B"),r=j(t.series,"\u5185\u90E8\u6301\u6709\u6BD4\u4F8B");return t.categories.map((o,i)=>({date:o,timestamp:Pn(o),institutionRatio:_nullishCoalesce(e[i], () => (0)),individualRatio:_nullishCoalesce(n[i], () => (0)),internalRatio:_nullishCoalesce(r[i], () => (0))}))}function ms(t){return!_optionalChain([t, 'optionalAccess', _114 => _114.categories, 'optionalAccess', _115 => _115.length])||!_optionalChain([t, 'optionalAccess', _116 => _116.series])?[]:t.categories.map((e,n)=>({date:e,scale:_nullishCoalesce(_optionalChain([t, 'access', _117 => _117.series, 'optionalAccess', _118 => _118[n], 'optionalAccess', _119 => _119.y]), () => (0)),mom:_nullishCoalesce(_optionalChain([t, 'access', _120 => _120.series, 'optionalAccess', _121 => _121[n], 'optionalAccess', _122 => _122.mom]), () => (""))}))}function gs(t){if(!_optionalChain([t, 'optionalAccess', _123 => _123.categories, 'optionalAccess', _124 => _124.length])||!_optionalChain([t, 'optionalAccess', _125 => _125.series]))return[];let e=j(t.series,"\u671F\u95F4\u7533\u8D2D"),n=j(t.series,"\u671F\u95F4\u8D4E\u56DE"),r=j(t.series,"\u603B\u4EFD\u989D");return t.categories.map((o,i)=>({date:o,timestamp:Pn(o),buy:_nullishCoalesce(e[i], () => (0)),sell:_nullishCoalesce(n[i], () => (0)),total:_nullishCoalesce(r[i], () => (0))}))}function fs(t){return{oneMonth:_(t.syl_1y),threeMonth:_(t.syl_3y),sixMonth:_(t.syl_6y),oneYear:_(t.syl_1n)}}function ys(t){if(typeof t!="string")return null;let e=t.indexOf("_");if(e<0)return null;let n=t.slice(0,e);if(!n)return null;let r=t.lastIndexOf("_");return r>e?{code:n,name:t.slice(e+1,r),value:_(t.slice(r+1))}:{code:n,name:t.slice(e+1),value:null}}function hs(t){if(!_optionalChain([t, 'optionalAccess', _126 => _126.length]))return null;let e=t.map(n=>(Array.isArray(n)?n:[]).map(ys).filter(r=>r!==null)).filter(n=>n.length>0);return e.length?{groups:e}:null}async function Qr(t,e){let n=`${An}/${encodeURIComponent(e)}.js`,r=await ue(n,["fS_code","fS_name","fund_sourceRate","fund_Rate","fund_minsg","stockCodesNew","zqCodesNew","Data_assetAllocation","Data_fundSharesPositions","Data_currentFundManager","Data_performanceEvaluation","Data_holderStructure","Data_fluctuationScale","Data_buySedemption","syl_1y","syl_3y","syl_6y","syl_1n","swithSameType"],{client:t});return{code:_nullishCoalesce(r.fS_code, () => (e)),name:_nullishCoalesce(r.fS_name, () => (null)),sourceRate:_(r.fund_sourceRate),rate:_(r.fund_Rate),minSubscription:_(r.fund_minsg),holdings:as(r.stockCodesNew),bondHoldings:us(r.zqCodesNew),assetAllocation:ls(r.Data_assetAllocation),positions:cs(r.Data_fundSharesPositions),managers:ds(r.Data_currentFundManager),performance:Gr(r.Data_performanceEvaluation),holderStructure:ps(r.Data_holderStructure),scaleChanges:ms(r.Data_fluctuationScale),buySedemption:gs(r.Data_buySedemption),stageReturns:fs(r),sameType:hs(r.swithSameType)}}function Dn(t){let e=t.match(/^([a-zA-Z]+)/);if(!e)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid futures symbol: "${t}". Expected format: variety + contract (e.g., rb2605, RBM, IF2604)`);return e[1]}function Wr(t){return _nullishCoalesce(_nullishCoalesce(de[t], () => (de[t.toLowerCase()])), () => (de[t.toUpperCase()]))}function In(t){let e=Wr(t);if(!e&&t.length>1&&t.endsWith("M")&&(e=Wr(t.slice(0,-1))),!e){let r=Object.keys(de).join(", ");throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Unknown futures variety: "${t}". Supported varieties: ${r}`)}let n=Gt[e];if(n===void 0)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`No market code found for exchange: ${e}`);return n}function Ts(t){let e=B(t),n=t.split(",");return{...e,openInterest:n.length>12?y(n[12]):null}}async function Vr(t,e,n={}){let{period:r="daily",startDate:o="19700101",endDate:i="20500101"}=n;z(r);let s=Dn(e),l=`${In(s)}.${e}`,c=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64",ut:N,klt:$(r),fqt:"0",secid:l,beg:o,end:i}),{klines:d,name:m,code:p}=await H(t,he,c);return d.length===0?[]:d.map(g=>({...Ts(g),code:p||e,name:m||""}))}async function Zr(t,e={}){let n=_nullishCoalesce(e.pageSize, () => (20)),r=[],o=0,i=0,s=1e3;do{let a=new URLSearchParams({orderBy:"dm",sort:"desc",pageSize:String(n),pageIndex:String(o),token:Te,field:"dm,sc,name,p,zsjd,zde,zdf,f152,o,h,l,zjsj,vol,wp,np,ccl",blockName:"callback"}),l=`${jt}?${a.toString()}`,c=await t.get(l,{responseType:"json"});if(!c||!Array.isArray(c.list))break;o===0&&(i=_nullishCoalesce(c.total, () => (0)));let d=c.list.map(Ss);if(r.push(...d),d.length===0)break;o++}while(r.length<i&&o<s);return r}function Ss(t){return{code:t.dm||"",name:t.name||"",price:y(String(t.p)),change:y(String(t.zde)),changePercent:y(String(t.zdf)),open:y(String(t.o)),high:y(String(t.h)),low:y(String(t.l)),prevSettle:y(String(t.zjsj)),volume:y(String(t.vol)),buyVolume:y(String(t.wp)),sellVolume:y(String(t.np)),openInterest:y(String(t.ccl))}}function Rs(t){let e=B(t),n=t.split(",");return{...e,openInterest:n.length>12?y(n[12]):null}}function Es(t){let e=t.match(/^([A-Z]+)/);if(!e)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid global futures symbol: "${t}". Expected format like HG00Y, CL2507`);return e[1]}async function Xr(t,e,n={}){let{period:r="daily",startDate:o="19700101",endDate:i="20500101"}=n;z(r);let s=n.marketCode;if(s===void 0){let p=Es(e);if(s=Qe[p],s===void 0){let g=Object.keys(Qe).join(", ");throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Unknown global futures variety: "${p}". Supported: ${g}. Or specify marketCode manually via options.`)}}let a=`${s}.${e}`,l=new URLSearchParams({fields1:"f1,f2,f3,f4,f5,f6",fields2:"f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64",ut:N,klt:$(r),fqt:"0",secid:a,beg:o,end:i}),{klines:c,name:d,code:m}=await H(t,he,l);return c.length===0?[]:c.map(p=>({...Rs(p),code:m||e,name:d||""}))}async function Jr(t,e={}){let{pageSize:n=2e4}=e,r=new URLSearchParams({orderBy:"zdf",sort:"desc",pageSize:String(n),pageIndex:"0",token:Te,field:"dm,sc,name,p,zsjd,zde,zdf,f152,vol,cje,ccl,xqj,syr,rz,zjsj,o"}),o=`${Xt}?${r.toString()}`,s=await _asyncOptionalChain([(await t.get(o,{responseType:"json"})), 'optionalAccess', async _127 => _127.list]);return Array.isArray(s)?s.map(a=>({code:String(_nullishCoalesce(a.dm, () => (""))),name:String(_nullishCoalesce(a.name, () => (""))),price:u(a.p),change:u(a.zde),changePercent:u(a.zdf),volume:u(a.vol),amount:u(a.cje),openInterest:u(a.ccl),strikePrice:u(a.xqj),remainDays:u(a.syr),dailyChange:u(a.rz),prevSettle:u(a.zjsj),open:u(a.o)})):[]}async function eo(t,e,n){let r=new URLSearchParams({type:"RPT_IF_BILLBOARD_TD",sty:"ALL",p:"1",ps:"200",source:"IFBILLBOARD",client:"WEB",ut:Y,filter:`(SECURITY_CODE="${e}")(TRADE_DATE='${n}')`}),o=`${Jt}?${r.toString()}`,s=await _asyncOptionalChain([(await t.get(o,{responseType:"json"})), 'optionalAccess', async _128 => _128.result, 'optionalAccess', async _129 => _129.data]);if(!Array.isArray(s))return[];function a(l){if(!l)return"";let c=String(l),d=c.match(/^(\d{4}-\d{2}-\d{2})/);return d?d[1]:c}return s.map(l=>({tradeType:String(_nullishCoalesce(l.TRADE_TYPE, () => (""))),date:a(l.TRADE_DATE),symbol:String(_nullishCoalesce(l.SECURITY_CODE, () => (""))),targetName:String(_nullishCoalesce(l.TARGET_NAME, () => (""))),memberName:String(_nullishCoalesce(l.MEMBER_NAME_ABBR, () => (""))),rank:_nullishCoalesce(u(l.MEMBER_RANK), () => (0)),sellVolume:u(l.SELL_VOLUME),sellVolumeChange:u(l.SELL_VOLUME_CHANGE),netSellVolume:u(l.NET_SELL_VOLUME),sellVolumeRatio:u(l.SELL_VOLUME_RATIO),buyVolume:u(l.BUY_VOLUME),buyVolumeChange:u(l.BUY_VOLUME_CHANGE),netBuyVolume:u(l.NET_BUY_VOLUME),buyVolumeRatio:u(l.BUY_VOLUME_RATIO),sellPosition:u(l.SELL_POSITION),sellPositionChange:u(l.SELL_POSITION_CHANGE),netSellPosition:u(l.NET_SELL_POSITION),sellPositionRatio:u(l.SELL_POSITION_RATIO),buyPosition:u(l.BUY_POSITION),buyPositionChange:u(l.BUY_POSITION_CHANGE),netBuyPosition:u(l.NET_BUY_POSITION),buyPositionRatio:u(l.BUY_POSITION_RATIO)}))}var _s={gold:"EMI00069026",silver:"EMI00069027"};function to(t){if(!t)return"";let e=String(t),n=e.match(/^(\d{4}-\d{2}-\d{2})/);return n?n[1]:e}async function no(t){return D(t,{reportName:"RPT_FUTU_POSITIONCODE",columns:"TRADE_MARKET_CODE,TRADE_CODE,TRADE_TYPE",filter:'(IS_MAINCODE="1")',pageSize:500,fetchAllPages:!1},e=>({code:String(_nullishCoalesce(e.TRADE_CODE, () => (""))),name:String(_nullishCoalesce(e.TRADE_TYPE, () => (""))),marketCode:String(_nullishCoalesce(e.TRADE_MARKET_CODE, () => ("")))}))}async function ro(t,e,n={}){let{startDate:r="2020-10-28",pageSize:o=500}=n,i=e.toUpperCase();return D(t,{reportName:"RPT_FUTU_STOCKDATA",columns:"SECURITY_CODE,TRADE_DATE,ON_WARRANT_NUM,ADDCHANGE",filter:`(SECURITY_CODE="${i}")(TRADE_DATE>='${k(r)}')`,pageSize:o,sortColumns:"TRADE_DATE",sortTypes:"-1"},s=>({code:String(_nullishCoalesce(s.SECURITY_CODE, () => (e))),date:to(s.TRADE_DATE),inventory:u(s.ON_WARRANT_NUM),change:u(s.ADDCHANGE)}))}async function oo(t,e,n={}){let r=_s[e];if(!r)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid COMEX symbol: "${e}". Must be "gold" or "silver".`);let{pageSize:o=500}=n,i={gold:"\u9EC4\u91D1",silver:"\u767D\u94F6"};return D(t,{reportName:"RPT_FUTUOPT_GOLDSIL",sortColumns:"REPORT_DATE",sortTypes:"-1",pageSize:o,filter:`(INDICATOR_ID1="${r}")(@STORAGE_TON<>"NULL")`},s=>({date:to(s.REPORT_DATE),name:_nullishCoalesce(i[e], () => (e)),storageTon:u(s.STORAGE_TON),storageOunce:u(s.STORAGE_OUNCE)}))}var io={daily:"101",weekly:"102",monthly:"103"},bn="f51,f52,f53,f54,f55,f56,f57,f58,f59,f60,f61,f62,f63,f64,f65";function so(t){let e=t.split(",");return{date:_nullishCoalesce(e[0], () => ("")),mainNetInflow:y(e[1]),smallNetInflow:y(e[2]),mediumNetInflow:y(e[3]),largeNetInflow:y(e[4]),superLargeNetInflow:y(e[5]),mainNetInflowPercent:y(e[6]),smallNetInflowPercent:y(e[7]),mediumNetInflowPercent:y(e[8]),largeNetInflowPercent:y(e[9]),superLargeNetInflowPercent:y(e[10]),close:y(e[11]),changePercent:y(e[12])}}function Cs(t){let e=t.split(",");return{date:_nullishCoalesce(e[0], () => ("")),mainNetInflow:y(e[1]),smallNetInflow:y(e[2]),mediumNetInflow:y(e[3]),largeNetInflow:y(e[4]),superLargeNetInflow:y(e[5]),mainNetInflowPercent:y(e[6]),smallNetInflowPercent:y(e[7]),mediumNetInflowPercent:y(e[8]),largeNetInflowPercent:y(e[9]),superLargeNetInflowPercent:y(e[10]),shClose:y(e[11]),shChangePercent:y(e[12]),szClose:y(e[13]),szChangePercent:y(e[14])}}var ao={today:{fid:"f62",fields:"f12,f14,f2,f3,f62,f184,f66,f69,f72,f75,f78,f81,f84,f87,f124",changePercentField:"f3",mainNet:"f62",mainPct:"f184",superLargeNet:"f66",superLargePct:"f69",largeNet:"f72",largePct:"f75",mediumNet:"f78",mediumPct:"f81",smallNet:"f84",smallPct:"f87"},"3day":{fid:"f267",fields:"f12,f14,f2,f127,f267,f268,f269,f270,f271,f272,f273,f274,f275,f276,f124",changePercentField:"f127",mainNet:"f267",mainPct:"f268",superLargeNet:"f269",superLargePct:"f270",largeNet:"f271",largePct:"f272",mediumNet:"f273",mediumPct:"f274",smallNet:"f275",smallPct:"f276"},"5day":{fid:"f164",fields:"f12,f14,f2,f109,f164,f165,f166,f167,f168,f169,f170,f171,f172,f173,f124",changePercentField:"f109",mainNet:"f164",mainPct:"f165",superLargeNet:"f166",superLargePct:"f167",largeNet:"f168",largePct:"f169",mediumNet:"f170",mediumPct:"f171",smallNet:"f172",smallPct:"f173"},"10day":{fid:"f174",fields:"f12,f14,f2,f160,f174,f175,f176,f177,f178,f179,f180,f181,f182,f183,f124",changePercentField:"f160",mainNet:"f174",mainPct:"f175",superLargeNet:"f176",superLargePct:"f177",largeNet:"f178",largePct:"f179",mediumNet:"f180",mediumPct:"f181",smallNet:"f182",smallPct:"f183"}},As={industry:"m:90+t:2",concept:"m:90+t:3",region:"m:90+t:1"},Os="m:0+t:6+f:!2,m:0+t:13+f:!2,m:0+t:80+f:!2,m:1+t:2+f:!2,m:1+t:23+f:!2,m:0+t:7+f:!2,m:1+t:3+f:!2";async function uo(t,e,n=100,r=1e3){let o=[],i=1,s=0;do{let a=new URLSearchParams({...e,pn:String(i),pz:String(n)}),l=`${$t}?${a.toString()}`,d=await _asyncOptionalChain([(await t.get(l,{responseType:"json"})), 'optionalAccess', async _130 => _130.data]);if(!d||!Array.isArray(d.diff)||(i===1&&(s=_nullishCoalesce(d.total, () => (0))),o.push(...d.diff),o.length>=s||d.diff.length<n))break;i++}while(o.length<s&&i<=r);return i>r&&o.length<s&&console.warn(`[stock-sdk] fetchClistAllPages truncated at maxPages=${r} (server reports total=${s}, fetched=${o.length}). Pass a larger \`maxPages\` to fetch the full dataset.`),o}async function lo(t,e,n={}){let{period:r="daily"}=n,o=io[r];if(!o)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid period: ${r}. Must be daily/weekly/monthly.`);let i;try{i=_chunkT5CH7H3Xcjs.e.call(void 0, e,{market:"CN"})}catch(m){let p=e.includes(".")?e.slice(e.indexOf(".")+1):e;throw m instanceof _chunk4Q7UQ5Q3cjs.f&&_chunkT5CH7H3Xcjs.d.call(void 0, p)?new (0, _chunk4Q7UQ5Q3cjs.e)(`Individual fund flow is not available for index symbols: ${e}`):m}if(i.assetType==="index"&&_chunkT5CH7H3Xcjs.d.call(void 0, i.code))throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Individual fund flow is not available for index symbols: ${e}`);let s=_chunkT5CH7H3Xcjs.i.call(void 0, i),a=new URLSearchParams({lmt:"0",klt:o,secid:s,fields1:"f1,f2,f3,f7",fields2:bn,ut:Y}),l=`${ye}?${a.toString()}`,d=await _asyncOptionalChain([(await t.get(l,{responseType:"json"})), 'optionalAccess', async _131 => _131.data, 'optionalAccess', async _132 => _132.klines]);return!Array.isArray(d)||d.length===0?[]:d.map(so)}async function co(t){let e=new URLSearchParams({lmt:"0",klt:"101",secid:"1.000001",secid2:"0.399001",fields1:"f1,f2,f3,f7",fields2:bn,ut:Y}),n=`${ye}?${e.toString()}`,o=await _asyncOptionalChain([(await t.get(n,{responseType:"json"})), 'optionalAccess', async _133 => _133.data, 'optionalAccess', async _134 => _134.klines]);return!Array.isArray(o)||o.length===0?[]:o.map(Cs)}async function po(t,e={}){let{indicator:n="today"}=e,r=ao[n];if(!r)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid indicator: ${n}.`);let o={fid:r.fid,po:"1",np:"1",fltt:"2",invt:"2",ut:Y,fs:Os,fields:r.fields};return(await uo(t,o,100)).map(s=>({code:String(_nullishCoalesce(s.f12, () => (""))),name:String(_nullishCoalesce(s.f14, () => (""))),price:u(s.f2),changePercent:u(s[r.changePercentField]),mainNetInflow:u(s[r.mainNet]),mainNetInflowPercent:u(s[r.mainPct]),superLargeNetInflow:u(s[r.superLargeNet]),superLargeNetInflowPercent:u(s[r.superLargePct]),largeNetInflow:u(s[r.largeNet]),largeNetInflowPercent:u(s[r.largePct]),mediumNetInflow:u(s[r.mediumNet]),mediumNetInflowPercent:u(s[r.mediumPct]),smallNetInflow:u(s[r.smallNet]),smallNetInflowPercent:u(s[r.smallPct])}))}async function mo(t,e={}){let{indicator:n="today",sectorType:r="industry"}=e,o=ao[n];if(!o)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid indicator: ${n}.`);let i=As[r];if(!i)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid sectorType: ${r}.`);let s=`${o.fields},f204,f205`,a={fid:o.fid,po:"1",np:"1",fltt:"2",invt:"2",ut:Y,fs:i,fields:s};return(await uo(t,a,100)).map(c=>({code:String(_nullishCoalesce(c.f12, () => (""))),name:String(_nullishCoalesce(c.f14, () => (""))),changePercent:u(c[o.changePercentField]),mainNetInflow:u(c[o.mainNet]),mainNetInflowPercent:u(c[o.mainPct]),superLargeNetInflow:u(c[o.superLargeNet]),largeNetInflow:u(c[o.largeNet]),mediumNetInflow:u(c[o.mediumNet]),smallNetInflow:u(c[o.smallNet]),topStockCode:c.f204?String(c.f204):void 0,topStockName:c.f205?String(c.f205):void 0}))}async function go(t,e,n={}){let{period:r="daily"}=n,o=io[r];if(!o)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid period: ${r}. Must be daily/weekly/monthly.`);let i=e.includes(".")?e:`90.${e}`,s=new URLSearchParams({lmt:"0",klt:o,secid:i,fields1:"f1,f2,f3,f7",fields2:bn,ut:Y}),a=`${ye}?${s.toString()}`,c=await _asyncOptionalChain([(await t.get(a,{responseType:"json"})), 'optionalAccess', async _135 => _135.data, 'optionalAccess', async _136 => _136.klines]);return!Array.isArray(c)||c.length===0?[]:c.map(so)}var Ps={today:"1","3day":"3","5day":"5","10day":"10",month:"M",quarter:"Q",year:"Y"},Ds={shanghai:"001",shenzhen:"003"};function fo(t,e){let n=t.split(",");return{date:e,time:_nullishCoalesce(n[0], () => ("")),shanghaiNetInflow:y(n[1]),shenzhenNetInflow:y(n[3]),totalNetInflow:y(n[5])}}async function yo(t,e="north"){qe(e);let n=new URLSearchParams({fields1:"f1,f2,f3,f4",fields2:"f51,f54,f52,f58,f53,f62,f56,f57,f60,f61",ut:Y}),r=`${Yt}?${n.toString()}`,i=await _asyncOptionalChain([(await t.get(r,{responseType:"json"})), 'optionalAccess', async _137 => _137.data]);if(!i)return[];if(e==="south"){let l=_nullishCoalesce(i.n2s, () => ([])),c=_nullishCoalesce(i.n2sDate, () => (""));return l.map(d=>fo(d,k(c)))}let s=_nullishCoalesce(i.s2n, () => ([])),a=_nullishCoalesce(i.s2nDate, () => (""));return s.map(l=>fo(l,k(a)))}async function ho(t){return D(t,{reportName:"RPT_MUTUAL_QUOTA",columns:"TRADE_DATE,MUTUAL_TYPE,BOARD_TYPE,MUTUAL_TYPE_NAME,FUNDS_DIRECTION,INDEX_CODE,INDEX_NAME,BOARD_CODE",quoteColumns:"status~07~BOARD_CODE,dayNetAmtIn~07~BOARD_CODE,dayAmtRemain~07~BOARD_CODE,dayAmtThreshold~07~BOARD_CODE,f104~07~BOARD_CODE,f105~07~BOARD_CODE,f106~07~BOARD_CODE,f3~03~INDEX_CODE~INDEX_f3,netBuyAmt~07~BOARD_CODE",quoteType:"0",sortColumns:"MUTUAL_TYPE",sortTypes:"1",pageSize:2e3,fetchAllPages:!1},e=>({date:F(e.TRADE_DATE),type:String(_nullishCoalesce(e.MUTUAL_TYPE, () => (""))),boardName:String(_nullishCoalesce(e.MUTUAL_TYPE_NAME, () => (""))),direction:String(_nullishCoalesce(e.FUNDS_DIRECTION, () => (""))),status:String(_nullishCoalesce(e.status, () => (""))),netBuyAmount:u(e.netBuyAmt),netInflow:u(e.dayNetAmtIn),remainAmount:u(e.dayAmtRemain),upCount:u(e.f104),flatCount:u(e.f106),downCount:u(e.f105),indexCode:String(_nullishCoalesce(e.INDEX_CODE, () => (""))),indexName:String(_nullishCoalesce(e.INDEX_NAME, () => (""))),indexChangePercent:u(e.INDEX_f3)}))}async function To(t,e={}){let{market:n="all",period:r="5day",date:o}=e,i=Ps[r];if(!i)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid period: ${r}.`);let s=[`(INTERVAL_TYPE="${i}")`];return o&&s.push(`(TRADE_DATE='${o}')`),n!=="all"&&s.push(`(MUTUAL_TYPE="${Ds[n]}")`),D(t,{reportName:"RPT_MUTUAL_STOCK_NORTHSTA",columns:"ALL",sortColumns:"ADD_MARKET_CAP",sortTypes:"-1",pageSize:500,filter:s.join("")},a=>({date:F(a.TRADE_DATE),code:String(_nullishCoalesce(a.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(_nullishCoalesce(a.SECURITY_NAME, () => (a.SECURITY_NAME_ABBR)), () => (""))),close:u(a.CLOSE_PRICE),changePercent:u(a.CHANGE_RATE),holdShares:u(a.HOLD_SHARES),holdMarketValue:u(a.HOLD_MARKET_CAP),holdRatioFloat:u(a.HOLD_RATIO),holdRatioTotal:u(a.A_SHARES_RATIO),addShares:u(a.ADD_SHARES),addMarketValue:u(a.ADD_MARKET_CAP),addMarketValuePercent:u(a.ADD_MARKET_CAP_PROPORTION),sector:String(_nullishCoalesce(a.BOARD_NAME, () => ("")))}))}async function So(t,e="north",n={}){qe(e);let{startDate:r,endDate:o}=n,i=[e==="north"?'(BOARD_TYPE="1")':'(BOARD_TYPE="0")'];return r&&i.push(`(TRADE_DATE>='${k(r)}')`),o&&i.push(`(TRADE_DATE<='${k(o)}')`),D(t,{reportName:"RPT_MUTUAL_DEAL_HISTORY",columns:"ALL",sortColumns:"TRADE_DATE",sortTypes:"-1",pageSize:500,filter:i.join("")},s=>({date:F(s.TRADE_DATE),netBuyAmount:u(s.NET_DEAL_AMT),buyAmount:u(s.BUY_AMT),sellAmount:u(s.SELL_AMT),accNetBuyAmount:u(s.ACCUM_DEAL_AMT),netInflow:u(s.FUND_INFLOW),remainAmount:u(s.QUOTA_BALANCE),topStockCode:s.LEAD_STOCKS_CODE?String(s.LEAD_STOCKS_CODE):null,topStockName:s.LEAD_STOCKS_NAME?String(s.LEAD_STOCKS_NAME):null,topStockChangePercent:u(s.LS_CHANGE_RATE)}))}async function Ro(t,e,n={}){let r=e.replace(/^(sh|sz|bj)/i,""),{startDate:o,endDate:i}=n,s=[`(SECURITY_CODE="${r}")`];return o&&s.push(`(TRADE_DATE>='${k(o)}')`),i&&s.push(`(TRADE_DATE<='${k(i)}')`),D(t,{reportName:"RPT_MUTUAL_HOLDSTOCKNORTH_STA",columns:"ALL",sortColumns:"TRADE_DATE",sortTypes:"-1",pageSize:500,filter:s.join("")},a=>({date:F(a.TRADE_DATE),holdShares:u(a.HOLD_SHARES),holdMarketValue:u(a.HOLD_MARKET_CAP),holdRatioFloat:u(a.HOLD_RATIO),holdRatioTotal:u(a.A_SHARES_RATIO),close:u(a.CLOSE_PRICE),changePercent:u(a.CHANGE_RATE)}))}var Is={zt:{path:"/getTopicZTPool",sort:"fbt:asc"},yesterday:{path:"/getYesterdayZTPool",sort:"zs:desc"},strong:{path:"/getTopicQSPool",sort:"zdp:desc"},sub_new:{path:"/getTopicCXPool",sort:"ods:asc"},broken:{path:"/getTopicZBPool",sort:"fbt:asc"},dt:{path:"/getTopicDTPool",sort:"fund:asc"}},kn={rocket_launch:"8201",quick_rebound:"8202",large_buy:"8193",limit_up_seal:"4",limit_down_open:"32",big_buy_order:"64",auction_up:"8207",high_open_5d:"8209",gap_up:"8211",high_60d:"8213",surge_60d:"8215",accelerate_down:"8204",high_dive:"8203",large_sell:"8194",limit_down_seal:"8",limit_up_open:"16",big_sell_order:"128",auction_down:"8208",low_open_5d:"8210",gap_down:"8212",low_60d:"8214",drop_60d:"8216"},_o=Object.fromEntries(Object.entries(kn).map(([t,e])=>[e,t])),Co={8201:"\u706B\u7BAD\u53D1\u5C04",8202:"\u5FEB\u901F\u53CD\u5F39",8193:"\u5927\u7B14\u4E70\u5165",4:"\u5C01\u6DA8\u505C\u677F",32:"\u6253\u5F00\u8DCC\u505C\u677F",64:"\u6709\u5927\u4E70\u76D8",8207:"\u7ADE\u4EF7\u4E0A\u6DA8",8209:"\u9AD8\u5F005\u65E5\u7EBF",8211:"\u5411\u4E0A\u7F3A\u53E3",8213:"60\u65E5\u65B0\u9AD8",8215:"60\u65E5\u5927\u5E45\u4E0A\u6DA8",8204:"\u52A0\u901F\u4E0B\u8DCC",8203:"\u9AD8\u53F0\u8DF3\u6C34",8194:"\u5927\u7B14\u5356\u51FA",8:"\u5C01\u8DCC\u505C\u677F",16:"\u6253\u5F00\u6DA8\u505C\u677F",128:"\u6709\u5927\u5356\u76D8",8208:"\u7ADE\u4EF7\u4E0B\u8DCC",8210:"\u4F4E\u5F005\u65E5\u7EBF",8212:"\u5411\u4E0B\u7F3A\u53E3",8214:"60\u65E5\u65B0\u4F4E",8216:"60\u65E5\u5927\u5E45\u4E0B\u8DCC"};function st(t){if(t==null)return"";let e=String(t).padStart(6,"0");return`${e.slice(0,2)}:${e.slice(2,4)}:${e.slice(4,6)}`}function bs(t){if(!t||typeof t!="object")return"";let e=t;return`${_nullishCoalesce(e.days, () => (""))}/${_nullishCoalesce(e.ct, () => (""))}`}function ks(t){let e=u(t.p),n=u(t.tp);return{code:String(_nullishCoalesce(_nullishCoalesce(t.c, () => (t.m)), () => (""))),name:String(_nullishCoalesce(t.n, () => (""))),price:e!==null?e/1e3:null,changePercent:u(t.zdp),limitPrice:n!==null?n/1e3:null,amount:u(_nullishCoalesce(t.amount, () => (t.zb))),floatMarketValue:u(t.ltsz),totalMarketValue:u(t.tshare),turnoverRate:u(t.hs),continuousBoardCount:u(t.lbc),firstBoardTime:t.fbt!==void 0&&t.fbt!==null?st(t.fbt):null,lastBoardTime:t.lbt!==void 0&&t.lbt!==null?st(t.lbt):null,boardAmount:u(t.fund),sealAmount:u(t.fund),failedCount:u(t.zbc),industry:String(_nullishCoalesce(t.hybk, () => (""))),ztStatistics:bs(t.zttj),amplitude:u(t.zf),speed:u(t.zs)}}function Ao(t){if(t)return/^\d{8}$/.test(t)?t:t.replace(/-/g,"")}function Oo(){return w(E.CN).replace(/-/g,"")}async function Po(t,e="zt",n){let r=Is[e];if(!r)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid ZTPool type: ${e}.`);let o=_nullishCoalesce(Ao(n), () => (Oo())),i=new URLSearchParams({ut:N,dpt:"wz.ztzt",Pageindex:"0",pagesize:"10000",sort:r.sort,date:o}),s=`${ce}${r.path}?${i.toString()}`,l=await _asyncOptionalChain([(await t.get(s,{responseType:"json"})), 'optionalAccess', async _138 => _138.data, 'optionalAccess', async _139 => _139.pool]);return!Array.isArray(l)||l.length===0?[]:l.map(ks)}var Eo=5e3,Ms=10;async function Do(t,e="large_buy"){let n=e==="all"?Object.keys(kn):Array.isArray(e)?e:[e];if(n.length===0)throw new (0, _chunk4Q7UQ5Q3cjs.e)("StockChangeType \u6570\u7EC4\u4E0D\u80FD\u4E3A\u7A7A\u3002");let r=n.map(a=>{let l=kn[a];if(!l)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid StockChangeType: ${a}.`);return l}),o=r.length===1?r[0]:"",i=[],s=null;for(let a=0;a<Ms;a++){let l=new URLSearchParams({pageindex:String(a),pagesize:String(Eo),ut:N,dpt:"wzchanges"}),c=`${ce}/getAllStockChanges?type=${r.join(",")}&${l.toString()}`,d=await t.get(c,{responseType:"json"}),m=u(_optionalChain([d, 'optionalAccess', _140 => _140.data, 'optionalAccess', _141 => _141.tc]));m!==null&&(s=m);let p=_optionalChain([d, 'optionalAccess', _142 => _142.data, 'optionalAccess', _143 => _143.allstock]);if(!Array.isArray(p)||p.length===0)break;for(let g of p){let S=String(_nullishCoalesce(g.t, () => (o)));i.push({time:st(g.tm),code:String(_nullishCoalesce(g.c, () => (""))),name:String(_nullishCoalesce(g.n, () => (""))),typeCode:S,changeType:_nullishCoalesce(_o[S], () => ("unknown")),changeTypeLabel:_nullishCoalesce(Co[S], () => ("")),info:String(_nullishCoalesce(g.i, () => ("")))})}if(p.length<Eo||s!==null&&i.length>=s)break}return i}function Mn(t){let e=_chunkT5CH7H3Xcjs.e.call(void 0, t,{market:"CN"});if(e.assetType!=="stock")throw new (0, _chunk4Q7UQ5Q3cjs.e)(`\u4E2A\u80A1\u76D8\u53E3\u5F02\u52A8\u4EC5\u652F\u6301 A \u80A1\u4E2A\u80A1,\u6536\u5230 assetType='${e.assetType}'(symbol=${t})`,{argument:"symbol",value:t,assetType:e.assetType});return e}async function Io(t,e,n){let r=Mn(e),[o,i]=_chunkT5CH7H3Xcjs.i.call(void 0, r).split("."),s=_nullishCoalesce(Ao(n), () => (Oo())),a=k(s),l=new URLSearchParams({ut:N,dpt:"wzchanges",code:i,market:o,date:s}),c=`${ce}/getStockChanges?${l.toString()}`,m=await _asyncOptionalChain([(await t.get(c,{responseType:"json"})), 'optionalAccess', async _144 => _144.data]);if(!m)return{date:a,available:!1,code:r.code,name:"",changes:[]};let g=(Array.isArray(m.data)?m.data:[]).map(h=>{let C=String(_nullishCoalesce(h.t, () => (""))),I=u(h.p);return{time:st(h.tm),typeCode:C,changeType:_nullishCoalesce(_o[C], () => ("unknown")),changeTypeLabel:_nullishCoalesce(Co[C], () => ("")),price:I!==null?I/1e3:null,changePercent:u(h.u),info:String(_nullishCoalesce(h.i, () => (""))),v:u(h.v)}}),S=String(_nullishCoalesce(m.d, () => ("")));return{date:/^\d{8}$/.test(S)?k(S):a,available:!0,code:String(_nullishCoalesce(m.c, () => (r.code))),name:String(_nullishCoalesce(m.n, () => (""))),changes:g}}async function bo(t){let e=new URLSearchParams({ut:N,dpt:"wzchanges",pageindex:"0",pagesize:"5000"}),n=`${ce}/getAllBKChanges?${e.toString()}`,o=await _asyncOptionalChain([(await t.get(n,{responseType:"json"})), 'optionalAccess', async _145 => _145.data, 'optionalAccess', async _146 => _146.allbk]);return!Array.isArray(o)||o.length===0?[]:o.map(i=>{let s=_nullishCoalesce(i.ms, () => ({})),a=s.m===0?"\u5927\u7B14\u4E70\u5165":s.m===1?"\u5927\u7B14\u5356\u51FA":"",l={},c=_nullishCoalesce(i.bkdf, () => (i.bkdfdis));if(c&&typeof c=="object")for(let[d,m]of Object.entries(c))l[d]=Number(m)||0;return{name:String(_nullishCoalesce(i.bkn, () => (""))),changePercent:u(i.bkz),mainNetInflow:u(i.bkj),totalChangeCount:u(i.bkc),topStockCode:String(_nullishCoalesce(s.c, () => (""))),topStockName:String(_nullishCoalesce(s.n, () => (""))),topStockDirection:a,changeTypeDistribution:l}})}var ko={"1month":"01","3month":"02","6month":"03","1year":"04"};async function Mo(t,e){let n=k(e.startDate),r=k(e.endDate);return D(t,{reportName:"RPT_DAILYBILLBOARD_DETAILSNEW",columns:"SECURITY_CODE,SECUCODE,SECURITY_NAME_ABBR,TRADE_DATE,EXPLAIN,CLOSE_PRICE,CHANGE_RATE,BILLBOARD_NET_AMT,BILLBOARD_BUY_AMT,BILLBOARD_SELL_AMT,BILLBOARD_DEAL_AMT,ACCUM_AMOUNT,DEAL_NET_RATIO,DEAL_AMOUNT_RATIO,TURNOVERRATE,FREE_MARKET_CAP,EXPLANATION,D1_CLOSE_ADJCHRATE,D2_CLOSE_ADJCHRATE,D5_CLOSE_ADJCHRATE,D10_CLOSE_ADJCHRATE",sortColumns:"SECURITY_CODE,TRADE_DATE",sortTypes:"1,-1",pageSize:5e3,filter:`(TRADE_DATE<='${r}')(TRADE_DATE>='${n}')`},o=>({code:String(_nullishCoalesce(o.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(o.SECURITY_NAME_ABBR, () => (""))),date:F(o.TRADE_DATE),close:u(o.CLOSE_PRICE),changePercent:u(o.CHANGE_RATE),netBuyAmount:u(o.BILLBOARD_NET_AMT),buyAmount:u(o.BILLBOARD_BUY_AMT),sellAmount:u(o.BILLBOARD_SELL_AMT),dealAmount:u(o.BILLBOARD_DEAL_AMT),totalAmount:u(o.ACCUM_AMOUNT),netBuyRatio:u(o.DEAL_NET_RATIO),dealAmountRatio:u(o.DEAL_AMOUNT_RATIO),turnoverRate:u(o.TURNOVERRATE),floatMarketValue:u(o.FREE_MARKET_CAP),reason:String(_nullishCoalesce(_nullishCoalesce(o.EXPLANATION, () => (o.EXPLAIN)), () => (""))),afterChange1d:u(o.D1_CLOSE_ADJCHRATE),afterChange2d:u(o.D2_CLOSE_ADJCHRATE),afterChange5d:u(o.D5_CLOSE_ADJCHRATE),afterChange10d:u(o.D10_CLOSE_ADJCHRATE)}))}async function No(t,e="1month"){let n=ko[e];if(!n)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid period: ${e}.`);return D(t,{reportName:"RPT_BILLBOARD_TRADEALL",columns:"ALL",sortColumns:"BILLBOARD_TIMES,LATEST_TDATE,SECURITY_CODE",sortTypes:"-1,-1,1",pageSize:5e3,filter:`(STATISTICS_CYCLE="${n}")`},r=>({code:String(_nullishCoalesce(r.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(r.SECURITY_NAME_ABBR, () => (""))),latestDate:F(r.LATEST_TDATE),close:u(r.CLOSE_PRICE),changePercent:u(r.CHANGE_RATE),count:u(r.BILLBOARD_TIMES),totalBuyAmount:u(r.BILLBOARD_BUY_AMT),totalSellAmount:u(r.BILLBOARD_SELL_AMT),totalNetAmount:u(r.BILLBOARD_NET_AMT),totalDealAmount:u(r.BILLBOARD_DEAL_AMT),buyOrgCount:u(r.ORG_BUY_TIMES),sellOrgCount:u(r.ORG_SELL_TIMES)}))}async function Lo(t,e){let n=k(e.startDate),r=k(e.endDate);return D(t,{reportName:"RPT_ORGANIZATION_TRADE_DETAILS",columns:"ALL",sortColumns:"TRADE_DATE,SECURITY_CODE",sortTypes:"-1,1",pageSize:5e3,filter:`(TRADE_DATE<='${r}')(TRADE_DATE>='${n}')`},o=>({code:String(_nullishCoalesce(o.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(o.SECURITY_NAME_ABBR, () => (""))),date:F(o.TRADE_DATE),close:u(o.CLOSE_PRICE),changePercent:u(o.CHANGE_RATE),buyOrgCount:u(o.BUY_TIMES),sellOrgCount:u(o.SELL_TIMES),orgBuyAmount:u(o.BUY_AMT),orgSellAmount:u(o.SELL_AMT),orgNetAmount:u(o.NET_AMT)}))}async function Fo(t,e="1month"){let n=ko[e];if(!n)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Invalid period: ${e}.`);return D(t,{reportName:"RPT_BILLBOARD_TRADEDETAILS",columns:"ALL",sortColumns:"TOTAL_BUYER_SALESTIMES",sortTypes:"-1",pageSize:5e3,filter:`(STATISTICS_CYCLE="${n}")`},r=>({code:String(_nullishCoalesce(r.OPERATEDEPT_CODE, () => (""))),name:String(_nullishCoalesce(r.OPERATEDEPT_NAME, () => (""))),totalBuyAmount:u(_nullishCoalesce(r.TOTAL_BUYAMT, () => (r.BUY_AMT))),totalSellAmount:u(_nullishCoalesce(r.TOTAL_SELLAMT, () => (r.SELL_AMT))),buyCount:u(_nullishCoalesce(r.TOTAL_BUYER_SALESTIMES, () => (r.BUY_TIMES))),sellCount:u(_nullishCoalesce(r.TOTAL_SELLER_SALESTIMES, () => (r.SELL_TIMES))),totalCount:u(r.TOTAL_TIMES)}))}async function vo(t,e,n){let r=e.replace(/^(sh|sz|bj)/i,""),o=k(n),i=`(SECURITY_CODE="${r}")(TRADE_DATE='${o}')`,[s,a]=await Promise.all([D(t,{reportName:"RPT_BILLBOARD_DAILYDETAILSBUY",columns:"ALL",sortColumns:"BUY_AMT_REAL",sortTypes:"-1",pageSize:100,filter:i},(l,c)=>({rank:_nullishCoalesce(u(l.RANK), () => (c+1)),branchName:String(_nullishCoalesce(l.OPERATEDEPT_NAME, () => (""))),buyAmount:u(_nullishCoalesce(l.BUY_AMT_REAL, () => (l.BUY_AMT))),buyAmountRatio:u(_nullishCoalesce(l.BUY_RATIO_TOTAL, () => (l.BUY_AMT_RATIO))),sellAmount:u(_nullishCoalesce(l.SELL_AMT_REAL, () => (l.SELL_AMT))),sellAmountRatio:u(_nullishCoalesce(l.SELL_RATIO_TOTAL, () => (l.SELL_AMT_RATIO))),netAmount:u(l.NET_AMT),side:"buy"})),D(t,{reportName:"RPT_BILLBOARD_DAILYDETAILSSELL",columns:"ALL",sortColumns:"SELL_AMT_REAL",sortTypes:"-1",pageSize:100,filter:i},(l,c)=>({rank:_nullishCoalesce(u(l.RANK), () => (c+1)),branchName:String(_nullishCoalesce(l.OPERATEDEPT_NAME, () => (""))),buyAmount:u(_nullishCoalesce(l.BUY_AMT_REAL, () => (l.BUY_AMT))),buyAmountRatio:u(_nullishCoalesce(l.BUY_RATIO_TOTAL, () => (l.BUY_AMT_RATIO))),sellAmount:u(_nullishCoalesce(l.SELL_AMT_REAL, () => (l.SELL_AMT))),sellAmountRatio:u(_nullishCoalesce(l.SELL_RATIO_TOTAL, () => (l.SELL_AMT_RATIO))),netAmount:u(l.NET_AMT),side:"sell"}))]);return[...s,...a]}function wo(t){if(!t)return"";let e=t.startDate?k(t.startDate):void 0,n=t.endDate?k(t.endDate):void 0,r=[];return e&&r.push(`(TRADE_DATE>='${e}')`),n&&r.push(`(TRADE_DATE<='${n}')`),r.join("")}async function xo(t){return D(t,{reportName:"PRT_BLOCKTRADE_MARKET_STA",columns:"ALL",sortColumns:"TRADE_DATE",sortTypes:"-1",pageSize:500},e=>({date:F(e.TRADE_DATE),shClose:u(_nullishCoalesce(e.CLOSE_PRICE, () => (e.SH_CLOSE_PRICE))),shChangePercent:u(_nullishCoalesce(e.CHANGE_RATE, () => (e.SH_CHANGE_RATE))),totalAmount:u(_nullishCoalesce(e.TURNOVER, () => (e.TOTAL_AMOUNT))),premiumAmount:u(_nullishCoalesce(e.PREMIUM_TURNOVER, () => (e.PREMIUM_AMOUNT))),premiumRatio:u(e.PREMIUM_RATIO),discountAmount:u(_nullishCoalesce(e.DISCOUNT_TURNOVER, () => (e.DISCOUNT_AMOUNT))),discountRatio:u(e.DISCOUNT_RATIO)}))}async function Uo(t,e={}){let n=wo(e);return D(t,{reportName:"RPT_BLOCK_TRADE_DETAIL",columns:"ALL",sortColumns:"TRADE_DATE,SECURITY_CODE",sortTypes:"-1,1",pageSize:5e3,filter:n||void 0},r=>({code:String(_nullishCoalesce(r.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(r.SECURITY_NAME_ABBR, () => (""))),date:F(r.TRADE_DATE),close:u(r.CLOSE_PRICE),changePercent:u(r.CHANGE_RATE),dealPrice:u(_nullishCoalesce(r.DEAL_PRICE, () => (r.PRICE))),dealVolume:u(_nullishCoalesce(r.DEAL_VOLUME, () => (r.VOLUME))),dealAmount:u(_nullishCoalesce(r.DEAL_AMT, () => (r.TURNOVER))),premiumRate:u(_nullishCoalesce(r.PREMIUM_RATIO, () => (r.PREMIUM_RATE))),buyBranch:String(_nullishCoalesce(_nullishCoalesce(r.BUYER_DEPT, () => (r.BUYER_OPERATEDEPT_NAME)), () => (""))),sellBranch:String(_nullishCoalesce(_nullishCoalesce(r.SELLER_DEPT, () => (r.SELLER_OPERATEDEPT_NAME)), () => ("")))}))}async function Ko(t,e={}){let n=wo(e);return D(t,{reportName:"RPT_BLOCK_TRADE_STA",columns:"ALL",sortColumns:"TRADE_DATE,DEAL_AMT",sortTypes:"-1,-1",pageSize:5e3,filter:n||void 0},r=>({code:String(_nullishCoalesce(r.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(r.SECURITY_NAME_ABBR, () => (""))),date:F(r.TRADE_DATE),changePercent:u(r.CHANGE_RATE),close:u(r.CLOSE_PRICE),dealCount:u(_nullishCoalesce(r.DEAL_NUM, () => (r.DEAL_COUNT))),dealTotalAmount:u(_nullishCoalesce(r.DEAL_AMT, () => (r.TOTAL_AMOUNT))),dealTotalVolume:u(_nullishCoalesce(r.DEAL_VOLUME, () => (r.TOTAL_VOLUME))),premiumAmount:u(_nullishCoalesce(r.PREMIUM_AMT, () => (r.PREMIUM_AMOUNT))),discountAmount:u(_nullishCoalesce(r.DISCOUNT_AMT, () => (r.DISCOUNT_AMOUNT)))}))}async function Bo(t){return D(t,{reportName:"RPTA_WEB_MARGIN_DAILYTRADE",columns:"ALL",sortColumns:"STATISTICS_DATE",sortTypes:"-1",pageSize:500},e=>({date:F(_nullishCoalesce(e.STATISTICS_DATE, () => (e.TRADE_DATE))),finBalance:u(e.FIN_BALANCE),loanBalance:u(e.LOAN_BALANCE),finBuyAmount:u(e.FIN_BUY_AMT),loanSellAmount:u(e.LOAN_SELL_AMT),investorCount:u(_nullishCoalesce(e.OPERATE_INVESTOR_NUM, () => (e.INVESTOR_NUM))),liabilityInvestorCount:u(e.MARGIN_INVESTOR_NUM),totalGuarantee:u(e.TOTAL_GUARANTEE),avgGuaranteeRatio:u(e.AVG_GUARANTEE_RATIO)}))}async function Ho(t,e){let n=e?`(TRADE_DATE='${e}')`:void 0;return D(t,{reportName:"RPT_MARGIN_TRADE_DETAIL",columns:"ALL",sortColumns:"FIN_BALANCE",sortTypes:"-1",pageSize:5e3,filter:n},r=>({code:String(_nullishCoalesce(r.SECURITY_CODE, () => (""))),name:String(_nullishCoalesce(r.SECURITY_NAME_ABBR, () => (""))),date:F(r.TRADE_DATE),finBalance:u(r.FIN_BALANCE),finBuyAmount:u(r.FIN_BUY_AMT),finRepayAmount:u(r.FIN_REPAY_AMT),loanBalance:u(r.LOAN_BALANCE),loanSellVolume:u(r.LOAN_SELL_VOLUME),loanRepayVolume:u(r.LOAN_REPAY_VOLUME)}))}var Nn="https://fundmobapi.eastmoney.com/FundMNewApi",Ln={plat:"Android",appType:"ttjj",product:"EFund",Version:"1",deviceid:"stock-sdk"};async function qo(t,e={}){let n=_nullishCoalesce(e.sort, () => ("ZDF")),r=_nullishCoalesce(e.order, () => ("desc")),o=_nullishCoalesce(e.category, () => ("2")),i=_nullishCoalesce(e.pageSize, () => (20)),s=_nullishCoalesce(e.page, () => (1)),a=new URLSearchParams({...Ln,RankItems:n,RankVectors:r,category:o,pageSize:String(i),page:String(s)}),l=`${Nn}/FundMNSubjectList?${a.toString()}`,c=await t.get(l,{provider:"eastmoney",responseType:"json"}),d=_nullishCoalesce(c.Data, () => ([])),m=_nullishCoalesce(c.pageinfo, () => ({totalPages:0,pageSize:i,page:s}));return{items:d.map(g=>({code:_nullishCoalesce(g.code, () => ("")),name:_nullishCoalesce(g.name, () => ("")),dailyChange:_(g.ZDF),weeklyReturn:_(g.SYL_W),monthlyReturn:_(g.SYL_M),quarterlyReturn:_(g.SYL_3M),halfYearReturn:_(g.SYL_6M),yearlyReturn:_(g.SYL_Y),threeYearReturn:_(g.SYL_3Y),fiveYearReturn:_(g.SYL_5Y),type:g.isIndustry===1?"\u884C\u4E1A":g.isIndustry===0?"\u6982\u5FF5":"\u884C\u4E1A"})),totalPages:_nullishCoalesce(m.totalPages, () => (0)),pageSize:_nullishCoalesce(m.pageSize, () => (i)),currentPage:_nullishCoalesce(m.page, () => (s))}}async function zo(t,e={}){let n=_nullishCoalesce(e.sort, () => ("ZDF")),r=_nullishCoalesce(e.order, () => ("desc")),o=_nullishCoalesce(e.category, () => ("2")),i=_nullishCoalesce(e.limit, () => (20)),s=new URLSearchParams({...Ln,RankItems:n,RankVectors:r,category:o,limit:String(i)}),a=`${Nn}/FundThemeList?${s.toString()}`;return(await _asyncNullishCoalesce((await t.get(a,{provider:"eastmoney",responseType:"json"})).Data, async () => ([]))).map(d=>({code:_nullishCoalesce(d.code, () => ("")),name:_nullishCoalesce(d.name, () => ("")),dailyChange:_(d.ZDF),weeklyReturn:_(d.SYL_W),monthlyReturn:_(d.SYL_M),quarterlyReturn:_(d.SYL_3M),halfYearReturn:_(d.SYL_6M),yearlyReturn:_(d.SYL_Y),threeYearReturn:_(d.SYL_3Y),fiveYearReturn:_(d.SYL_5Y),type:d.isIndustry===1?"\u884C\u4E1A":d.isIndustry===0?"\u6982\u5FF5":"\u884C\u4E1A"}))}async function $o(t,e,n={}){let r=_nullishCoalesce(n.sortColumn, () => ("SYL_1N")),o=_nullishCoalesce(n.sort, () => ("desc")),i=_nullishCoalesce(n.page, () => (1)),s=_nullishCoalesce(n.pageSize, () => (20)),a=_nullishCoalesce(n.fundType, () => ("")),l=new URLSearchParams({...Ln,TOPICAL:e,SortColumn:r,Sort:o,pageIndex:String(i),pageSize:String(s),FundType:a}),c=`${Nn}/FundMNRank?${l.toString()}`,d=await t.get(c,{provider:"eastmoney",responseType:"json"}),m=_nullishCoalesce(d.Data, () => ([])),p=_nullishCoalesce(d.fundinfo, () => ({total:0,pagesize:s,pageindex:i}));return{items:m.map(S=>({code:_nullishCoalesce(S.fscode, () => ("")),name:_nullishCoalesce(S.abname, () => ("")),fundType:_nullishCoalesce(S.ftype, () => ("")),dailyChange:_(S.ZDF),weeklyReturn:_(S.SYL_Z),monthlyReturn:_(S.SYL_Y),quarterlyReturn:_(S.SYL_3Y),yearlyReturn:_(S.SYL_1N),nav:_(S.dwjz),themeCode:e})),total:_nullishCoalesce(p.total, () => (0)),pageIndex:_nullishCoalesce(p.pageindex, () => (i)),pageSize:_nullishCoalesce(p.pagesize, () => (s))}}var q={};_chunk4VDLQK6Fcjs.a.call(void 0, q,{getCommodityOptionKline:()=>ei,getCommodityOptionSpot:()=>Jo,getETFOption5DayMinute:()=>Xo,getETFOptionDailyKline:()=>Zo,getETFOptionExpireDay:()=>Qo,getETFOptionMinute:()=>Vo,getETFOptionMonths:()=>Go,getIndexOptionKline:()=>jo,getIndexOptionSpot:()=>Yo});function Ns(t){return{buyVolume:u(t[0]),buyPrice:u(t[1]),price:u(t[2]),askPrice:u(t[3]),askVolume:u(t[4]),openInterest:u(t[5]),change:u(t[6]),strikePrice:u(t[7]),symbol:_nullishCoalesce(t[8], () => (""))}}function Ls(t){return{buyVolume:u(t[0]),buyPrice:u(t[1]),price:u(t[2]),askPrice:u(t[3]),askVolume:u(t[4]),openInterest:u(t[5]),change:u(t[6]),strikePrice:null,symbol:_nullishCoalesce(t[7], () => (""))}}async function Yo(t,e){let n=`${Se}?type=futures&product=${t}&exchange=cffex&pinzhong=${e}`,r=await v(n),o=_nullishCoalesce(_optionalChain([r, 'optionalAccess', _147 => _147.result, 'optionalAccess', _148 => _148.data, 'optionalAccess', _149 => _149.up]), () => ([])),i=_nullishCoalesce(_optionalChain([r, 'optionalAccess', _150 => _150.result, 'optionalAccess', _151 => _151.data, 'optionalAccess', _152 => _152.down]), () => ([]));return{calls:o.map(Ns),puts:i.map(Ls)}}async function jo(t){let e=`${Re}?symbol=${t}`,n=await v(e,{callbackMode:"path"});return Array.isArray(n)?n.map(r=>({date:r.d,open:u(r.o),high:u(r.h),low:u(r.l),close:u(r.c),volume:u(r.v)})):[]}async function Go(t){let e=`${Qt}?exchange=null&cate=${encodeURIComponent(t)}`,r=await _asyncOptionalChain([(await v(e)), 'optionalAccess', async _153 => _153.result, 'optionalAccess', async _154 => _154.data]),o=_nullishCoalesce(_optionalChain([r, 'optionalAccess', _155 => _155.contractMonth]), () => ([]));return{months:o.length>1?o.slice(1):o,stockId:_nullishCoalesce(_optionalChain([r, 'optionalAccess', _156 => _156.stockId]), () => ("")),cateId:_nullishCoalesce(_optionalChain([r, 'optionalAccess', _157 => _157.cateId]), () => ("")),cateList:_nullishCoalesce(_optionalChain([r, 'optionalAccess', _158 => _158.cateList]), () => ([]))}}async function Qo(t,e){let n=`${We}?exchange=null&cate=${encodeURIComponent(t)}&date=${e}`,r=await v(n),o=_optionalChain([r, 'optionalAccess', _159 => _159.result, 'optionalAccess', _160 => _160.data, 'optionalAccess', _161 => _161.remainderDays]);if(typeof o=="number"&&o<0){let s=`${We}?exchange=null&cate=${encodeURIComponent("XD"+t)}&date=${e}`;r=await v(s)}let i=_optionalChain([r, 'optionalAccess', _162 => _162.result, 'optionalAccess', _163 => _163.data]);return{expireDay:_nullishCoalesce(_optionalChain([i, 'optionalAccess', _164 => _164.expireDay]), () => ("")),remainderDays:_nullishCoalesce(_optionalChain([i, 'optionalAccess', _165 => _165.remainderDays]), () => (0)),stockId:_nullishCoalesce(_optionalChain([i, 'optionalAccess', _166 => _166.stockId]), () => ("")),name:_nullishCoalesce(_optionalChain([i, 'optionalAccess', _167 => _167.other, 'optionalAccess', _168 => _168.name]), () => (""))}}function Wo(t){let e="";return t.map(n=>(n.d&&(e=n.d),{time:n.i,date:e,price:u(n.p),volume:u(n.v),openInterest:u(n.t),avgPrice:u(n.a)}))}async function Vo(t){let e=`CON_OP_${t}`,n=`${Wt}?symbol=${e}`,o=await _asyncOptionalChain([(await v(n)), 'optionalAccess', async _169 => _169.result, 'optionalAccess', async _170 => _170.data]);return Array.isArray(o)?Wo(o):[]}async function Zo(t){let e=`CON_OP_${t}`,n=`${Vt}?symbol=${e}`,r=await v(n,{callbackMode:"path"});return Array.isArray(r)?r.map(o=>({date:o.d,open:u(o.o),high:u(o.h),low:u(o.l),close:u(o.c),volume:u(o.v)})):[]}async function Xo(t){let e=`CON_OP_${t}`,n=`${Zt}?symbol=${e}`,o=await _asyncOptionalChain([(await v(n)), 'optionalAccess', async _171 => _171.result, 'optionalAccess', async _172 => _172.data]);if(!Array.isArray(o))return[];let i=[];for(let s of o)Array.isArray(s)&&i.push(...Wo(s));return i}function Fs(t){return{buyVolume:u(t[0]),buyPrice:u(t[1]),price:u(t[2]),askPrice:u(t[3]),askVolume:u(t[4]),openInterest:u(t[5]),change:u(t[6]),strikePrice:u(t[7]),symbol:_nullishCoalesce(t[8], () => (""))}}function vs(t){return{buyVolume:u(t[0]),buyPrice:u(t[1]),price:u(t[2]),askPrice:u(t[3]),askVolume:u(t[4]),openInterest:u(t[5]),change:u(t[6]),strikePrice:null,symbol:_nullishCoalesce(t[7], () => (""))}}async function Jo(t,e){let n=Ve[t];if(!n)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`Unknown commodity option variety: "${t}". Available: ${Object.keys(Ve).join(", ")}`);let r=`${Se}?type=futures&product=${n.product}&exchange=${n.exchange}&pinzhong=${e}`,o=await v(r),i=_nullishCoalesce(_optionalChain([o, 'optionalAccess', _173 => _173.result, 'optionalAccess', _174 => _174.data, 'optionalAccess', _175 => _175.up]), () => ([])),s=_nullishCoalesce(_optionalChain([o, 'optionalAccess', _176 => _176.result, 'optionalAccess', _177 => _177.data, 'optionalAccess', _178 => _178.down]), () => ([]));return{calls:i.map(Fs),puts:s.map(vs)}}async function ei(t){let e=`${Re}?symbol=${t}`,n=await v(e,{callbackMode:"path"});return Array.isArray(n)?n.map(r=>({date:r.d,open:u(r.o),high:u(r.h),low:u(r.l),close:u(r.c),volume:u(r.v)})):[]}var b=class{constructor(e){this.client=e}};var Ie=class extends b{constructor(n){super(n);this.theme=new Fn(this.client)}getFundDividendList(n){return f.getFundDividendList(this.client,n)}getFundNavHistory(n){return f.getFundNavHistory(this.client,n)}getFundEstimate(n){return f.getFundEstimate(this.client,n)}getFundRankHistory(n){return f.getFundRankHistory(this.client,n)}getFundProfile(n){return f.getFundProfile(this.client,n)}},Fn=class{constructor(e){this.client=e}getThemeList(e){return f.getThemeList(this.client,e)}getThemeFunds(e,n){return f.getThemeFunds(this.client,e,n)}};var be=class extends b{constructor(e){super(e)}getFullQuotes(e){return M.getFullQuotes(this.client,e)}getSimpleQuotes(e){return M.getSimpleQuotes(this.client,e)}getHKQuotes(e){return M.getHKQuotes(this.client,e)}getUSQuotes(e){return M.getUSQuotes(this.client,e)}getFundQuotes(e){return M.getFundQuotes(this.client,e)}getFundFlow(e){return M.getFundFlow(this.client,e)}getPanelLargeOrder(e){return M.getPanelLargeOrder(this.client,e)}getTodayTimeline(e){return M.getTodayTimeline(this.client,e)}search(e){return M.search(this.client,e)}getAShareCodeList(e){return M.getAShareCodeList(this.client,e)}getUSCodeList(e){return M.getUSCodeList(this.client,e)}getHKCodeList(){return M.getHKCodeList(this.client)}getFundCodeList(){return M.getFundCodeList(this.client)}async getAllAShareQuotes(e={}){let{market:n,...r}=e,o=await this.getAShareCodeList({market:n});return M.getAllQuotesByCodes(this.client,o,r)}async getAllHKShareQuotes(e={}){let n=await this.getHKCodeList();return M.getAllHKQuotesByCodes(this.client,n,e)}async getAllUSShareQuotes(e={}){let{market:n,...r}=e,o=await this.getUSCodeList({simple:!0,market:n});return M.getAllUSQuotesByCodes(this.client,o,r)}getAllQuotesByCodes(e,n={}){return M.getAllQuotesByCodes(this.client,e,n)}batchRaw(e){return this.client.getTencentQuote(e)}getTradingCalendar(){return M.getTradingCalendar(this.client)}getDividendDetail(e){return f.getDividendDetail(this.client,e)}};var ke=class extends b{constructor(e){super(e)}getIndustryList(){return f.getIndustryList(this.client)}getIndustrySpot(e){return f.getIndustrySpot(this.client,e)}getIndustryConstituents(e){return f.getIndustryConstituents(this.client,e)}getIndustryKline(e,n){return f.getIndustryKline(this.client,e,n)}getIndustryMinuteKline(e,n){return f.getIndustryMinuteKline(this.client,e,n)}getConceptList(){return f.getConceptList(this.client)}getConceptSpot(e){return f.getConceptSpot(this.client,e)}getConceptConstituents(e){return f.getConceptConstituents(this.client,e)}getConceptKline(e,n){return f.getConceptKline(this.client,e,n)}getConceptMinuteKline(e,n){return f.getConceptMinuteKline(this.client,e,n)}};var Me=class extends b{constructor(e){super(e)}getHistoryKline(e,n){return f.getHistoryKline(this.client,e,n)}getMinuteKline(e,n){return f.getMinuteKline(this.client,e,n)}getHKHistoryKline(e,n){return f.getHKHistoryKline(this.client,e,n)}getHKMinuteKline(e,n){return f.getHKMinuteKline(this.client,e,n)}getUSHistoryKline(e,n){return f.getUSHistoryKline(this.client,e,n)}getUSMinuteKline(e,n){return f.getUSMinuteKline(this.client,e,n)}};var Ne=class extends b{constructor(e){super(e)}getFuturesKline(e,n){return f.getFuturesHistoryKline(this.client,e,n)}getGlobalFuturesSpot(e){return f.getGlobalFuturesSpot(this.client,e)}getGlobalFuturesKline(e,n){return f.getGlobalFuturesKline(this.client,e,n)}getFuturesInventorySymbols(){return f.getFuturesInventorySymbols(this.client)}getFuturesInventory(e,n){return f.getFuturesInventory(this.client,e,n)}getComexInventory(e,n){return f.getComexInventory(this.client,e,n)}};var Le=class extends b{constructor(e){super(e)}getIndexOptionSpot(e,n){return q.getIndexOptionSpot(e,n)}getIndexOptionKline(e){return q.getIndexOptionKline(e)}getCFFEXOptionQuotes(e){return f.getCFFEXOptionQuotes(this.client,e)}getETFOptionMonths(e){return q.getETFOptionMonths(e)}getETFOptionExpireDay(e,n){return q.getETFOptionExpireDay(e,n)}getETFOptionMinute(e){return q.getETFOptionMinute(e)}getETFOptionDailyKline(e){return q.getETFOptionDailyKline(e)}getETFOption5DayMinute(e){return q.getETFOption5DayMinute(e)}getCommodityOptionSpot(e,n){return q.getCommodityOptionSpot(e,n)}getCommodityOptionKline(e){return q.getCommodityOptionKline(e)}getOptionLHB(e,n){return f.getOptionLHB(this.client,e,n)}};var ws=500,xs=15,Fe=class{constructor(e,n){this.klineService=e;this.quoteService=n}detectMarket(e){let n=_chunkT5CH7H3Xcjs.f.call(void 0, e);if(n==="GLOBAL")throw new (0, _chunk4Q7UQ5Q3cjs.e)(`No kline route for GLOBAL-market symbol '${e}'; use the US kline API with a raw secid instead (e.g. kline.us('100.GDAXI'))`);return n==="HK"?"HK":n==="US"?"US":"A"}calcActualStartDate(e,n,r=1.5){let o=this.toCompactDate(e),i=Math.ceil(n*r),s=new Date(parseInt(o.slice(0,4)),parseInt(o.slice(4,6))-1,parseInt(o.slice(6,8)));s.setDate(s.getDate()-i);let a=s.getFullYear(),l=String(s.getMonth()+1).padStart(2,"0"),c=String(s.getDate()).padStart(2,"0");return`${a}${l}${c}`}calcActualStartDateByCalendar(e,n,r){if(!r||r.length===0)return;let o=r.findIndex(s=>s>=e);o===-1&&(o=r.length-1);let i=Math.max(0,o-n);return this.toCompactDate(r[i])}tryNormalizeDate(e){let n=e.trim();return/^\d{4}-\d{2}-\d{2}/.test(n)?n.slice(0,10):/^\d{8}$/.test(n)?`${n.slice(0,4)}-${n.slice(4,6)}-${n.slice(6,8)}`:null}normalizeUserDate(e){let n=this.tryNormalizeDate(e);if(n===null)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`\u65E5\u671F\u683C\u5F0F\u5E94\u4E3A 'YYYY-MM-DD' \u6216 'YYYYMMDD',\u5F97\u5230 '${e}'`,{argument:"date",value:e});return n}normalizeRowDate(e){return _nullishCoalesce(this.tryNormalizeDate(e), () => (e))}toCompactDate(e){return e.replace(/-/g,"")}async getKlineWithIndicators(e,n={}){let{indicators:r={}}=n,o=n.startDate?this.normalizeUserDate(n.startDate):void 0,i=n.endDate?this.normalizeUserDate(n.endDate):void 0,s=_nullishCoalesce(n.market, () => (this.detectMarket(e))),{requiredBars:a,maxRecursiveLookback:l}=_chunkZESMWMHPcjs.w.call(void 0, r),c={A:1.5,HK:1.46,US:1.45},d;if(o)if(s==="A")try{let C=await this.quoteService.getTradingCalendar();d=_nullishCoalesce(this.calcActualStartDateByCalendar(o,a,C), () => (this.calcActualStartDate(o,a,c[s])))}catch (e11){d=this.calcActualStartDate(o,a,c[s])}else d=this.calcActualStartDate(o,a,c[s]);let m={period:n.period,adjust:n.adjust,startDate:d,endDate:i?this.toCompactDate(i):void 0},p;switch(s){case"HK":p=await this.klineService.getHKHistoryKline(e,m);break;case"US":p=await this.klineService.getUSHistoryKline(e,m);break;default:p=await this.klineService.getHistoryKline(e,m)}let g=_nullishCoalesce(n.period, () => ("daily")),S=30+(g==="weekly"?7:g==="monthly"?31:0),A=p.length===0||d===void 0||this.normalizeRowDate(p[0].date)<=Z(this.normalizeRowDate(d),S),h=!1;if(o&&p.length<a&&A)switch(h=!0,s){case"HK":p=await this.klineService.getHKHistoryKline(e,{...m,startDate:void 0});break;case"US":p=await this.klineService.getUSHistoryKline(e,{...m,startDate:void 0});break;default:p=await this.klineService.getHistoryKline(e,{...m,startDate:void 0})}if(o){let C=p.findIndex(U=>this.normalizeRowDate(U.date)>=o);if(C===-1)return[];let I=p;if(h&&!_chunkZESMWMHPcjs.u.call(void 0, r)){let U=l>0?Math.max(a,ws,xs*l):a;I=p.slice(Math.max(0,C-U))}return _chunkZESMWMHPcjs.x.call(void 0, I,r).filter(U=>{let K=this.normalizeRowDate(U.date);return K>=o&&(i===void 0||K<=i)})}return _chunkZESMWMHPcjs.x.call(void 0, p,r)}};var Us=1.5,Ks=30,ve=class{constructor(e){this.klineService=e}getChipDistribution(e,n={}){return this.compute("A",e,n)}getHKChipDistribution(e,n={}){return this.compute("HK",e,n)}getUSChipDistribution(e,n={}){return this.compute("US",e,n)}async compute(e,n,r){let{days:o=90,range:i=120,adjust:s,includeHistogram:a,decimals:l}=r;if(!Number.isInteger(o)||o<1)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`days \u5E94\u4E3A\u6B63\u6574\u6570,\u5F97\u5230 ${JSON.stringify(o)}`,{argument:"days",value:o});if(!Number.isInteger(i)||i<0)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`range \u5E94\u4E3A\u975E\u8D1F\u6574\u6570(0 = \u5168\u91CF\u7D2F\u8BA1),\u5F97\u5230 ${JSON.stringify(i)}`,{argument:"range",value:i});let c=await this.fetchDailyKlines(e,n,s,o,i);return c.length===0?[]:_chunkZESMWMHPcjs.r.call(void 0, c,{range:i,tail:o,includeHistogram:a,decimals:l})}async fetchDailyKlines(e,n,r,o,i){let s=S=>{let A={period:"daily",adjust:r,startDate:S};switch(e){case"HK":return this.klineService.getHKHistoryKline(n,A);case"US":return this.klineService.getUSHistoryKline(n,A);default:return this.klineService.getHistoryKline(n,A)}};if(i===0)return s(void 0);let a={A:E.CN,HK:E.HK,US:E.US},l=o+i,c=w(a[e]),d=Z(c,-Math.ceil(l*Us)),m=d.replace(/-/g,""),p=await s(m),g=p.length===0||p[0].date<=Z(d,Ks);return p.length<l&&g&&(p=await s(void 0)),p}};var we=class extends b{constructor(e){super(e)}getIndividualFundFlow(e,n){return f.getIndividualFundFlow(this.client,e,n)}getMarketFundFlow(){return f.getMarketFundFlow(this.client)}getFundFlowRank(e){return f.getFundFlowRank(this.client,e)}getSectorFundFlowRank(e){return f.getSectorFundFlowRank(this.client,e)}getSectorFundFlowHistory(e,n){return f.getSectorFundFlowHistory(this.client,e,n)}};var xe=class extends b{constructor(e){super(e)}getNorthboundMinute(e){return f.getNorthboundMinute(this.client,e)}getNorthboundFlowSummary(){return f.getNorthboundFlowSummary(this.client)}getNorthboundHoldingRank(e){return f.getNorthboundHoldingRank(this.client,e)}getNorthboundHistory(e,n){return f.getNorthboundHistory(this.client,e,n)}getNorthboundIndividual(e,n){return f.getNorthboundIndividual(this.client,e,n)}};var Bs=4,Ue=class extends b{constructor(n,r){super(n);this.quoteService=r}getZTPool(n,r){return f.getZTPool(this.client,n,r)}getStockChanges(n){return f.getStockChanges(this.client,n)}getBoardChanges(){return f.getBoardChanges(this.client)}async getIndividualChanges(n,r={}){return(await f.getIndividualStockChanges(this.client,n,r.date)).changes}async getIndividualChangesHistory(n,r={}){let{days:o=7}=r;if(!Number.isInteger(o)||o<1||o>60)throw new (0, _chunk4Q7UQ5Q3cjs.e)(`days \u5E94\u4E3A 1~60 \u7684\u6574\u6570,\u5F97\u5230 ${JSON.stringify(o)}`,{argument:"days",value:o});let i=f.assertCnStockSymbol(n),s=w(E.CN),a=Z(s,-(o-1)),c=(await this.quoteService.getTradingCalendar()).filter(h=>h>=a&&h<=s),m=(await oe(c.map(h=>()=>f.getIndividualStockChanges(this.client,n,h)),Bs,!0)).map((h,C)=>h.date===c[C]?h:{date:c[C],available:!1,code:h.code,name:"",changes:[]}),p=m.filter(h=>h.available),g=Object.create(null);for(let h of p)for(let C of h.changes){let I=C.typeCode||"unknown",U=_nullishCoalesce(g[I], () => ((g[I]={count:0,label:C.changeTypeLabel})));U.count+=1}let S=p.find(h=>h.name),A=_nullishCoalesce(_optionalChain([m, 'access', _179 => _179[0], 'optionalAccess', _180 => _180.code]), () => (i.code));return{code:_nullishCoalesce(_optionalChain([S, 'optionalAccess', _181 => _181.code]), () => (A)),name:_nullishCoalesce(_optionalChain([S, 'optionalAccess', _182 => _182.name]), () => ("")),requestedDays:o,coverage:{from:a,to:s,availableFrom:_nullishCoalesce(_optionalChain([p, 'access', _183 => _183[0], 'optionalAccess', _184 => _184.date]), () => (null))},days:m,stats:g}}};var Ke=class extends b{constructor(e){super(e)}getDragonTigerDetail(e){return f.getDragonTigerDetail(this.client,e)}getDragonTigerStockStats(e){return f.getDragonTigerStockStats(this.client,e)}getDragonTigerInstitution(e){return f.getDragonTigerInstitution(this.client,e)}getDragonTigerBranchRank(e){return f.getDragonTigerBranchRank(this.client,e)}getDragonTigerStockSeatDetail(e,n){return f.getDragonTigerStockSeatDetail(this.client,e,n)}};var Be=class extends b{constructor(e){super(e)}getBlockTradeMarketStat(){return f.getBlockTradeMarketStat(this.client)}getBlockTradeDetail(e){return f.getBlockTradeDetail(this.client,e)}getBlockTradeDailyStat(e){return f.getBlockTradeDailyStat(this.client,e)}getMarginAccountInfo(){return f.getMarginAccountInfo(this.client)}getMarginTargetList(e){return f.getMarginTargetList(this.client,e)}};var vn=class{constructor(e={}){this._ns={};this.client=new Ae(e),this.quoteService=new be(this.client),this.boardService=new ke(this.client),this.klineService=new Me(this.client),this.futuresService=new Ne(this.client),this.optionsService=new Le(this.client),this.indicatorService=new Fe(this.klineService,this.quoteService),this.chipService=new ve(this.klineService),this.fundFlowService=new we(this.client),this.northboundService=new xe(this.client),this.marketEventService=new Ue(this.client,this.quoteService),this.dragonTigerService=new Ke(this.client),this.dataService=new Be(this.client),this.tradingCalendarService=new Oe(this.quoteService),this.fundService=new Ie(this.client)}memoNs(e,n){let r=this._ns[e];return r===void 0&&(r=n(),this._ns[e]=r),r}get quotes(){return this.memoNs("quotes",()=>{let e=this.quoteService;return{cn:e.getFullQuotes.bind(e),cnSimple:e.getSimpleQuotes.bind(e),hk:e.getHKQuotes.bind(e),us:e.getUSQuotes.bind(e),fund:e.getFundQuotes.bind(e),fundFlow:e.getFundFlow.bind(e),largeOrder:e.getPanelLargeOrder.bind(e),timeline:e.getTodayTimeline.bind(e)}})}get codes(){return this.memoNs("codes",()=>{let e=this.quoteService;return{cn:e.getAShareCodeList.bind(e),us:e.getUSCodeList.bind(e),hk:e.getHKCodeList.bind(e),fund:e.getFundCodeList.bind(e)}})}get batch(){return this.memoNs("batch",()=>{let e=this.quoteService;return{cn:e.getAllAShareQuotes.bind(e),hk:e.getAllHKShareQuotes.bind(e),us:e.getAllUSShareQuotes.bind(e),byCodes:e.getAllQuotesByCodes.bind(e),raw:e.batchRaw.bind(e)}})}get kline(){return this.memoNs("kline",()=>{let e=this.klineService,n=this.indicatorService;return{cn:e.getHistoryKline.bind(e),cnMinute:e.getMinuteKline.bind(e),hk:e.getHKHistoryKline.bind(e),hkMinute:e.getHKMinuteKline.bind(e),us:e.getUSHistoryKline.bind(e),usMinute:e.getUSMinuteKline.bind(e),withIndicators:n.getKlineWithIndicators.bind(n)}})}get chips(){return this.memoNs("chips",()=>{let e=this.chipService;return{cn:e.getChipDistribution.bind(e),hk:e.getHKChipDistribution.bind(e),us:e.getUSChipDistribution.bind(e)}})}get board(){return this.memoNs("board",()=>{let e=this.boardService;return{industry:{list:e.getIndustryList.bind(e),spot:e.getIndustrySpot.bind(e),constituents:e.getIndustryConstituents.bind(e),kline:e.getIndustryKline.bind(e),minuteKline:e.getIndustryMinuteKline.bind(e)},concept:{list:e.getConceptList.bind(e),spot:e.getConceptSpot.bind(e),constituents:e.getConceptConstituents.bind(e),kline:e.getConceptKline.bind(e),minuteKline:e.getConceptMinuteKline.bind(e)}}})}get options(){return this.memoNs("options",()=>{let e=this.optionsService;return{index:{spot:e.getIndexOptionSpot.bind(e),kline:e.getIndexOptionKline.bind(e)},etf:{months:e.getETFOptionMonths.bind(e),expireDay:e.getETFOptionExpireDay.bind(e),minute:e.getETFOptionMinute.bind(e),dailyKline:e.getETFOptionDailyKline.bind(e),fiveDayMinute:e.getETFOption5DayMinute.bind(e)},commodity:{spot:e.getCommodityOptionSpot.bind(e),kline:e.getCommodityOptionKline.bind(e)},cffex:{quotes:e.getCFFEXOptionQuotes.bind(e)},lhb:e.getOptionLHB.bind(e)}})}get futures(){return this.memoNs("futures",()=>{let e=this.futuresService;return{kline:e.getFuturesKline.bind(e),globalSpot:e.getGlobalFuturesSpot.bind(e),globalKline:e.getGlobalFuturesKline.bind(e),inventorySymbols:e.getFuturesInventorySymbols.bind(e),inventory:e.getFuturesInventory.bind(e),comexInventory:e.getComexInventory.bind(e)}})}get fundFlow(){return this.memoNs("fundFlow",()=>{let e=this.fundFlowService;return{individual:e.getIndividualFundFlow.bind(e),market:e.getMarketFundFlow.bind(e),rank:e.getFundFlowRank.bind(e),sectorRank:e.getSectorFundFlowRank.bind(e),sectorHistory:e.getSectorFundFlowHistory.bind(e)}})}get northbound(){return this.memoNs("northbound",()=>{let e=this.northboundService;return{minute:e.getNorthboundMinute.bind(e),summary:e.getNorthboundFlowSummary.bind(e),holdingRank:e.getNorthboundHoldingRank.bind(e),history:e.getNorthboundHistory.bind(e),individual:e.getNorthboundIndividual.bind(e)}})}get marketEvent(){return this.memoNs("marketEvent",()=>{let e=this.marketEventService;return{ztPool:e.getZTPool.bind(e),stockChanges:e.getStockChanges.bind(e),boardChanges:e.getBoardChanges.bind(e),individualChanges:e.getIndividualChanges.bind(e),individualChangesHistory:e.getIndividualChangesHistory.bind(e)}})}get dragonTiger(){return this.memoNs("dragonTiger",()=>{let e=this.dragonTigerService;return{detail:e.getDragonTigerDetail.bind(e),stockStats:e.getDragonTigerStockStats.bind(e),institution:e.getDragonTigerInstitution.bind(e),branchRank:e.getDragonTigerBranchRank.bind(e),seatDetail:e.getDragonTigerStockSeatDetail.bind(e)}})}get blockTrade(){return this.memoNs("blockTrade",()=>{let e=this.dataService;return{marketStat:e.getBlockTradeMarketStat.bind(e),detail:e.getBlockTradeDetail.bind(e),dailyStat:e.getBlockTradeDailyStat.bind(e)}})}get margin(){return this.memoNs("margin",()=>{let e=this.dataService;return{accountInfo:e.getMarginAccountInfo.bind(e),targetList:e.getMarginTargetList.bind(e)}})}get fund(){return this.memoNs("fund",()=>{let e=this.fundService;return{dividendList:e.getFundDividendList.bind(e),navHistory:e.getFundNavHistory.bind(e),estimate:e.getFundEstimate.bind(e),rankHistory:e.getFundRankHistory.bind(e),profile:e.getFundProfile.bind(e),theme:e.theme}})}get calendar(){return this.memoNs("calendar",()=>{let e=this.tradingCalendarService;return{isTradingDay:e.isTradingDay.bind(e),nextTradingDay:e.nextTradingDay.bind(e),prevTradingDay:e.prevTradingDay.bind(e),marketStatus:e.getMarketStatus.bind(e)}})}get reference(){return this.memoNs("reference",()=>{let e=this.quoteService;return{dividendDetail:e.getDividendDetail.bind(e),tradingCalendar:e.getTradingCalendar.bind(e)}})}search(e){return this.quoteService.search(e)}},ip= exports.u =vn;exports.a = yt; exports.b = ht; exports.c = T; exports.d = O; exports.e = me; exports.f = oe; exports.g = ze; exports.h = v; exports.i = ge; exports.j = pi; exports.k = ue; exports.l = Rt; exports.m = E; exports.n = le; exports.o = L; exports.p = _t; exports.q = Ct; exports.r = Oe; exports.s = Ie; exports.t = vn; exports.u = ip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function b(e,t=3){let s=Math.pow(10,t);return Math.round(e*s)/s}var A=class{constructor(t,s){this.sum=0;this.comp=0;this.count=0;this.data=t,this.period=s}advance(t){let s=this.data[t];if(s!==null&&(this.add(s),this.count++),t>=this.period){let u=this.data[t-this.period];u!==null&&(this.add(-u),this.count--)}Number.isFinite(this.sum)||this.refill(t)}get value(){return this.sum}get nonNullCount(){return this.count}add(t){let s=t-this.comp,u=this.sum+s;this.comp=u-this.sum-s,this.sum=u}refill(t){this.sum=0,this.comp=0;let s=Math.max(0,t-this.period+1);for(let u=s;u<=t;u++){let i=this.data[u];i!==null&&this.add(i)}}};function j(e,t,s){let u=new Array(e.length),i=new A(e,t);for(let r=0;r<e.length;r++)i.advance(r),u[r]=r>=t-1&&i.nonNullCount===t?b(i.value/t,s):null;return u}function D(e,t,s){let u=[],i=2/(t+1),r=null,o=!1;for(let n=0;n<e.length;n++){if(n<t-1){u.push(null);continue}if(!o){let c=0,a=0;for(let m=n-t+1;m<=n;m++)e[m]!==null&&(c+=e[m],a++);a===t&&(r=c/t,o=!0),u.push(r!==null?b(r,s):null);continue}let l=e[n];l===null?u.push(r!==null?b(r,s):null):(r=i*l+(1-i)*r,u.push(b(r,s)))}return u}function re(e,t,s){let u=[],i=Array.from({length:t},(o,n)=>n+1),r=i.reduce((o,n)=>o+n,0);for(let o=0;o<e.length;o++){if(o<t-1){u.push(null);continue}let n=0,l=!0;for(let c=0;c<t;c++){let a=e[o-t+1+c];if(a===null){l=!1;break}n+=a*i[c]}u.push(l?b(n/r,s):null)}return u}function J(e,t={}){let{periods:s=[5,10,20,30,60,120,250],type:u="sma",decimals:i}=t,r=u==="ema"?D:u==="wma"?re:j,o={};for(let n of s)o[`ma${n}`]=r(e,n,i);return e.map((n,l)=>{let c={};for(let a of s)c[`ma${a}`]=o[`ma${a}`][l];return c})}function F(e,t={}){let{short:s=12,long:u=26,signal:i=9,decimals:r}=t,o=D(e,s,r),n=D(e,u,r),l=e.map((a,m)=>o[m]===null||n[m]===null?null:o[m]-n[m]),c=D(l,i,r);return e.map((a,m)=>({dif:l[m]!==null?b(l[m],r):null,dea:c[m],macd:l[m]!==null&&c[m]!==null?b((l[m]-c[m])*2,r):null}))}function ae(e,t,s){let u=new Array(e.length),i=e.map(n=>n===null?null:n*n),r=new A(e,t),o=new A(i,t);for(let n=0;n<e.length;n++){r.advance(n),o.advance(n);let l=s[n];if(n<t-1||l===null){u[n]=null;continue}if(r.nonNullCount!==t){u[n]=null;continue}let c=o.value-2*l*r.value+t*l*l;u[n]=Math.sqrt(Math.max(0,c)/t)}return u}function q(e,t={}){let{period:s=20,stdDev:u=2,decimals:i}=t,r=j(e,s,i),o=ae(e,s,r);return e.map((n,l)=>{if(r[l]===null||o[l]===null)return{mid:null,upper:null,lower:null,bandwidth:null};let c=r[l]+u*o[l],a=r[l]-u*o[l],m=r[l]!==0?b((c-a)/r[l]*100,i):null;return{mid:r[l],upper:b(c,i),lower:b(a,i),bandwidth:m}})}function G(e,t={}){let{period:s=9,kPeriod:u=3,dPeriod:i=3,decimals:r}=t,o=[],n=50,l=50,c=[],a=0,m=[],f=0,h=0;for(let d=0;d<e.length;d++){let p=e[d];if(p.high===null||p.low===null)h++;else{for(;c.length>a&&e[c[c.length-1]].high<=p.high;)c.pop();for(c.push(d);m.length>f&&e[m[m.length-1]].low>=p.low;)m.pop();m.push(d)}let R=d-s+1;if(d>=s){let g=e[d-s];(g.high===null||g.low===null)&&h--}for(;c.length>a&&c[a]<R;)a++;for(;m.length>f&&m[f]<R;)f++;if(d<s-1){o.push({k:null,d:null,j:null});continue}let y=c.length>a?e[c[a]].high:-1/0,w=m.length>f?e[m[f]].low:1/0,v=e[d].close;if(h>0||v===null||y===w){o.push({k:null,d:null,j:null});continue}let S=(v-w)/(y-w)*100;n=(u-1)/u*n+1/u*S,l=(i-1)/i*l+1/i*n;let L=3*n-2*l;o.push({k:b(n,r),d:b(l,r),j:b(L,r)})}return o}function U(e,t={}){let{periods:s=[6,12,24],decimals:u}=t,i=[null];for(let o=1;o<e.length;o++)e[o]===null||e[o-1]===null?i.push(null):i.push(e[o]-e[o-1]);let r={};for(let o of s){let n=[],l=0,c=0;for(let a=0;a<e.length;a++){if(a<o){n.push(null),i[a]!==null&&(i[a]>0?l+=i[a]:c+=Math.abs(i[a]));continue}if(a===o)i[a]!==null&&(i[a]>0?l+=i[a]:c+=Math.abs(i[a])),l=l/o,c=c/o;else{let m=i[a]??0,f=m>0?m:0,h=m<0?Math.abs(m):0;l=(l*(o-1)+f)/o,c=(c*(o-1)+h)/o}if(c===0)n.push(100);else if(l===0)n.push(0);else{let m=l/c;n.push(b(100-100/(1+m),u))}}r[`rsi${o}`]=n}return e.map((o,n)=>{let l={};for(let c of s)l[`rsi${c}`]=r[`rsi${c}`][n];return l})}function Y(e,t={}){let{periods:s=[6,10],decimals:u}=t,i={};for(let r of s){let o=[];for(let n=0;n<e.length;n++){if(n<r-1){o.push(null);continue}let l=-1/0,c=1/0,a=!0;for(let h=n-r+1;h<=n;h++){if(e[h].high===null||e[h].low===null){a=!1;break}l=Math.max(l,e[h].high),c=Math.min(c,e[h].low)}let m=e[n].close;if(!a||m===null||l===c){o.push(null);continue}let f=(l-m)/(l-c)*100;o.push(b(f,u))}i[`wr${r}`]=o}return e.map((r,o)=>{let n={};for(let l of s)n[`wr${l}`]=i[`wr${l}`][o];return n})}function z(e,t={}){let{periods:s=[6,12,24],decimals:u}=t,i={};for(let r of s){let o=j(e,r,u),n=[];for(let l=0;l<e.length;l++)if(e[l]===null||o[l]===null||o[l]===0)n.push(null);else{let c=(e[l]-o[l])/o[l]*100;n.push(b(c,u))}i[`bias${r}`]=n}return e.map((r,o)=>{let n={};for(let l of s)n[`bias${l}`]=i[`bias${l}`][o];return n})}function Q(e,t={}){let{period:s=14,decimals:u}=t,i=[],r=e.map(o=>o.high===null||o.low===null||o.close===null?null:(o.high+o.low+o.close)/3);for(let o=0;o<e.length;o++){if(o<s-1){i.push({cci:null});continue}let n=0,l=0;for(let f=o-s+1;f<=o;f++)r[f]!==null&&(n+=r[f],l++);if(l!==s||r[o]===null){i.push({cci:null});continue}let c=n/s,a=0;for(let f=o-s+1;f<=o;f++)a+=Math.abs(r[f]-c);let m=a/s;if(m===0)i.push({cci:0});else{let f=(r[o]-c)/(.015*m);i.push({cci:b(f,u)})}}return i}function T(e,t={}){let{period:s=14,decimals:u}=t,i=[],r=[];for(let n=0;n<e.length;n++){let{high:l,low:c,close:a}=e[n];if(l===null||c===null||a===null){r.push(null);continue}if(n===0)r.push(l-c);else{let m=e[n-1].close;if(m===null)r.push(l-c);else{let f=l-c,h=Math.abs(l-m),d=Math.abs(c-m);r.push(Math.max(f,h,d))}}}let o=null;for(let n=0;n<e.length;n++){if(n<s-1){i.push({tr:r[n]!==null?b(r[n],u):null,atr:null});continue}if(n===s-1){let l=0,c=0;for(let a=0;a<s;a++)r[a]!==null&&(l+=r[a],c++);c===s&&(o=l/s)}else o!==null&&r[n]!==null&&(o=(o*(s-1)+r[n])/s);i.push({tr:r[n]!==null?b(r[n],u):null,atr:o!==null?b(o,u):null})}return i}function X(e,t={}){let{maPeriod:s}=t,u=[];if(e.length===0)return u;let i=e[0].volume??0;u.push({obv:i,obvMa:null});for(let r=1;r<e.length;r++){let o=e[r],n=e[r-1];if(o.close===null||n.close===null||o.volume===null||o.volume===void 0){u.push({obv:null,obvMa:null});continue}o.close>n.close?i+=o.volume:o.close<n.close&&(i-=o.volume),u.push({obv:i,obvMa:null})}if(s&&s>0){let r=u.map(n=>n.obv),o=new A(r,s);for(let n=0;n<u.length;n++)o.advance(n),n>=s-1&&o.nonNullCount===s&&(u[n].obvMa=o.value/s)}return u}function Z(e,t={}){let{period:s=12,signalPeriod:u}=t,i=[];for(let r=0;r<e.length;r++){if(r<s){i.push({roc:null,signal:null});continue}let o=e[r].close,n=e[r-s].close;if(o===null||n===null||n===0){i.push({roc:null,signal:null});continue}let l=(o-n)/n*100;i.push({roc:l,signal:null})}if(u&&u>0){let r=i.map(n=>n.roc),o=new A(r,u);for(let n=0;n<i.length;n++)o.advance(n),n>=s+u-1&&o.nonNullCount===u&&(i[n].signal=o.value/u)}return i}function ee(e,t={}){let{period:s=14,adxPeriod:u=s}=t,i=[];if(e.length<2)return e.map(()=>({pdi:null,mdi:null,adx:null,adxr:null}));let r=[],o=[],n=[];for(let p=0;p<e.length;p++){if(p===0){r.push(0),o.push(0),n.push(0),i.push({pdi:null,mdi:null,adx:null,adxr:null});continue}let R=e[p],y=e[p-1];if(R.high===null||R.low===null||R.close===null||y.high===null||y.low===null||y.close===null){r.push(0),o.push(0),n.push(0),i.push({pdi:null,mdi:null,adx:null,adxr:null});continue}let w=R.high-R.low,v=Math.abs(R.high-y.close),S=Math.abs(R.low-y.close);n.push(Math.max(w,v,S));let L=R.high-y.high,g=y.low-R.low;L>g&&L>0?r.push(L):r.push(0),g>L&&g>0?o.push(g):o.push(0),i.push({pdi:null,mdi:null,adx:null,adxr:null})}let l=0,c=0,a=0,m=[];for(let p=1;p<e.length;p++){if(p<s){l+=n[p],c+=r[p],a+=o[p],m.push(0);continue}p===s?(l+=n[p],c+=r[p],a+=o[p]):(l=l-l/s+n[p],c=c-c/s+r[p],a=a-a/s+o[p]);let R=l>0?c/l*100:0,y=l>0?a/l*100:0;i[p].pdi=R,i[p].mdi=y;let w=R+y,v=w>0?Math.abs(R-y)/w*100:0;m.push(v)}let f=0,h=0,d=s+u-1;for(let p=s;p<e.length;p++){if(p<d){f+=m[p-1]||0;continue}if(p===d)f+=m[p-1]||0,h=f/u,i[p].adx=h;else{let R=m[p-1]||0;h=(h*(u-1)+R)/u,i[p].adx=h}}for(let p=d+u;p<e.length;p++){let R=i[p].adx,y=i[p-u]?.adx;R!==null&&y!==null&&(i[p].adxr=(R+y)/2)}return i}function te(e,t={}){let{afStart:s=.02,afIncrement:u=.02,afMax:i=.2}=t,r=[];if(e.length<2)return e.map(()=>({sar:null,trend:null,ep:null,af:null}));let o=1,n=s,l=e[0].high??0,c=e[0].low??0,a=e[0],m=e[1];a.close!==null&&m.close!==null&&m.close<a.close&&(o=-1,l=a.low??0,c=a.high??0),r.push({sar:null,trend:null,ep:null,af:null});for(let f=1;f<e.length;f++){let h=e[f],d=e[f-1];if(h.high===null||h.low===null||d.high===null||d.low===null){r.push({sar:null,trend:null,ep:null,af:null});continue}let p=c+n*(l-c);o===1?(p=Math.min(p,d.low,e[Math.max(0,f-2)]?.low??d.low),h.low<p?(o=-1,p=l,l=h.low,n=s):h.high>l&&(l=h.high,n=Math.min(n+u,i))):(p=Math.max(p,d.high,e[Math.max(0,f-2)]?.high??d.high),h.high>p?(o=1,p=l,l=h.high,n=s):h.low<l&&(l=h.low,n=Math.min(n+u,i))),c=p,r.push({sar:c,trend:o,ep:l,af:n})}return r}function ne(e,t={}){let{emaPeriod:s=20,atrPeriod:u=10,multiplier:i=2}=t,r=[],o=e.map(c=>c.close),n=D(o,s),l=T(e,{period:u});for(let c=0;c<e.length;c++){let a=n[c],m=l[c]?.atr;if(a===null||m===null){r.push({mid:null,upper:null,lower:null,width:null});continue}let f=a+i*m,h=a-i*m,d=a>0?(f-h)/a*100:null;r.push({mid:a,upper:f,lower:h,width:d})}return r}var k=150;function le(e){return e.open!==null&&e.high!==null&&e.low!==null&&e.close!==null}function pe(e){return Number(e.toPrecision(12))}function E(e){return Number(e.toFixed(2))}function ue(e){return{date:e,profitRatio:null,avgCost:null,cost90Low:null,cost90High:null,concentration90:null,cost70Low:null,cost70High:null,concentration70:null}}function fe(e,t={}){let{range:s=120,tail:u,includeHistogram:i=!1,decimals:r=3}=t,o=e.length;if(o===0)return[];let n=u!==void 0?o-Math.min(o,Math.max(0,Math.floor(u))):0,l=i===!0?"last":i||!1,c=[];for(let a=n;a<o;a++){let m=l==="all"||l==="last"&&a===o-1;c.push(he(e,a,s,r,m))}return c}function he(e,t,s,u,i){let r=e[t].date,o=s?Math.max(0,t-s+1):0,n=e.slice(o,Math.max(1,t+1)),l=-1/0,c=1/0,a=!1;for(let g of n)le(g)&&(a=!0,l=Math.max(l,g.high),c=Math.min(c,g.low));if(!a)return ue(r);let m=Math.max(.01,(l-c)/(k-1)),f=new Array(k).fill(0);for(let g of n){if(!le(g))continue;let{open:I,close:x,high:C,low:M}=g,K=(I+x+C+M)/4,B=Math.max(0,Math.min(1,(g.turnoverRate??0)/100||0)),N=O=>Math.min(k-1,Math.max(0,O)),se=N(Math.floor((C-c)/m)),ie=N(Math.ceil((M-c)/m)),V=C===M?k-1:2/(C-M),ce=N(Math.floor((K-c)/m));for(let O=0;O<f.length;O++)f[O]*=1-B;if(C===M)f[ce]+=V*B/2;else for(let O=ie;O<=se;O++){let $=c+m*O;$<=K?f[O]+=Math.abs(K-M)<1e-8?V*B:($-M)/(K-M)*V*B:f[O]+=Math.abs(C-K)<1e-8?V*B:(C-$)/(C-K)*V*B}}let h=new Array(k),d=0;for(let g=0;g<k;g++)h[g]=pe(f[g]),d+=h[g];if(d===0)return ue(r);let p=g=>{let I=0,x=0;for(let C=0;C<k;C++){let M=h[C];if(x+M>g){I=c+C*m;break}x+=M}return I},R=g=>{let I=0;for(let x=0;x<k;x++)g>=c+x*m&&(I+=h[x]);return I/d},y=g=>{let I=p(d*((1-g)/2)),x=p(d*((1+g)/2));return{low:E(I),high:E(x),concentration:I+x===0?0:(x-I)/(I+x)}},w=e[t].close,v=y(.9),S=y(.7),L={date:r,profitRatio:w!==null?b(R(w),u):null,avgCost:E(p(d*.5)),cost90Low:v.low,cost90High:v.high,concentration90:b(v.concentration,u),cost70Low:S.low,cost70High:S.high,concentration70:b(S.concentration,u)};if(i){let g=new Array(k),I=new Array(k);for(let x=0;x<k;x++)g[x]=E(c+m*x),I[x]=b(h[x]/d,6);L.histogram={prices:g,ratios:I}}return L}function W(e,t=0){return e.length===0?t:Math.max(...e)}function oe(e){return{closes:e.map(t=>t.close),ohlcv:e.map(t=>({open:t.open,high:t.high,low:t.low,close:t.close,volume:t.volume}))}}var H={ma:{key:"ma",estimateLookback:e=>{let t=typeof e=="object"?e:{},s=t.periods??[5,10,20,30,60,120,250],u=t.type??"sma";return{bars:W(s,20),emaBased:u==="ema"}},compute:(e,t)=>J(e.closes,typeof t=="object"?t:{})},macd:{key:"macd",recursive:!0,estimateLookback:e=>{let t=typeof e=="object"?e:{},s=t.long??26,u=t.signal??9;return{bars:s*3+u,emaBased:!0}},compute:(e,t)=>F(e.closes,typeof t=="object"?t:{})},boll:{key:"boll",estimateLookback:e=>({bars:typeof e=="object"&&e.period?e.period:20}),compute:(e,t)=>q(e.closes,typeof t=="object"?t:{})},kdj:{key:"kdj",recursive:!0,estimateLookback:e=>({bars:typeof e=="object"&&e.period?e.period:9}),compute:(e,t)=>G(e.ohlcv,typeof t=="object"?t:{})},rsi:{key:"rsi",recursive:!0,estimateLookback:e=>{let t=typeof e=="object"&&e.periods?e.periods:[6,12,24];return{bars:W(t,14)+1}},compute:(e,t)=>U(e.closes,typeof t=="object"?t:{})},wr:{key:"wr",estimateLookback:e=>{let t=typeof e=="object"&&e.periods?e.periods:[6,10];return{bars:W(t,10)}},compute:(e,t)=>Y(e.ohlcv,typeof t=="object"?t:{})},bias:{key:"bias",estimateLookback:e=>{let t=typeof e=="object"&&e.periods?e.periods:[6,12,24];return{bars:W(t,12)}},compute:(e,t)=>z(e.closes,typeof t=="object"?t:{})},cci:{key:"cci",estimateLookback:e=>({bars:typeof e=="object"&&e.period?e.period:14}),compute:(e,t)=>Q(e.ohlcv,typeof t=="object"?t:{})},atr:{key:"atr",recursive:!0,estimateLookback:e=>({bars:typeof e=="object"&&e.period?e.period:14}),compute:(e,t)=>T(e.ohlcv,typeof t=="object"?t:{})},obv:{key:"obv",cumulative:!0,estimateLookback:e=>{let t=typeof e=="object"&&e.maPeriod?e.maPeriod:0;return{bars:Math.max(2,t)}},compute:(e,t)=>X(e.ohlcv,typeof t=="object"?t:{})},roc:{key:"roc",estimateLookback:e=>{let t=typeof e=="object"?e:{},s=t.period??12,u=t.signalPeriod??0;return{bars:s+u}},compute:(e,t)=>Z(e.ohlcv,typeof t=="object"?t:{})},dmi:{key:"dmi",recursive:!0,estimateLookback:e=>{let t=typeof e=="object"?e:{},s=t.period??14,u=t.adxPeriod??s;return{bars:s*2+u}},compute:(e,t)=>ee(e.ohlcv,typeof t=="object"?t:{})},sar:{key:"sar",recursive:!0,estimateLookback:()=>({bars:5}),compute:(e,t)=>te(e.ohlcv,typeof t=="object"?t:{})},kc:{key:"kc",recursive:!0,estimateLookback:e=>{let t=typeof e=="object"?e:{},s=t.emaPeriod??20,u=t.atrPeriod??10;return{bars:Math.max(s*3,u),emaBased:!0}},compute:(e,t)=>ne(e.ohlcv,typeof t=="object"?t:{})}},be=["ma","rsi","wr","bias"];function _(e){let t=null;for(let s of be){let u=e[s];if(Array.isArray(u))(t??(t={...e}))[s]={periods:u};else if(u&&typeof u=="object"&&!("periods"in u)&&typeof u.period=="number"){let{period:i,...r}=u;(t??(t={...e}))[s]={...r,periods:[i]}}}return t??e}function de(e){return P(_(e)).some(t=>H[t].cumulative===!0)}function P(e){return Object.keys(H).filter(t=>!!e[t])}function ge(e){e=_(e);let t=0,s=0,u=!1;for(let r of P(e)){let o=H[r],n=o.estimateLookback(e[r]);t=Math.max(t,n.bars),u||(u=!!n.emaBased),(o.recursive===!0||n.emaBased===!0)&&(s=Math.max(s,n.bars))}return{maxLookback:t,hasEmaBasedIndicator:u,requiredBars:Math.ceil(t*(u?1.5:1.2)),maxRecursiveLookback:s}}function Re(e,t={}){if(e.length===0)return[];t=_(t);let s=oe(e),u=new Map;for(let o of P(t)){let n=H[o];u.set(o,n.compute(s,t[o]))}let i=[],r=[];for(let[o,n]of u)i.push(o),r.push(n);return e.map((o,n)=>{let l={...o},c=l;for(let a=0;a<i.length;a++)c[i[a]]=r[a][n];return l})}export{j as a,D as b,re as c,J as d,F as e,q as f,G as g,U as h,Y as i,z as j,Q as k,T as l,X as m,Z as n,ee as o,te as p,ne as q,fe as r,oe as s,H as t,de as u,P as v,ge as w,Re as x};
|