@v587d/capital-generation 2.29.0 → 2.30.1
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/CHANGELOG.md +58 -0
- package/README.md +3 -3
- package/THIRD_PARTY_NOTICES.md +16 -0
- package/automation/package.json +1 -1
- package/chart-ui/package.json +1 -1
- package/config/package.json +1 -1
- package/lib/collector-runtime.js +56 -1
- package/lib/data-collector/catalog-taxonomy.d.ts +1 -1
- package/lib/data-collector/catalog-taxonomy.js +33 -0
- package/lib/data-collector/dataset-tools.js +4 -2
- package/lib/data-collector/describe.d.ts +2 -0
- package/lib/data-collector/describe.js +2 -0
- package/lib/data-collector/store.d.ts +11 -0
- package/lib/data-collector/store.js +80 -1
- package/lib/data-collector/tools.d.ts +1 -1
- package/lib/data-collector/tools.js +10 -9
- package/lib/python-runtime/errors.d.ts +1 -1
- package/lib/python-runtime/errors.js +2 -0
- package/lib/python-runtime/manager.d.ts +28 -1
- package/lib/python-runtime/manager.js +141 -5
- package/lib/python-runtime/probe.d.ts +24 -0
- package/lib/python-runtime/probe.js +66 -50
- package/lib/sources/csindex-http.d.ts +4 -0
- package/lib/sources/csindex-http.js +233 -0
- package/lib/sources/eastmoney-http.js +1504 -1
- package/lib/sources/fuyao-rest.js +168 -8
- package/lib/sources/official-http.d.ts +4 -0
- package/lib/sources/official-http.js +477 -0
- package/lib/sources/python-remote.d.ts +25 -0
- package/lib/sources/python-remote.js +461 -0
- package/lib/sources/sina-http.d.ts +2 -0
- package/lib/sources/sina-http.js +484 -0
- package/lib/sources/tencent-http.js +23 -8
- package/lib/sources/ths-http.d.ts +2 -0
- package/lib/sources/ths-http.js +517 -0
- package/lib/time/tools.js +19 -0
- package/lib/web-retriever/local-fetch.d.ts +1 -1
- package/lib/web-retriever/local-fetch.js +1 -1
- package/lib/web-retriever/sources.d.ts +7 -0
- package/lib/web-retriever/sources.js +46 -21
- package/lib/web-retriever/throttle.d.ts +8 -0
- package/lib/web-retriever/throttle.js +13 -0
- package/lib/web-retriever/tools.js +1 -1
- package/lib/web-retriever/wind-client.d.ts +1 -1
- package/lib/web-retriever/wind-client.js +1 -1
- package/package.json +1 -1
- package/preset/capital-generation/agent.patch.yml +7 -5
- package/preset/capital-generation/skills/capital-data-protocol/SKILL.md +16 -16
- package/python/scripts/baostock_stock_basic.py +129 -0
- package/python/scripts/baostock_valuation_history.py +141 -0
- package/python/scripts/pbc_social_financing.py +291 -0
- package/python/vendor/baostock/LICENSE +19 -0
- package/python/vendor/baostock/__init__.py +42 -0
- package/python/vendor/baostock/common/__init__.py +0 -0
- package/python/vendor/baostock/common/contants.py +189 -0
- package/python/vendor/baostock/common/context.py +4 -0
- package/python/vendor/baostock/corpreport/__init__.py +0 -0
- package/python/vendor/baostock/corpreport/corp_performance.py +202 -0
- package/python/vendor/baostock/data/__init__.py +0 -0
- package/python/vendor/baostock/data/messageheader.py +17 -0
- package/python/vendor/baostock/data/msg.py +21 -0
- package/python/vendor/baostock/data/resultset.py +200 -0
- package/python/vendor/baostock/demo/__init__.py +0 -0
- package/python/vendor/baostock/demo/demo_A_stock_5mk-data.py +34 -0
- package/python/vendor/baostock/demo/demo_A_stock_k_data.py +36 -0
- package/python/vendor/baostock/demo/demo_AllStock.py +27 -0
- package/python/vendor/baostock/demo/demo_Balance_data.py +22 -0
- package/python/vendor/baostock/demo/demo_CashFlow_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Dividend_data.py +35 -0
- package/python/vendor/baostock/demo/demo_Dupont_data.py +25 -0
- package/python/vendor/baostock/demo/demo_Forecast_report.py +24 -0
- package/python/vendor/baostock/demo/demo_Growth_data.py +22 -0
- package/python/vendor/baostock/demo/demo_Index_k_data.py +39 -0
- package/python/vendor/baostock/demo/demo_Operation_data.py +22 -0
- package/python/vendor/baostock/demo/demo_PerformanceExpress_report.py +25 -0
- package/python/vendor/baostock/demo/demo_Profit_data.py +22 -0
- package/python/vendor/baostock/demo/demo_TradeDates.py +27 -0
- package/python/vendor/baostock/demo/demo_adjust_factor_data.py +23 -0
- package/python/vendor/baostock/demo/demo_assignDayData.py +23 -0
- package/python/vendor/baostock/demo/demo_daily_adjust_factor_data.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_AStock.py +28 -0
- package/python/vendor/baostock/demo/demo_daily_k_4_ETF.py +28 -0
- package/python/vendor/baostock/demo/demo_depositRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_hs300_stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_loanRate_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataMonth_data.py +26 -0
- package/python/vendor/baostock/demo/demo_moneySupplyDataYear_data.py +26 -0
- package/python/vendor/baostock/demo/demo_requiredReserveRatio_data.py +26 -0
- package/python/vendor/baostock/demo/demo_set_API_key.py +37 -0
- package/python/vendor/baostock/demo/demo_stockBasic_data.py +27 -0
- package/python/vendor/baostock/demo/demo_stock_Valuation_indicator_data.py +34 -0
- package/python/vendor/baostock/demo/demo_stock_industry.py +26 -0
- package/python/vendor/baostock/demo/demo_sz50stocks.py +26 -0
- package/python/vendor/baostock/demo/demo_zz500_stock.py +26 -0
- package/python/vendor/baostock/evaluation/__init__.py +0 -0
- package/python/vendor/baostock/evaluation/season_index.py +758 -0
- package/python/vendor/baostock/login/__init__.py +0 -0
- package/python/vendor/baostock/login/loginout.py +230 -0
- package/python/vendor/baostock/macroscopic/__init__.py +0 -0
- package/python/vendor/baostock/macroscopic/economic_data.py +723 -0
- package/python/vendor/baostock/metadata/__init__.py +0 -0
- package/python/vendor/baostock/metadata/stock_metadata.py +207 -0
- package/python/vendor/baostock/security/__init__.py +0 -0
- package/python/vendor/baostock/security/history.py +265 -0
- package/python/vendor/baostock/security/sectorinfo.py +1024 -0
- package/python/vendor/baostock/util/__init__.py +0 -0
- package/python/vendor/baostock/util/socketutil.py +97 -0
- package/python/vendor/baostock/util/stringutil.py +83 -0
- package/python/vendor/et_xmlfile/LICENSE +23 -0
- package/python/vendor/et_xmlfile/LICENSE.python +298 -0
- package/python/vendor/et_xmlfile/__init__.py +8 -0
- package/python/vendor/et_xmlfile/incremental_tree.py +917 -0
- package/python/vendor/et_xmlfile/xmlfile.py +158 -0
- package/python/vendor/openpyxl/LICENSE +23 -0
- package/python/vendor/openpyxl/__init__.py +19 -0
- package/python/vendor/openpyxl/_constants.py +13 -0
- package/python/vendor/openpyxl/cell/__init__.py +4 -0
- package/python/vendor/openpyxl/cell/_writer.py +136 -0
- package/python/vendor/openpyxl/cell/cell.py +332 -0
- package/python/vendor/openpyxl/cell/read_only.py +136 -0
- package/python/vendor/openpyxl/cell/rich_text.py +202 -0
- package/python/vendor/openpyxl/cell/text.py +184 -0
- package/python/vendor/openpyxl/chart/_3d.py +105 -0
- package/python/vendor/openpyxl/chart/__init__.py +19 -0
- package/python/vendor/openpyxl/chart/_chart.py +199 -0
- package/python/vendor/openpyxl/chart/area_chart.py +106 -0
- package/python/vendor/openpyxl/chart/axis.py +401 -0
- package/python/vendor/openpyxl/chart/bar_chart.py +144 -0
- package/python/vendor/openpyxl/chart/bubble_chart.py +67 -0
- package/python/vendor/openpyxl/chart/chartspace.py +195 -0
- package/python/vendor/openpyxl/chart/data_source.py +246 -0
- package/python/vendor/openpyxl/chart/descriptors.py +43 -0
- package/python/vendor/openpyxl/chart/error_bar.py +62 -0
- package/python/vendor/openpyxl/chart/label.py +127 -0
- package/python/vendor/openpyxl/chart/layout.py +74 -0
- package/python/vendor/openpyxl/chart/legend.py +75 -0
- package/python/vendor/openpyxl/chart/line_chart.py +129 -0
- package/python/vendor/openpyxl/chart/marker.py +90 -0
- package/python/vendor/openpyxl/chart/picture.py +35 -0
- package/python/vendor/openpyxl/chart/pie_chart.py +177 -0
- package/python/vendor/openpyxl/chart/pivot.py +65 -0
- package/python/vendor/openpyxl/chart/plotarea.py +162 -0
- package/python/vendor/openpyxl/chart/print_settings.py +57 -0
- package/python/vendor/openpyxl/chart/radar_chart.py +55 -0
- package/python/vendor/openpyxl/chart/reader.py +32 -0
- package/python/vendor/openpyxl/chart/reference.py +124 -0
- package/python/vendor/openpyxl/chart/scatter_chart.py +53 -0
- package/python/vendor/openpyxl/chart/series.py +197 -0
- package/python/vendor/openpyxl/chart/series_factory.py +41 -0
- package/python/vendor/openpyxl/chart/shapes.py +89 -0
- package/python/vendor/openpyxl/chart/stock_chart.py +54 -0
- package/python/vendor/openpyxl/chart/surface_chart.py +119 -0
- package/python/vendor/openpyxl/chart/text.py +78 -0
- package/python/vendor/openpyxl/chart/title.py +76 -0
- package/python/vendor/openpyxl/chart/trendline.py +98 -0
- package/python/vendor/openpyxl/chart/updown_bars.py +31 -0
- package/python/vendor/openpyxl/chartsheet/__init__.py +3 -0
- package/python/vendor/openpyxl/chartsheet/chartsheet.py +107 -0
- package/python/vendor/openpyxl/chartsheet/custom.py +61 -0
- package/python/vendor/openpyxl/chartsheet/properties.py +28 -0
- package/python/vendor/openpyxl/chartsheet/protection.py +41 -0
- package/python/vendor/openpyxl/chartsheet/publish.py +58 -0
- package/python/vendor/openpyxl/chartsheet/relation.py +97 -0
- package/python/vendor/openpyxl/chartsheet/views.py +51 -0
- package/python/vendor/openpyxl/comments/__init__.py +4 -0
- package/python/vendor/openpyxl/comments/author.py +21 -0
- package/python/vendor/openpyxl/comments/comment_sheet.py +211 -0
- package/python/vendor/openpyxl/comments/comments.py +62 -0
- package/python/vendor/openpyxl/comments/shape_writer.py +112 -0
- package/python/vendor/openpyxl/compat/__init__.py +54 -0
- package/python/vendor/openpyxl/compat/abc.py +8 -0
- package/python/vendor/openpyxl/compat/numbers.py +43 -0
- package/python/vendor/openpyxl/compat/product.py +17 -0
- package/python/vendor/openpyxl/compat/singleton.py +40 -0
- package/python/vendor/openpyxl/compat/strings.py +25 -0
- package/python/vendor/openpyxl/descriptors/__init__.py +58 -0
- package/python/vendor/openpyxl/descriptors/base.py +272 -0
- package/python/vendor/openpyxl/descriptors/container.py +41 -0
- package/python/vendor/openpyxl/descriptors/excel.py +112 -0
- package/python/vendor/openpyxl/descriptors/namespace.py +12 -0
- package/python/vendor/openpyxl/descriptors/nested.py +129 -0
- package/python/vendor/openpyxl/descriptors/sequence.py +136 -0
- package/python/vendor/openpyxl/descriptors/serialisable.py +240 -0
- package/python/vendor/openpyxl/descriptors/slots.py +18 -0
- package/python/vendor/openpyxl/drawing/__init__.py +4 -0
- package/python/vendor/openpyxl/drawing/colors.py +435 -0
- package/python/vendor/openpyxl/drawing/connector.py +144 -0
- package/python/vendor/openpyxl/drawing/drawing.py +92 -0
- package/python/vendor/openpyxl/drawing/effect.py +407 -0
- package/python/vendor/openpyxl/drawing/fill.py +425 -0
- package/python/vendor/openpyxl/drawing/geometry.py +584 -0
- package/python/vendor/openpyxl/drawing/graphic.py +177 -0
- package/python/vendor/openpyxl/drawing/image.py +65 -0
- package/python/vendor/openpyxl/drawing/line.py +144 -0
- package/python/vendor/openpyxl/drawing/picture.py +144 -0
- package/python/vendor/openpyxl/drawing/properties.py +174 -0
- package/python/vendor/openpyxl/drawing/relation.py +17 -0
- package/python/vendor/openpyxl/drawing/spreadsheet_drawing.py +382 -0
- package/python/vendor/openpyxl/drawing/text.py +717 -0
- package/python/vendor/openpyxl/drawing/xdr.py +33 -0
- package/python/vendor/openpyxl/formatting/__init__.py +3 -0
- package/python/vendor/openpyxl/formatting/formatting.py +114 -0
- package/python/vendor/openpyxl/formatting/rule.py +291 -0
- package/python/vendor/openpyxl/formula/__init__.py +3 -0
- package/python/vendor/openpyxl/formula/tokenizer.py +446 -0
- package/python/vendor/openpyxl/formula/translate.py +166 -0
- package/python/vendor/openpyxl/packaging/__init__.py +3 -0
- package/python/vendor/openpyxl/packaging/core.py +115 -0
- package/python/vendor/openpyxl/packaging/custom.py +289 -0
- package/python/vendor/openpyxl/packaging/extended.py +137 -0
- package/python/vendor/openpyxl/packaging/interface.py +56 -0
- package/python/vendor/openpyxl/packaging/manifest.py +194 -0
- package/python/vendor/openpyxl/packaging/relationship.py +158 -0
- package/python/vendor/openpyxl/packaging/workbook.py +185 -0
- package/python/vendor/openpyxl/pivot/__init__.py +1 -0
- package/python/vendor/openpyxl/pivot/cache.py +965 -0
- package/python/vendor/openpyxl/pivot/fields.py +326 -0
- package/python/vendor/openpyxl/pivot/record.py +111 -0
- package/python/vendor/openpyxl/pivot/table.py +1261 -0
- package/python/vendor/openpyxl/reader/__init__.py +1 -0
- package/python/vendor/openpyxl/reader/drawings.py +71 -0
- package/python/vendor/openpyxl/reader/excel.py +349 -0
- package/python/vendor/openpyxl/reader/strings.py +44 -0
- package/python/vendor/openpyxl/reader/workbook.py +133 -0
- package/python/vendor/openpyxl/styles/__init__.py +11 -0
- package/python/vendor/openpyxl/styles/alignment.py +62 -0
- package/python/vendor/openpyxl/styles/borders.py +103 -0
- package/python/vendor/openpyxl/styles/builtins.py +1397 -0
- package/python/vendor/openpyxl/styles/cell_style.py +206 -0
- package/python/vendor/openpyxl/styles/colors.py +172 -0
- package/python/vendor/openpyxl/styles/differential.py +95 -0
- package/python/vendor/openpyxl/styles/fills.py +224 -0
- package/python/vendor/openpyxl/styles/fonts.py +113 -0
- package/python/vendor/openpyxl/styles/named_styles.py +282 -0
- package/python/vendor/openpyxl/styles/numbers.py +200 -0
- package/python/vendor/openpyxl/styles/protection.py +17 -0
- package/python/vendor/openpyxl/styles/proxy.py +62 -0
- package/python/vendor/openpyxl/styles/styleable.py +151 -0
- package/python/vendor/openpyxl/styles/stylesheet.py +274 -0
- package/python/vendor/openpyxl/styles/table.py +94 -0
- package/python/vendor/openpyxl/utils/__init__.py +17 -0
- package/python/vendor/openpyxl/utils/bound_dictionary.py +26 -0
- package/python/vendor/openpyxl/utils/cell.py +240 -0
- package/python/vendor/openpyxl/utils/dataframe.py +87 -0
- package/python/vendor/openpyxl/utils/datetime.py +140 -0
- package/python/vendor/openpyxl/utils/escape.py +43 -0
- package/python/vendor/openpyxl/utils/exceptions.py +34 -0
- package/python/vendor/openpyxl/utils/formulas.py +24 -0
- package/python/vendor/openpyxl/utils/indexed_list.py +49 -0
- package/python/vendor/openpyxl/utils/inference.py +60 -0
- package/python/vendor/openpyxl/utils/protection.py +22 -0
- package/python/vendor/openpyxl/utils/units.py +108 -0
- package/python/vendor/openpyxl/workbook/__init__.py +4 -0
- package/python/vendor/openpyxl/workbook/_writer.py +197 -0
- package/python/vendor/openpyxl/workbook/child.py +166 -0
- package/python/vendor/openpyxl/workbook/defined_name.py +189 -0
- package/python/vendor/openpyxl/workbook/external_link/__init__.py +3 -0
- package/python/vendor/openpyxl/workbook/external_link/external.py +190 -0
- package/python/vendor/openpyxl/workbook/external_reference.py +18 -0
- package/python/vendor/openpyxl/workbook/function_group.py +36 -0
- package/python/vendor/openpyxl/workbook/properties.py +151 -0
- package/python/vendor/openpyxl/workbook/protection.py +163 -0
- package/python/vendor/openpyxl/workbook/smart_tags.py +56 -0
- package/python/vendor/openpyxl/workbook/views.py +155 -0
- package/python/vendor/openpyxl/workbook/web.py +98 -0
- package/python/vendor/openpyxl/workbook/workbook.py +438 -0
- package/python/vendor/openpyxl/worksheet/__init__.py +1 -0
- package/python/vendor/openpyxl/worksheet/_read_only.py +190 -0
- package/python/vendor/openpyxl/worksheet/_reader.py +472 -0
- package/python/vendor/openpyxl/worksheet/_write_only.py +160 -0
- package/python/vendor/openpyxl/worksheet/_writer.py +390 -0
- package/python/vendor/openpyxl/worksheet/cell_range.py +512 -0
- package/python/vendor/openpyxl/worksheet/cell_watch.py +34 -0
- package/python/vendor/openpyxl/worksheet/controls.py +107 -0
- package/python/vendor/openpyxl/worksheet/copier.py +70 -0
- package/python/vendor/openpyxl/worksheet/custom.py +35 -0
- package/python/vendor/openpyxl/worksheet/datavalidation.py +202 -0
- package/python/vendor/openpyxl/worksheet/dimensions.py +306 -0
- package/python/vendor/openpyxl/worksheet/drawing.py +14 -0
- package/python/vendor/openpyxl/worksheet/errors.py +93 -0
- package/python/vendor/openpyxl/worksheet/filters.py +486 -0
- package/python/vendor/openpyxl/worksheet/formula.py +51 -0
- package/python/vendor/openpyxl/worksheet/header_footer.py +270 -0
- package/python/vendor/openpyxl/worksheet/hyperlink.py +46 -0
- package/python/vendor/openpyxl/worksheet/merge.py +141 -0
- package/python/vendor/openpyxl/worksheet/ole.py +133 -0
- package/python/vendor/openpyxl/worksheet/page.py +174 -0
- package/python/vendor/openpyxl/worksheet/pagebreak.py +94 -0
- package/python/vendor/openpyxl/worksheet/picture.py +8 -0
- package/python/vendor/openpyxl/worksheet/print_settings.py +184 -0
- package/python/vendor/openpyxl/worksheet/properties.py +97 -0
- package/python/vendor/openpyxl/worksheet/protection.py +120 -0
- package/python/vendor/openpyxl/worksheet/related.py +17 -0
- package/python/vendor/openpyxl/worksheet/scenario.py +105 -0
- package/python/vendor/openpyxl/worksheet/smart_tag.py +78 -0
- package/python/vendor/openpyxl/worksheet/table.py +385 -0
- package/python/vendor/openpyxl/worksheet/views.py +155 -0
- package/python/vendor/openpyxl/worksheet/worksheet.py +907 -0
- package/python/vendor/openpyxl/writer/__init__.py +1 -0
- package/python/vendor/openpyxl/writer/excel.py +295 -0
- package/python/vendor/openpyxl/writer/theme.py +291 -0
- package/python/vendor/openpyxl/xml/__init__.py +42 -0
- package/python/vendor/openpyxl/xml/constants.py +129 -0
- package/python/vendor/openpyxl/xml/functions.py +87 -0
- package/watchlist/package.json +1 -1
|
@@ -20,6 +20,9 @@ const AUCTION_STAGES = ['live', 'final'];
|
|
|
20
20
|
const SORT_DIRECTIONS = ['asc', 'desc'];
|
|
21
21
|
const LIMIT_UP_SORT_FIELDS = ['last_price', 'continue_day_cnt', 'seal_money', 'limit_up_time'];
|
|
22
22
|
const INDEX_TAGS = ['cn_concept', 'region', 'tszs', 'industry'];
|
|
23
|
+
const ABNORMAL_MONITOR_STATES = ['current', 'history'];
|
|
24
|
+
/** Upstream pagination caps 1..30; asking for 31 returns 1003. */
|
|
25
|
+
const MAX_ABNORMAL_MONITOR_SIZE = 30;
|
|
23
26
|
const RANK_PERIODS = ['day', 'hour'];
|
|
24
27
|
const ANOMALY_TAGS = ['LIMIT_UP', 'LIMIT_DOWN', 'SHARP_RISE', 'SHARP_FALL', 'RAPID_RALLY', 'RAPID_DECLINE'];
|
|
25
28
|
const DRAGON_TIGER_BOARDS = ['all', 'org', 'hot_money'];
|
|
@@ -303,6 +306,32 @@ function validateAbilities(data) {
|
|
|
303
306
|
&& (indicator.value === null || typeof indicator.value === 'string'));
|
|
304
307
|
});
|
|
305
308
|
}
|
|
309
|
+
/** Membership rows may legitimately carry an empty list; every element still has to be a TI triple. */
|
|
310
|
+
function validateIndexMembership(data) {
|
|
311
|
+
if (!isRecord(data) || !Array.isArray(data.item))
|
|
312
|
+
return false;
|
|
313
|
+
return data.item.every((row) => {
|
|
314
|
+
if (!isRecord(row) || !Array.isArray(row.index_list))
|
|
315
|
+
return false;
|
|
316
|
+
return row.index_list.every((entry) => isRecord(entry)
|
|
317
|
+
&& typeof entry.thscode === 'string'
|
|
318
|
+
&& typeof entry.name === 'string'
|
|
319
|
+
&& INDEX_TAGS.includes(String(entry.type)));
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/** Two nested arrays; both counts are integers, promotion_rate is null for the one-board bucket. */
|
|
323
|
+
function validateLimitUpStatistics(data) {
|
|
324
|
+
if (!isRecord(data) || !Array.isArray(data.page_boards) || !Array.isArray(data.exact_boards))
|
|
325
|
+
return false;
|
|
326
|
+
const pageBuckets = data.page_boards.every((row) => isRecord(row)
|
|
327
|
+
&& typeof row.board_level === 'string'
|
|
328
|
+
&& typeof row.stock_count === 'number'
|
|
329
|
+
&& (row.promotion_rate === null || typeof row.promotion_rate === 'number'));
|
|
330
|
+
const exactBuckets = data.exact_boards.every((row) => isRecord(row)
|
|
331
|
+
&& typeof row.board_num === 'number'
|
|
332
|
+
&& typeof row.stock_count === 'number');
|
|
333
|
+
return pageBuckets && exactBuckets;
|
|
334
|
+
}
|
|
306
335
|
const nullableInteger = { oneOf: [{ type: 'integer' }, { type: 'null' }] };
|
|
307
336
|
const envelopeData = (item) => ({ type: 'object', properties: { timestamp: nullableInteger, total: nullableInteger, item }, additionalProperties: true });
|
|
308
337
|
const searchOutput = envelopeData({ type: 'array', items: { type: 'object', properties: { thscode: { type: 'string' }, ticker: { type: 'string' }, name: { type: 'string' }, exchange: { type: 'string' }, asset_type: { type: 'string' }, currency: { type: 'string' } }, additionalProperties: true } });
|
|
@@ -327,14 +356,16 @@ function rowSchema(fields) {
|
|
|
327
356
|
const tickerFields = { thscode: 'text', ticker: 'text?', name: 'text?', exchange: 'text?', asset_type: 'text?', currency: 'text?', list_date: 'text?', end_date: 'text?', last_trade_date: 'text?', last_delivery_date: 'text?' };
|
|
328
357
|
const valuationFields = { thscode: 'text', ticker: 'text?', name: 'text?', pe_ttm: 'number?', pe_mrq: 'number?', pb_mrq: 'number?', ps_ttm: 'number?', pcf_ttm: 'number?' };
|
|
329
358
|
const auctionFields = { thscode: 'text', ticker: 'text?', name: 'text?', auction_price: 'number?', auction_pct: 'number?', auction_volume: 'number?', auction_amount: 'number?', auction_unmatched: 'number?', auction_turnover_pct: 'number?', auction_yesterday_ratio_pct: 'number?', auction_volume_ratio: 'number?', pre_close_price: 'number?', open_price: 'number?', last_price: 'number?', float_market_cap: 'number?' };
|
|
330
|
-
const limitUpPoolFields = { thscode: 'text', ticker: 'text?', name: 'text?', is_st: 'boolean?', is_new: 'boolean?', last_price: 'number?', price_change_ratio_pct: 'number?', limit_up_time: 'text?', limit_up_reason: 'text?', continue_day_text: 'text?', continue_day_cnt: 'number?', seal_money: 'number?', max_seal_money: 'number?' };
|
|
359
|
+
const limitUpPoolFields = { thscode: 'text', ticker: 'text?', name: 'text?', is_st: 'boolean?', is_new: 'boolean?', last_price: 'number?', price_change_ratio_pct: 'number?', limit_up_time: 'text?', limit_up_reason: 'text?', continue_day_text: 'text?', continue_day_cnt: 'number?', seal_money: 'number?', max_seal_money: 'number?', open_times: 'number?' };
|
|
331
360
|
const ladderFields = { date: 'text', boards: 'object' };
|
|
332
361
|
const indexCatalogFields = { thscode: 'text', name: 'text?' };
|
|
333
362
|
const indexConstituentFields = { thscode: 'text', ticker: 'text?', name: 'text?' };
|
|
363
|
+
const indexMembershipFields = { thscode: 'text', index_list: 'array' };
|
|
364
|
+
const abnormalMonitorFields = { thscode: 'text?', name: 'text?', start_date_ms: 'number', end_date_ms: 'number?', monitor_type: 'number', monitor_label: 'text' };
|
|
334
365
|
const indexQuoteFields = { thscode: 'text', ticker: 'text?', last_price: 'number?', price_change: 'number?', price_change_ratio_pct: 'number?', open_price: 'number?', high_price: 'number?', low_price: 'number?', prev_price: 'number?', volume: 'number?', turnover: 'number?' };
|
|
335
366
|
const indexHistoryFields = { date_ms: 'number', open_price: 'number?', high_price: 'number?', low_price: 'number?', close_price: 'number?', volume: 'number?', turnover: 'number?' };
|
|
336
367
|
const limitDownFields = { thscode: 'text', ticker: 'text?', name: 'text?', last_price: 'number?', price_change_ratio_pct: 'number?', first_limit_time: 'text?', last_limit_time: 'text?', turnover_ratio_pct: 'number?' };
|
|
337
|
-
const limitBreakFields = { thscode: 'text', ticker: 'text?', name: 'text?', last_price: 'number?', price_change_ratio_pct: 'number?', open_times: 'number?', turnover_ratio_pct: 'number?', turnover: 'number?' };
|
|
368
|
+
const limitBreakFields = { thscode: 'text', ticker: 'text?', name: 'text?', last_price: 'number?', price_change_ratio_pct: 'number?', open_times: 'number?', first_seal_time: 'text?', last_seal_time: 'text?', turnover_ratio_pct: 'number?', turnover: 'number?' };
|
|
338
369
|
const rankListFields = { thscode: 'text', ticker: 'text?', name: 'text?', rank: 'number?', heat: 'text?', rank_change: 'number?', rank_trend: 'text?' };
|
|
339
370
|
const hotStockHistoryFields = { thscode: 'text', ticker: 'text?', name: 'text?', rank: 'number?' };
|
|
340
371
|
const rankTrendFields = { thscode: 'text', ticker: 'text?', date: 'text', date_ms: 'number?', rank: 'number?' };
|
|
@@ -586,6 +617,30 @@ function normalizeIndexCatalog(params) {
|
|
|
586
617
|
function normalizeIndexConstituents(params) {
|
|
587
618
|
return { thscode: indexCodeToken(requiredText(params.thscode, 'thscode', 32), 'thscode') };
|
|
588
619
|
}
|
|
620
|
+
function normalizeIndexMembership(params) {
|
|
621
|
+
// Upstream keeps the singular name even for 1-100 codes; the model-facing key must match it
|
|
622
|
+
// because the Hub re-normalizes its own output and rejects keys the model did not declare.
|
|
623
|
+
const normalized = { thscode: codeList(params.thscode, 'thscode', { maximum: MAX_BATCH_CODES }) };
|
|
624
|
+
if (params.type !== undefined)
|
|
625
|
+
normalized.type = enumValue(params.type, 'type', INDEX_TAGS, lowerCase);
|
|
626
|
+
return normalized;
|
|
627
|
+
}
|
|
628
|
+
function normalizeLimitUpStatistics(params) {
|
|
629
|
+
const normalized = {};
|
|
630
|
+
if (params.date !== undefined)
|
|
631
|
+
normalized.date = dateString(params.date, 'date');
|
|
632
|
+
return normalized;
|
|
633
|
+
}
|
|
634
|
+
function normalizeAbnormalMonitor(params) {
|
|
635
|
+
const normalized = {};
|
|
636
|
+
if (params.state !== undefined)
|
|
637
|
+
normalized.state = enumValue(params.state, 'state', ABNORMAL_MONITOR_STATES, lowerCase);
|
|
638
|
+
if (params.page !== undefined)
|
|
639
|
+
normalized.page = integer(params.page, 'page', { minimum: 1 });
|
|
640
|
+
if (params.size !== undefined)
|
|
641
|
+
normalized.size = integer(params.size, 'size', { minimum: 1, maximum: MAX_ABNORMAL_MONITOR_SIZE });
|
|
642
|
+
return normalized;
|
|
643
|
+
}
|
|
589
644
|
function normalizeIndexQuote(params) {
|
|
590
645
|
return { thscodes: codeList(params.thscodes, 'thscodes', { kind: 'index' }) };
|
|
591
646
|
}
|
|
@@ -1066,7 +1121,7 @@ function endpointDefinitions() {
|
|
|
1066
1121
|
name: 'get_a_share_special_data_limit_up_pool',
|
|
1067
1122
|
capability: 'limit_up_pool',
|
|
1068
1123
|
summary: '按交易日分页的涨停/连板股票池',
|
|
1069
|
-
description: '按交易日获取 A 股涨停/连板股票池(后端固定取全部连板与 main/chinext/ssestar/north 四类板块)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 last_price / continue_day_cnt / seal_money / limit_up_time,sort_dir 取 asc / desc。响应的 data.pagination 给出上游 total/pages/size/page——它描述上游结果集,不等于本 Dataset 的行数;单次请求只取一页,不做自动翻页。limit_up_reason 上游空串会标准化为 null;seal_money/max_seal_money
|
|
1124
|
+
description: '按交易日获取 A 股涨停/连板股票池(后端固定取全部连板与 main/chinext/ssestar/north 四类板块)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 last_price / continue_day_cnt / seal_money / limit_up_time,sort_dir 取 asc / desc。响应的 data.pagination 给出上游 total/pages/size/page——它描述上游结果集,不等于本 Dataset 的行数;单次请求只取一页,不做自动翻页。limit_up_reason 上游空串会标准化为 null;seal_money/max_seal_money 单位为元;open_times 为盘中被打开次数(上游实测返回,2026-11-22 起收录)。⛔ 本能力**只给首封时间** `limit_up_time`(HH:mm),末封板时间、所属行业、封板资金分笔上游不返回——要这几列请用东财口径 `eastmoney_limit_up_pool`(`last_seal`/`industry`)。两家口径的涨停家数与连板数不可混算、不可拼接。',
|
|
1070
1125
|
path: '/api/a-share/special-data/limit-up-pool',
|
|
1071
1126
|
inputSchema: objectSchema({
|
|
1072
1127
|
date_ms: { type: 'integer', minimum: 0, description: '交易日上海时区零点毫秒戳;省略回退服务端当前自然日' },
|
|
@@ -1108,6 +1163,62 @@ function endpointDefinitions() {
|
|
|
1108
1163
|
normalize: () => ({}),
|
|
1109
1164
|
guard: { data: { window: 'object' }, item: ladderFields },
|
|
1110
1165
|
},
|
|
1166
|
+
{
|
|
1167
|
+
name: 'get_a_share_special_data_limit_up_statistics',
|
|
1168
|
+
capability: 'limit_up_statistics',
|
|
1169
|
+
summary: '涨停市场统计(封板率/打开家数/连板档位)',
|
|
1170
|
+
description: '按交易日获取 A 股涨停市场统计:封板率、涨停打开家数、封板/触板家数、页面档位与精确连板家数。date 可选,格式 yyyy-MM-dd,只支持一年内;省略取最近可用交易日,但响应里的 trade_date 才是业务所属交易日,必须按它核对。seal_rate 与 promotion_rate 是**小数比例**(0.71 表示 71%),不做百分数换算;promotion_rate 对 one 档固定 null,five_plus 是**合并档位**,不能当五板精确家数;精确家数看 exact_boards[](board_num >= 2)。⛔ 与 limit_up_pool / limit_up_ladder / limit_break_pool 是「统计 vs 名单」分工:封板率、打开家数、晋级率用本能力,个股与连板名单用后者,不互相替代。⛔ 统计口径(是否剔除 ST / 新股 / 北交所)上游未声明,不得自造口径;与名单计数不一致时按本能力原值转述并注明口径未确认。',
|
|
1171
|
+
path: '/api/a-share/special-data/limit-up-statistics',
|
|
1172
|
+
inputSchema: objectSchema({
|
|
1173
|
+
date: { type: 'string', description: '目标交易日,格式 yyyy-MM-dd,只支持一年内;省略取最近可用交易日' },
|
|
1174
|
+
}),
|
|
1175
|
+
outputSchema: {
|
|
1176
|
+
type: 'object',
|
|
1177
|
+
properties: {
|
|
1178
|
+
timestamp: { type: 'integer' },
|
|
1179
|
+
trade_date: { type: 'string' },
|
|
1180
|
+
seal_rate: { oneOf: [{ type: 'number' }, { type: 'null' }] },
|
|
1181
|
+
open_stock_count: { type: 'integer' },
|
|
1182
|
+
limit_up_stock_count: { type: 'integer' },
|
|
1183
|
+
touched_limit_up_stock_count: { type: 'integer' },
|
|
1184
|
+
page_boards: {
|
|
1185
|
+
type: 'array',
|
|
1186
|
+
items: {
|
|
1187
|
+
type: 'object',
|
|
1188
|
+
properties: {
|
|
1189
|
+
board_level: { type: 'string' },
|
|
1190
|
+
stock_count: { type: 'integer' },
|
|
1191
|
+
promotion_rate: { oneOf: [{ type: 'number' }, { type: 'null' }] },
|
|
1192
|
+
},
|
|
1193
|
+
additionalProperties: true,
|
|
1194
|
+
},
|
|
1195
|
+
},
|
|
1196
|
+
exact_boards: {
|
|
1197
|
+
type: 'array',
|
|
1198
|
+
items: {
|
|
1199
|
+
type: 'object',
|
|
1200
|
+
properties: { board_num: { type: 'integer' }, stock_count: { type: 'integer' } },
|
|
1201
|
+
additionalProperties: true,
|
|
1202
|
+
},
|
|
1203
|
+
},
|
|
1204
|
+
},
|
|
1205
|
+
additionalProperties: true,
|
|
1206
|
+
},
|
|
1207
|
+
allowed: ['date'],
|
|
1208
|
+
normalize: normalizeLimitUpStatistics,
|
|
1209
|
+
guard: {
|
|
1210
|
+
data: {
|
|
1211
|
+
trade_date: 'text',
|
|
1212
|
+
seal_rate: 'number?',
|
|
1213
|
+
open_stock_count: 'number',
|
|
1214
|
+
limit_up_stock_count: 'number',
|
|
1215
|
+
touched_limit_up_stock_count: 'number',
|
|
1216
|
+
page_boards: 'array',
|
|
1217
|
+
exact_boards: 'array',
|
|
1218
|
+
},
|
|
1219
|
+
custom: validateLimitUpStatistics,
|
|
1220
|
+
},
|
|
1221
|
+
},
|
|
1111
1222
|
{
|
|
1112
1223
|
name: 'get_a_share_index_catalog_ths_index_list',
|
|
1113
1224
|
capability: 'index_catalog',
|
|
@@ -1136,6 +1247,21 @@ function endpointDefinitions() {
|
|
|
1136
1247
|
normalize: normalizeIndexConstituents,
|
|
1137
1248
|
guard: { item: indexConstituentFields },
|
|
1138
1249
|
},
|
|
1250
|
+
{
|
|
1251
|
+
name: 'get_a_share_index_constituents_ths_index_list_by_stock',
|
|
1252
|
+
capability: 'index_membership_by_stock',
|
|
1253
|
+
summary: '个股反查所属行业/概念/地域/特色板块(批量 100)',
|
|
1254
|
+
description: '按个股反查当前所属的行业、概念、地域与特色板块,支持单只与批量(1–100 只)。thscode 必填,逗号分隔的完整 A 股代码(SH/SZ/BJ,不接受指数或基金);type 可选,取 cn_concept / industry / region / tszs,省略返回四类。返回 data.item[],每只股票一组:thscode 与 index_list[](thscode / name / type);无匹配也保留空数组,不省略分组。板块代码是**同花顺指数**(如 881273.TI 白酒),可直接传给 index_quote / index_constituents;⛔ 这是同花顺行业口径,不是申万三级,不得与 ftshare_sw_* 的申万行业混用后比较。⛔ 参数层整批失败:空项、裸代码、中文逗号、非法 type 全部本地拒绝(上游 1002),不会只丢坏的那一项;返回是一份关系快照,无分页。',
|
|
1255
|
+
path: '/api/a-share-index/constituents/ths-index-list-by-stock',
|
|
1256
|
+
inputSchema: objectSchema({
|
|
1257
|
+
thscode: { type: 'string', description: '逗号分隔的完整 A 股代码(如 600519.SH,000001.SZ),去重前最多 100 个' },
|
|
1258
|
+
type: { type: 'string', enum: INDEX_TAGS, description: '板块分类:cn_concept 概念 / industry 行业 / region 地域 / tszs 特色;省略返回四类' },
|
|
1259
|
+
}, ['thscode']),
|
|
1260
|
+
outputSchema: envelopeData({ type: 'array', items: rowSchema(indexMembershipFields) }),
|
|
1261
|
+
allowed: ['thscode', 'type'],
|
|
1262
|
+
normalize: normalizeIndexMembership,
|
|
1263
|
+
guard: { item: indexMembershipFields, custom: validateIndexMembership },
|
|
1264
|
+
},
|
|
1139
1265
|
{
|
|
1140
1266
|
name: 'get_a_share_index_prices_snapshot',
|
|
1141
1267
|
capability: 'index_quote',
|
|
@@ -1172,7 +1298,7 @@ function endpointDefinitions() {
|
|
|
1172
1298
|
name: 'get_a_share_special_data_limit_down_pool',
|
|
1173
1299
|
capability: 'limit_down_pool',
|
|
1174
1300
|
summary: '按交易日分页的跌停股票池',
|
|
1175
|
-
description: '按交易日获取 A 股跌停股票池(首次/最后跌停时间为上海时区 HH:mm)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 last_limit_time / first_limit_time / last_price / price_change_ratio_pct / turnover_ratio_pct,sort_dir 取 asc / desc。data.pagination 描述上游结果集,不等于本 Dataset 行数;单次只取一页,不自动翻页。turnover_ratio_pct
|
|
1301
|
+
description: '按交易日获取 A 股跌停股票池(首次/最后跌停时间为上海时区 HH:mm)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 last_limit_time / first_limit_time / last_price / price_change_ratio_pct / turnover_ratio_pct,sort_dir 取 asc / desc。data.pagination 描述上游结果集,不等于本 Dataset 行数;单次只取一页,不自动翻页。turnover_ratio_pct 为换手率百分数原值。⛔ 封单资金、连续跌停天数、开板次数、板上成交额、所属行业上游不返回——要这几列请用东财口径 `eastmoney_limit_down_pool`(`seal_fund`/`limit_down_days`/`open_times`/`board_amount`/`industry`),两家口径不可混算。',
|
|
1176
1302
|
path: '/api/a-share/special-data/limit-down-pool',
|
|
1177
1303
|
inputSchema: objectSchema({
|
|
1178
1304
|
date_ms: { type: 'integer', minimum: 0, description: '交易日上海时区零点毫秒戳;省略回退服务端当前自然日' },
|
|
@@ -1191,7 +1317,7 @@ function endpointDefinitions() {
|
|
|
1191
1317
|
name: 'get_a_share_special_data_limit_break_pool',
|
|
1192
1318
|
capability: 'limit_break_pool',
|
|
1193
1319
|
summary: '按交易日分页的炸板(涨停破板)股票池',
|
|
1194
|
-
description: '按交易日获取 A 股涨停炸板股票池(接口直接消费炸板集合,不做服务端归因)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 price_change_ratio_pct / open_times / last_price / turnover_ratio_pct / turnover,sort_dir 取 asc / desc。open_times 为盘中开板次数;turnover 为成交额(元);data.pagination 描述上游结果集,不等于本 Dataset
|
|
1320
|
+
description: '按交易日获取 A 股涨停炸板股票池(接口直接消费炸板集合,不做服务端归因)。date_ms 为交易日上海时区零点毫秒戳(省略回退服务端当日);page >= 1;size 取值 1~200(默认 50);sort_field 取 price_change_ratio_pct / open_times / last_price / turnover_ratio_pct / turnover,sort_dir 取 asc / desc。open_times 为盘中开板次数;first_seal_time / last_seal_time 为首次与末次封板时间(HH:mm,上游实测返回,2026-11-22 起收录);turnover 为成交额(元);data.pagination 描述上游结果集,不等于本 Dataset 行数。⛔ 振幅、涨速、涨停价、所属行业上游不返回——要这几列请用东财口径 `eastmoney_limit_break_pool`(`amplitude_pct`/`speed_pct`/`industry`),两家口径不可混算。',
|
|
1195
1321
|
path: '/api/a-share/special-data/limit-break-pool',
|
|
1196
1322
|
inputSchema: objectSchema({
|
|
1197
1323
|
date_ms: { type: 'integer', minimum: 0, description: '交易日上海时区零点毫秒戳;省略回退服务端当前自然日' },
|
|
@@ -1224,7 +1350,7 @@ function endpointDefinitions() {
|
|
|
1224
1350
|
name: 'get_a_share_special_data_hot_stock_list',
|
|
1225
1351
|
capability: 'hot_stock_list',
|
|
1226
1352
|
summary: 'A 股热股榜 Top30(24 小时/小时级)',
|
|
1227
|
-
description: '查询 A 股热股榜单 Top30。period 取 day(24 小时级别,默认)或 hour(小时级别)。响应结构与飙升榜一致:rank 排名、heat 上游原始字符串热度值、rank_change 排名变化(可为 null)、rank_trend 取 up / down / flat / unknown
|
|
1353
|
+
description: '查询 A 股热股榜单 Top30。period 取 day(24 小时级别,默认)或 hour(小时级别)。响应结构与飙升榜一致:rank 排名、heat 上游原始字符串热度值、rank_change 排名变化(可为 null)、rank_trend 取 up / down / flat / unknown。⛔ **上游 Fuyao 不返回概念标签与人气标签**(2026-11-22 实测:行只有 thscode/ticker/name/rank/heat/rank_change/rank_trend);要「这票被归到哪些概念在炒」「2天1板」这类标签,用同花顺网页直连的 `ths_hot_list`(同源不同入口,rank/heat 是否一致以实测为准,禁止跨源拼接)。',
|
|
1228
1354
|
path: '/api/a-share/special-data/hot-stock-list',
|
|
1229
1355
|
inputSchema: objectSchema({
|
|
1230
1356
|
period: { type: 'string', enum: RANK_PERIODS, description: '榜单周期:day 24 小时级别(默认)/ hour 小时级别' },
|
|
@@ -1300,6 +1426,40 @@ function endpointDefinitions() {
|
|
|
1300
1426
|
normalize: normalizeAnomalyStock,
|
|
1301
1427
|
guard: { item: anomalyFields },
|
|
1302
1428
|
},
|
|
1429
|
+
{
|
|
1430
|
+
name: 'get_a_share_special_data_abnormal_monitor_list',
|
|
1431
|
+
capability: 'abnormal_monitor_list',
|
|
1432
|
+
summary: '严重异动与重点监控记录(区间/分页)',
|
|
1433
|
+
description: '分页获取 A 股当前或历史的严重异动与重点监控记录。state 取 current(默认,当前监控中)/ history(历史记录);page >= 1;size 取 1..30(超 30 上游返回 1003)。item[] 含 thscode / name(上游可为 null 或空串,原样保留)、start_date_ms / end_date_ms(结束可为 null,表示监控区间未结束)、monitor_type(原始类型码)与 monitor_label(1/2 = 严重异动,其余 = 重点监控)。⛔ 这是**监管监控区间**,不是异动原因:原因类问题走 anomaly_list / anomaly_stock;本能力也不提供交易所公告原文。pagination.total 上游可为 null,不得当 0;空列表是合法结果(当日无监控记录),不是失败。',
|
|
1434
|
+
path: '/api/a-share/special-data/abnormal-monitor-list',
|
|
1435
|
+
inputSchema: objectSchema({
|
|
1436
|
+
state: { type: 'string', enum: ABNORMAL_MONITOR_STATES, description: 'current 当前监控中(默认)/ history 历史记录' },
|
|
1437
|
+
page: { type: 'integer', minimum: 1, description: '页码,从 1 开始,默认 1' },
|
|
1438
|
+
size: { type: 'integer', minimum: 1, maximum: MAX_ABNORMAL_MONITOR_SIZE, description: '每页条数,取值 1~30,默认 30' },
|
|
1439
|
+
}),
|
|
1440
|
+
outputSchema: {
|
|
1441
|
+
type: 'object',
|
|
1442
|
+
properties: {
|
|
1443
|
+
timestamp: { type: 'integer' },
|
|
1444
|
+
item: { type: 'array', items: rowSchema(abnormalMonitorFields) },
|
|
1445
|
+
pagination: {
|
|
1446
|
+
type: 'object',
|
|
1447
|
+
properties: {
|
|
1448
|
+
page: { type: 'integer' },
|
|
1449
|
+
size: { type: 'integer' },
|
|
1450
|
+
total: { oneOf: [{ type: 'integer' }, { type: 'null' }] },
|
|
1451
|
+
has_next: { type: 'boolean' },
|
|
1452
|
+
},
|
|
1453
|
+
additionalProperties: true,
|
|
1454
|
+
},
|
|
1455
|
+
},
|
|
1456
|
+
additionalProperties: true,
|
|
1457
|
+
},
|
|
1458
|
+
allowed: ['state', 'page', 'size'],
|
|
1459
|
+
normalize: normalizeAbnormalMonitor,
|
|
1460
|
+
guard: { data: { pagination: 'object' }, item: abnormalMonitorFields },
|
|
1461
|
+
paginated: true,
|
|
1462
|
+
},
|
|
1303
1463
|
{
|
|
1304
1464
|
name: 'get_a_share_special_data_dragon_tiger_list',
|
|
1305
1465
|
capability: 'dragon_tiger',
|
|
@@ -1736,7 +1896,7 @@ function endpointDefinitions() {
|
|
|
1736
1896
|
name: 'get_fund_indicators_line',
|
|
1737
1897
|
capability: 'fund_indicator_line',
|
|
1738
1898
|
summary: '基金指标画线序列(多指标多标的)',
|
|
1739
|
-
description: '按指标分组批量取画线序列。两个参数都是 **JSON 字符串**且都必填:indexes 为**数组**,每组必须含完整代码数组 thscodes 与指标数组 index_info(每项必含字符串 index_id,可选 attribute);time_range 为**对象**,必含字符串 time_type,可选 start / end(Unix 毫秒整数)与 offset(整数周期偏移)。响应是三层的:time_range 为毫秒时间轴数组(元素可为 null、与每组 values 按位置对应)、indexes 为指标元信息(index_id / value_type / timestamp / time_type / attribute,其中 timestamp 为正数时是毫秒戳、0 与负数是位置选择)、data[] 为按代码组织的序列(thscode + values[],每项含 idx 指向 indexes 下标与 values
|
|
1899
|
+
description: '按指标分组批量取画线序列。两个参数都是 **JSON 字符串**且都必填:indexes 为**数组**,每组必须含完整代码数组 thscodes 与指标数组 index_info(每项必含字符串 index_id,可选 attribute);time_range 为**对象**,必含字符串 time_type,可选 start / end(Unix 毫秒整数)与 offset(整数周期偏移)。响应是三层的:time_range 为毫秒时间轴数组(元素可为 null、与每组 values 按位置对应)、indexes 为指标元信息(index_id / value_type / timestamp / time_type / attribute,其中 timestamp 为正数时是毫秒戳、0 与负数是位置选择)、data[] 为按代码组织的序列(thscode + values[],每项含 idx 指向 indexes 下标与 values 数组)。⛔ 2026-11-21 复核:上游 llms-full 已删除本端点文档(`/api/fund/indicators` 路径 0 命中),运行时仍在线;本能力按实测契约维护、巡检降为 shadow,不再在此之上做新功能。',
|
|
1740
1900
|
path: '/api/fund/indicators/line',
|
|
1741
1901
|
inputSchema: objectSchema({
|
|
1742
1902
|
indexes: { type: 'string', description: 'JSON 数组字符串:[{thscodes:[完整代码], index_info:[{index_id, attribute?}]}]' },
|
|
@@ -1759,7 +1919,7 @@ function endpointDefinitions() {
|
|
|
1759
1919
|
name: 'get_fund_indicators_table',
|
|
1760
1920
|
capability: 'fund_indicator_table',
|
|
1761
1921
|
summary: '基金指标表格查询(分页/排序)',
|
|
1762
|
-
description: '按选择器查询指标表格。四个参数都是 **JSON 字符串且全部可选**:code_selectors(对象;stock_code / fund_code 类型用 thscodes 数组,其它实体类型用 values)、indexes(数组,每项必含 index_id,可选 timestamp:正数=Unix 毫秒、0=最新位置、负数=位置偏移)、page_info(对象,page_begin / page_size / code_begin / code_page_size 均可选整数,**起点为 0**)、sort(数组,每项含整数 idx 指标下标与字符串 type 排序方向)。**该端点没有业务默认值,四个参数至少要给一个**。⚠️ 实测(2026-09)本端点对多只基金均返回 code=5003 数据源不可用(参数本身被接受、不是参数错误),属上游数据源缺口;接入时按 5003 如实回传,不要反复重试。响应含 total(上游结果总数)、indexes(与画线接口语义一致)、data[](thscode + values[],每项含 idx 与 value——value 可为 null,数值字符串保持原样如 "3.127400")与可空的 part_order_thscodes
|
|
1922
|
+
description: '按选择器查询指标表格。四个参数都是 **JSON 字符串且全部可选**:code_selectors(对象;stock_code / fund_code 类型用 thscodes 数组,其它实体类型用 values)、indexes(数组,每项必含 index_id,可选 timestamp:正数=Unix 毫秒、0=最新位置、负数=位置偏移)、page_info(对象,page_begin / page_size / code_begin / code_page_size 均可选整数,**起点为 0**)、sort(数组,每项含整数 idx 指标下标与字符串 type 排序方向)。**该端点没有业务默认值,四个参数至少要给一个**。⚠️ 实测(2026-09)本端点对多只基金均返回 code=5003 数据源不可用(参数本身被接受、不是参数错误),属上游数据源缺口;接入时按 5003 如实回传,不要反复重试。响应含 total(上游结果总数)、indexes(与画线接口语义一致)、data[](thscode + values[],每项含 idx 与 value——value 可为 null,数值字符串保持原样如 "3.127400")与可空的 part_order_thscodes。⛔ 2026-11-21 复核:上游 llms-full 已删除本端点文档(`/api/fund/indicators` 路径 0 命中),运行时仍在线;本能力按实测契约维护、巡检降为 shadow,不再在此之上做新功能。',
|
|
1763
1923
|
path: '/api/fund/indicators/table',
|
|
1764
1924
|
inputSchema: objectSchema({
|
|
1765
1925
|
code_selectors: { type: 'string', description: 'JSON 对象字符串:选择器(如 {fund_code:{thscodes:[...]}})' },
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Official venue HTTP sources: SSE/SZSE ETF shares and CFETS repo fixings. One throttle chain per
|
|
2
|
+
* upstream; row keys are remapped explicitly (§10.6) and 万份 is converted to 份 at this boundary. */
|
|
3
|
+
import type { DataSource } from '../data-collector/hub.js';
|
|
4
|
+
export declare function createOfficialSources(): DataSource[];
|