Skip to main content

Module metadata

Module metadata 

Source
Expand description

xtquant 本地资料文件解析。

Functions§

load_holidays_from_root
从显式 datadir/root 路径发现并解析节假日文件。
load_holidays_from_standard_paths
从 xtquant 约定路径自动发现并解析节假日文件。
load_industry_from_root
从显式 datadir/root 路径发现并解析 IndustryData.txt
load_industry_from_standard_paths
从 xtquant 约定路径自动发现并解析 IndustryData.txt
load_sector_names_from_root
从显式 datadir/root 路径发现并解析 split sector 文件。
load_sector_names_from_standard_paths
从 xtquant 约定路径自动发现并解析 split sector 文件。
load_sector_weight_index_from_root
从显式 datadir/root 路径发现并解析指定 index/sector 权重映射。
load_sector_weight_index_from_standard_paths
从 xtquant 约定路径自动发现并解析 sectorWeightData.txt 指定 index/sector 权重映射。
load_sector_weight_members_from_root
从显式 datadir/root 路径发现并解析 sectorWeightData.txt 成员映射。
load_sector_weight_members_from_standard_paths
从 xtquant 约定路径自动发现并解析 sectorWeightData.txt 成员映射。
load_sectorlist_from_root
从显式 datadir/root 路径发现并解析 sectorlist.DAT
load_sectorlist_from_standard_paths
从 xtquant 约定路径自动发现并解析 sectorlist.DAT
parse_holiday_file
解析 xtquant holiday.csv / holiday.dat,返回 YYYYMMDD 数字列表。
parse_industry_file
解析 xtquant IndustryData.txt,返回 industry -> members
parse_sector_name_file
解析 xtquant split sector 文件,返回 sector 名称列表。
parse_sector_weight_index
解析 xtquant sectorWeightData.txt,返回指定 index/sector 的 stock -> weight
parse_sector_weight_members
解析 xtquant sectorWeightData.txt,返回 sector -> members
parse_sectorlist_dat
解析 xtquant sectorlist.DAT,返回板块名称列表。