#!/usr/bin/env python # -*- coding:utf-8 """ Author: Hao Li Email: [email protected] Github: https://github.com/SAmmer0 Created: 2018-05-25 15:46 """ from sys import path as sys_path from os.path import dirname from tdtools import trans_date from pitdata.const import CALCULATION_FOLDER_PATH, DataType from pitdata import DataDescription if CALCULATION_FOLDER_PATH not in sys_path: sys_path.append(dirname(CALCULATION_FOLDER_PATH)) from index_template import get_index_weights dd = DataDescription(get_index_weights('000852'), trans_date('2018-05-25'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='中证1000指数成分权重,数值表示权重((0, 100)),其他(NA)表示非指数成分')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-09 10:34:02 # @Author : Hao Li ([email protected]) # @Link : https://github.com/SAmmer0 # @Version : $Id$ from sys import path as sys_path from os.path import dirname from tdtools import trans_date from pitdata.const import CALCULATION_FOLDER_PATH, DataType from pitdata import DataDescription if CALCULATION_FOLDER_PATH not in sys_path: sys_path.append(dirname(CALCULATION_FOLDER_PATH)) from index_template import get_index_weights dd = DataDescription( get_index_weights('000016'), trans_date('2018-05-09'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='上证50指数成分权重,数值表示权重((0, 100)),其他(NA)表示非指数成分;数据库中该数据起始时间为2011-03-27')
#!/usr/bin/env python # -*- coding:utf-8 """ Author: Hao Li Email: [email protected] Github: https://github.com/SAmmer0 Created: 2018-05-25 13:58 """ from sys import path as sys_path from os.path import dirname from tdtools import trans_date from pitdata.const import CALCULATION_FOLDER_PATH, DataType from pitdata import DataDescription if CALCULATION_FOLDER_PATH not in sys_path: sys_path.append(dirname(CALCULATION_FOLDER_PATH)) from index_template import get_index_weights dd = DataDescription(get_index_weights('000001'), trans_date('2018-05-09'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='上证综指成分权重,数值表示权重((0, 100)),其他(NA)表示非指数成分')
#!/usr/bin/env python # -*- coding:utf-8 """ Author: Hao Li Email: [email protected] Github: https://github.com/SAmmer0 Created: 2018-05-25 09:49 """ from sys import path as sys_path from os.path import dirname from tdtools import trans_date from pitdata.const import CALCULATION_FOLDER_PATH, DataType from pitdata import DataDescription if CALCULATION_FOLDER_PATH not in sys_path: sys_path.append(dirname(CALCULATION_FOLDER_PATH)) from index_template import get_index_weights dd = DataDescription(get_index_weights('399006'), trans_date('2018-05-25'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='创业板指数成分权重,数值表示权重((0, 100)),其他(NA)表示非指数成分')