feat(tsl-api): add parameter value domain lookup

This commit is contained in:
csh
2026-08-22 14:15:54 +08:00
parent 476f999139
commit b101b13bba
17 changed files with 2551 additions and 400 deletions
@@ -5390,6 +5390,7 @@ GetBenchmarkWeight module ts-multi-factor GetBenchmarkWeight(v_end_t) module/ts-
GetBenchmarkWeightandReturn module ts-factor-attribution GetBenchmarkWeightandReturn(v_end_t) module/ts-factor-attribution.md getbenchmarkweightandreturnv_end_t 查询 组合权重 资产配置 比较基准 业绩基准 表数据 二维表 基准权重表,数据表结构如下。注意,当FindexId 有值时,则不需要重载此方法 method instance public tsrm_FactorAttribution tsrm_FactorAttribution.GetBenchmarkWeightandReturn
GetBenchRiskForecasting module tsrm-exante-risk-attribution GetBenchRiskForecasting() module/tsrm-exante-risk-attribution.md getbenchriskforecasting 查询 预测 风险管理 风控 比较基准 业绩基准 获取基准风险预估值 method instance public tsrm_ExAnte_RiskAttribution tsrm_ExAnte_RiskAttribution.GetBenchRiskForecasting
GetBitsPerComponent module pdf-file GetBitsPerComponent() module/pdf-file.md getbitspercomponent 查询 图片 色彩 获取图像颜色分量值位数 method instance public pdfImage pdfImage.GetBitsPerComponent
getBk dotnet datawarehouse getBk(marketlist) dotnet/datawarehouse/market_sector.md getbk 数据仓库 市场 板块 股票 成分 分类属性代码 SWHY CAPCHY CSRCHY YHFL TSJJ02 TSJJ03 最新 获取 得到指定市场板块列表包含的最新成分。普通市场板块返回股票代码;行业或分类目录可能返回 function getBk
getBkAll dotnet financial getBkAll(bkname) dotnet/financial/sector-sector_constituents.md getbkall 金融 板块 板块成分 返回 获取 返回板块所有样本(包括退市) 功能特别说明: 不适用以下板块或目录下的板块: 不适用板块:A股,上证A股,深证A股,中小企业板,创业板,科创板,(可用getabkbydate获取指定日) B股,上证B股,深证B股, 全球指数(目前4个不存在退市) 期货主力,期货连续,期货指数线,期货品种代码(这4个板块不区分上市退市) 存款利率,贷款利率,Shibor,贷款基础利率 不适用以下目录下的板块:股票\概念板块(可用getbkbydate获取指定日) 股票\股票地域 股票\指数成份(可用getbkbydate获取指定日) 股票\融资融券(可用getbkbydate获取指定日) 股票\互通股(可用getbkbydate获取指定日) 股票\上市状态(已包含所有直接用getbk) 基金\基金托管人 指数\指数提供商 回购\上市状态(已包含所有直接用getbk) 基金\上市状态(已包含所有直接用getbk) 期货\上市状态(已包含所有直接用getbk) 期权\上市状态(已包含所有直接用getbk) 债券\上市状态(已包含所有直接用getbk) 指数\上市状态(已包含所有直接用getbk function getBkAll
getbkall_arr dotnet financial getbkall_arr() dotnet/financial/sector-sector_constituents-intermediate.md getbkall_arr 金融 板块 板块成分 中间函数 获取 查询 获取所有板块样本配置表,此表配置只能单独列出规则的板块 function getbkall_arr
getbkall_arr2 dotnet financial getbkall_arr2() dotnet/financial/sector-sector_constituents-intermediate.md getbkall_arr2 金融 板块 板块成分 中间函数 获取 查询 获取所有板块样本配置表,此表配置通用规则及板块名,开发用 function getbkall_arr2
@@ -5397,10 +5398,12 @@ getBkAllbyEndT dotnet financial getBkAllbyEndT(bkname, end_t) dotnet/financial/s
getBkBacktrackByDate dotnet financial getBkBacktrackByDate(index_id, end_t, ex_type) dotnet/financial/index-index_info.md getbkbacktrackbydate 金融 指数 指数情况 获取 查询 获取指数历史上指定日样本(可回溯)。当ExType=1时,如指数成分中取不到成分,则从权重表中获取。此函数可以简单回溯历史数据,当Endt早于指数开始日,则选取指数开始日成分股在endt在市交易的成分股列表 function getBkBacktrackByDate
getbkbybegtendt dotnet financial getbkbybegtendt(indexid, begt, endt) dotnet/financial/index-index_info.md getbkbybegtendt 金融 指数 指数情况 返回 获取 返回区间曾经是成分股的股票,区间范围内是指数成份股的股票 function getbkbybegtendt
getBkByBegTEndT_ii dotnet financial getBkByBegTEndT_ii(bk_name, beg_t, end_t) dotnet/financial/sector-basic_info.md getbkbybegtendt_ii 金融 板块 基本情况 返回 获取 返回区间范围内曾经在板块上市过的所有股票(含已暂停已退市)。目前只能使用以下板块:'A股','上证A股','科创板','深证A股','创业板','北证A股','B股','上证B股','深证B股' function getBkByBegTEndT_ii
getBkByDate dotnet financial getBkByDate(index_id, end_t, extype) dotnet/financial/index-index_info.md getbkbydate 金融 指数 指数情况 获取 查询 获取指数历史指定日的成份股列表。与GetBK不同,该函数需要的第一个参数是指数代码,获取该指数的指定日的成分股,比如沪深300定期调整,在不同时间获取的成分股将不同。 新增功能,当ExType=1时指数成分中取不到成分时,则从权重表中获取 function getBkByDate
getBkByDate dotnet financial getBkByDate(index_id, end_t, extype) dotnet/financial/index-index_info.md getbkbydate 金融 指数 指数情况 历史成份股 分类属性代码 下级分类 SWHY CAPCHY CSRCHY YHFL TSJJ02 TSJJ03 TSI000001 TSI000002 TSI000003 TSI000004 TSI000005 TSI000006 TSI000007 TSI000008 TSI000009 获取 查询 获取指数或分类属性在指定日的成份股列表。与getBk不同,该函数需要日期参数;普通指数使用 function getBkByDate
getBkByIndexName dotnet financial getBkByIndexName(index_name, end_t) dotnet/financial/index-index_info.md getbkbyindexname 金融 指数 指数情况 返回 获取 返回使用指数名称获取指定日指数成分,只支持申万行业、A股 function getBkByIndexName
getBkGoMarketByDate dotnet financial getBkGoMarketByDate(index_id, end_t, ex_type) dotnet/financial/index-index_info.md getbkgomarketbydate 金融 指数 指数情况 获取 查询 获取指数历史上指定日样本(已上市)。当ExType=1时指数成分中取不到成分时,则从权重表中获取。存在申万行业分类的成份股中,它的选入日期可能早于上市日,现剔除这部分标的 function getBkGoMarketByDate
getbkIndexIDs dotnet financial getbkIndexIDs() dotnet/financial/sector-basic_info-intermediate.md getbkindexids 金融 板块 基本情况 中间函数 获取 查询 AB 获取AB股板块及编码对照表 function getbkIndexIDs
getBkList dotnet datawarehouse getBkList(Type) dotnet/datawarehouse/market_sector.md getbklist 数据仓库 市场 板块 系统板块 行业分类 分类目录 列表 获取 得到所有的或指定系统板块类别下的板块名称列表。`Type` 是板块类别或具体板块目录名称; function getBkList
getBkList2 dotnet datawarehouse getBkList2([bktype]) dotnet/datawarehouse/market_sector.md getbklist2 数据仓库 市场 板块 系统板块 路径 列表 获取 得到所有的或指定系统板块类别下的板块名称及其所在路径。与 `getBkList` 不同,该函数会 function getBkList2
getBkNameToId dotnet financial getBkNameToId(index_name, end_t) dotnet/financial/index-index_info.md getbknametoid 金融 指数 指数情况 返回 获取 返回使用指数名称获取指定日指数成分 function getBkNameToId
getbktypelist dotnet financial getbktypelist(bktype) dotnet/financial/stock-basic_info-basic_info-intermediate.md getbktypelist 金融 股票 基本情况 中间函数 获取 查询 获取指定板块分类下的板块名称列表 function getbktypelist
getBkWeightByDate2 dotnet financial getBkWeightByDate2(index_id, benchmark_id, end_t) dotnet/financial/index-basic_information.md getbkweightbydate2 金融 指数 基本信息 返回 获取 SH000985 返回本模型从基准指数BenchmarkID的成分股权重数据中获取目标指数IndexID的成份股,并取其权重进行归一处理,计算目标指数IndexID的成分股权重。 使用时需注意: 1.基准指数BenchmarkID的选取比较重要,比如申万二级和三级行业,可以选择对应的申万一级行业指数作为估算的基准指数,经测算是较为接近的; 2.目标指数IndexID的成分股必须可获取; 3.基准指数BenchmarkID的成分股应包含目标指数IndexID的成分股; 4.如果BenchmarkID为nil,则取默认基准指数--SH000985 中证全指 function getBkWeightByDate2
@@ -5594,8 +5597,8 @@ getHttpContent builtin network getHttpContent(session[, from_pos]) builtin/netwo
getHttpCookies builtin network getHttpCookies(session) builtin/network.md gethttpcookies 网络 获取 查询 HTTP 请求 network 获取指定 HTTP 会话保存的服务器 Cookie function getHttpCookies
getHttpResponseHeader builtin network getHttpResponseHeader([session]) builtin/network.md gethttpresponseheader 网络 获取 查询 HTTP 请求 network 获取 HTTP 响应头;session 可省略 function getHttpResponseHeader
getHyDyFlDetails dotnet financial getHyDyFlDetails(type) dotnet/financial/stock-industry.md gethydyfldetails 金融 股票 行业 获取 查询 获取分行业/地域/分类的股票的详细情况 function getHyDyFlDetails
getHyDyFlList dotnet financial getHyDyFlList(type) dotnet/financial/stock-industry.md gethydyfllist 金融 股票 行业 获取 查询 获取行业/地域/分类的列表,用于替代GetBKList function getHyDyFlList
getHyDyFlStocks dotnet financial getHyDyFlStocks(type, name) dotnet/financial/stock-industry.md gethydyflstocks 金融 股票 行业 获取 查询 获取行业的股票。取代GetBK,比其更精确 function getHyDyFlStocks
getHyDyFlList dotnet financial getHyDyFlList(type) dotnet/financial/stock-industry.md gethydyfllist 金融 股票 行业 获取 查询 获取行业/地域/分类的列表,用于替代getBkList function getHyDyFlList
getHyDyFlStocks dotnet financial getHyDyFlStocks(type, name) dotnet/financial/stock-industry.md gethydyflstocks 金融 股票 行业 获取 查询 获取行业的股票。取代getBk,比其更精确 function getHyDyFlStocks
GetIC module tsf-factor-ext-indicator-base GetIC(begt, endt, ic_type) module/tsf-factor-ext-indicator-base.md geticbegtendtic_type 查询 信息系数 列表 集合 获得 IC 数据,需要用户重载,基类未实现,返回空数组,并提示报错:getIC 方法必须重写! method instance public tsf_factorExtindiCator_base tsf_factorExtindiCator_base.GetIC
GetImpactCostEstimatedDetail module impact-cost GetImpactCostEstimatedDetail() module/impact-cost.md getimpactcostestimateddetail 查询 预估 交易成本 获取冲击成本预测详情,包含"永久性冲击成本(BP)"、"暂时性冲击成本(BP"、 method instance public ts_ImpactCost ts_ImpactCost.GetImpactCostEstimatedDetail
GetImpactCostEstimatedValue module impact-cost GetImpactCostEstimatedValue() module/impact-cost.md getimpactcostestimatedvalue 查询 已实现冲击 冲击成本 BP 获取已实现冲击成本(BP),单位 BP method instance public ts_ImpactCost ts_ImpactCost.GetImpactCostEstimatedValue
@@ -5953,6 +5956,8 @@ GetUnicode module pdf-file GetUnicode(code) module/pdf-file.md getunicodecode
GetUnicodeWidth module pdf-file GetUnicodeWidth(code) module/pdf-file.md getunicodewidthcode 查询 尺寸 宽高 字型 获取当前字体下指定 Unicode 字符的宽度 method instance public pdfFont pdfFont.GetUnicodeWidth
getUnilateralValue dotnet financial getUnilateralValue(exp, endt) dotnet/financial/market-intermediate.md getunilateralvalue 金融 行情 中间函数 返回 获取 返回期货单边指标,与系统参数(证券代码)相关 function getUnilateralValue
getUrl builtin network getUrl(src_url, parse_url) builtin/network.md geturl 网络 解析 parse HTTP 请求 network HTML URL 解析在HTML中出现的URL,返回全路径URL串 function getUrl
getUserBkList dotnet datawarehouse getUserBkList([bktype]) dotnet/datawarehouse/market_sector.md getuserbklist 数据仓库 市场 板块 用户板块 列表 获取 得到所有的或指定板块类别下的用户板块名称。`bktype` 省略时返回全部用户板块;指定时可 function getUserBkList
getUserBkList2 dotnet datawarehouse getUserBkList2([bktype]) dotnet/datawarehouse/market_sector.md getuserbklist2 数据仓库 市场 板块 用户板块 路径 列表 获取 得到所有的或指定板块类别下用户板块的名称及其所在路径。与 `getUserBkList` 不同, function getUserBkList2
GetValuationDetail module bond-research GetValuationDetail() module/bond-research/convertible-bond-ccb.md getvaluationdetail 返回各估值路径的明细 method instance public cb_CompleteDecompose cb_CompleteDecompose.GetValuationDetail
GetValueByEndt module ts-persistence-of-fund GetValueByEndt(funds, endt) module/ts-persistence-of-fund.md getvaluebyendtfundsendt 查询 绩效 业绩表现 基金产品 获取指定日基金池基金业绩指标 method instance public ts_PersistenceOfFund ts_PersistenceOfFund.GetValueByEndt
getValuesByFieldValue dotnet base getValuesByFieldValue(t, f_name, field_value) dotnet/base/array.md getvaluesbyfieldvalue 返回 获取 返回指定字段值等于指定值的所有记录 function getValuesByFieldValue
@@ -7116,7 +7121,7 @@ marketAndTotalValueStructure dotnet financial_report marketAndTotalValueStructur
marketLastTradeDay dotnet financial marketLastTradeDay(end_t) dotnet/financial/market-n_day.md marketlasttradeday 金融 行情 N 日 返回 获取 返回指定日前一个市场交易日 function marketLastTradeDay
marketlasttradeday2 dotnet financial marketlasttradeday2() dotnet/financial/market-current_day.md marketlasttradeday2 金融 行情 当日 返回 获取 SH000001 HKHSI001 HSG000001 HSG000002 返回市场最近交易日 系统参数:股票,日期获取市场指定日前最近交易日。与系统参数(股票,日期)相关。 其中各市场代表指数为: A股市场:SH000001; 港股市场:HKHSI001 港股通:HSG000001,包括港股通(沪)?和港股通(深)两个通道 陆股通:HSG000002,包括沪股通和深股通两个通道 南北向开始日:2014-11-17 如果返回nil,则指定日通道未开通 function marketlasttradeday2
marketlasttradedayn dotnet financial marketlasttradedayn(n) dotnet/financial/market-n_day.md marketlasttradedayn 金融 行情 N 日 返回 获取 返回A股市场、港股市场、沪深港通板块获取市场指定日前N个交易日。系统参数:市场指数代码 function marketlasttradedayn
marketList dotnet financial marketList() dotnet/financial/sector-basic_info-miscellaneous.md marketlist 金融 板块 基本情况 其它 返回 获取 返回市场常用列表,仅包括深证A股、深证B股、深证基金、上证A股、上证B股、上证基金。如果需要获得其他目录下的板块列表,请使用函数GetBKList,使用方法参见该函数的函数说明 function marketList
marketList dotnet financial marketList() dotnet/financial/sector-basic_info-miscellaneous.md marketlist 金融 板块 基本情况 其它 返回 获取 返回市场常用列表,仅包括深证A股、深证B股、深证基金、上证A股、上证B股、上证基金。如果需要获得其他目录下的板块列表,请使用函数getBkList,使用方法参见该函数的函数说明 function marketList
marketNextTradeDay dotnet financial marketNextTradeDay(end_t) dotnet/financial/market-n_day.md marketnexttradeday 金融 行情 N 日 返回 获取 返回市场后一个交易日 function marketNextTradeDay
marketnexttradedayn dotnet financial marketnexttradedayn(n) dotnet/financial/market-n_day.md marketnexttradedayn 金融 行情 N 日 返回 获取 返回A股市场、港股市场、沪深港通板块获取市场指定日后N个交易日。系统参数:市场指数代码 function marketnexttradedayn
marketPRInitTradeAmountEndT dotnet financial marketPRInitTradeAmountEndT(market_type, end_t) dotnet/financial/stock-stock_pledge_repo_transaction_summary-specified_date.md marketprinittradeamountendt 金融 股票 质押回购 交易汇总 初始交易金额 市场 指定日 返回指定日指定市场的初始交易金额 function marketPRInitTradeAmountEndT
Can't render this file because it is too large.