Skip to main content

parse_sector_weight_index

Function parse_sector_weight_index 

Source
pub fn parse_sector_weight_index(
    path: impl AsRef<Path>,
    index_code: &str,
) -> Result<BTreeMap<String, f64>, MetadataParseError>
Expand description

解析 xtquant sectorWeightData.txt,返回指定 index/sector 的 stock -> weight