MF_Industry_New
简述
获取股票最新行业名称或行业代码,同证券相关
MF_Industry_New(IndustryType:UserDefine;type:UserDefine;level:UserDefine): String
名称 | 类型 | 说明 |
---|
IndustryType | UserDefine | 用户自定义, 行业类别
申万一级行业扩展:将金融行业再细分成申万二级行业
申万一级行业2014版:区间【2014-02-21——20211210】若截止日<20140221,则取20140221日的申万一级行业;若截止日>=20211213,则取20211210日的申万一级行业
申万一级行业2021版:区间【2021-12-13——******】若截止日<20211213,则取20211213日的申万一级行业
显示名 |
取值 |
申万一级行业 |
1 |
证监会行业 |
2 |
中证行业 |
3 |
申万一级行业扩展 |
4 |
申万一级行业2014版 |
5 |
申万一级行业2021版 |
6 |
|
type | UserDefine | 用户自定义, 默认为2
|
level | UserDefine | 用户自定义,,行业级别 ,预留参数
|
返回 | String | String,行业名称/行业代码 |
oV:=BackUpSystemParameters2();
setsysparam(pn_stock(),'SH601318');
setsysparam(pn_date(),20241206T);
IndustryType := 1;
type := 2;
level := 1;
return MF_Industry_New(IndustryType,type,level);// "SW801790"