Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/stock-share_capital_structure-intermediate.md
T

2.9 KiB

金融 / 股票 / 股本结构 / 中间函数

getNShares(info_id, end_t, value_field_name, changed_field_name, declared_date_field)

声明:function

返回指定日股本,与系统参数(股票)相关

参数 类型 说明
info_id int 整数。数据表索引号
end_t datetime 日期。截止日期
value_field_name string 字符串。返回字段
changed_field_name string 字符串。变动日字段
declared_date_field string 字符串。公告日字段

返回:float

示例

范例01:调用函数

SetSysParam(PN_Stock(), 'SZ000002');
return GetNShares(16, 20230801T, "总股本", "变动日", "公告日");

nSharesOfA(info_id, end_t)

声明:function

返回A股流通股本,与系统参数(股票)相关

参数 类型 说明
info_id int 整数。数据表索引号
end_t datetime 日期。截止日期

返回:float

示例

范例01:调用函数

SetSysParam(PN_Stock(), 'SZ000002');
return NSharesOfA(16, 20230801T);

nSharesOfB(info_id, end_t)

声明:function

返回B股流通股本,与系统参数(股票)相关

参数 类型 说明
info_id int 整数。数据表索引号
end_t datetime 日期。截止日期

返回:float

示例

范例01:调用函数

SetSysParam(PN_Stock(), 'SZ000002');
return NSharesOfB(16, 20230801T);

tSharesOfA(info_id, end_t)

声明:function

返回A股总股本,与系统参数(股票)相关

参数 类型 说明
info_id int 整数。数据表索引号
end_t datetime 日期。截止日期

返回:float

示例

范例01:调用函数

SetSysParam(PN_Stock(), 'SZ000002');
return TSharesOfA(16, 20230801T);

tSharesOfB(info_id, end_t)

声明:function

返回B股总股本,与系统参数(股票)相关

参数 类型 说明
info_id int 整数。数据表索引号
end_t datetime 日期。截止日期

返回:float

示例

范例01:调用函数

SetSysParam(PN_Stock(), 'SZ000002');
return TSharesOfB(16, 20230801T);