#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:50:12 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('PrevClosePrice'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='未复权前收盘价')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:49:05 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('TurnoverDeals'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='成交笔数')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:43:27 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('LowPrice'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='未复权最低价')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:44:18 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('TurnoverVolume'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='成交量(股数)')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:28:26 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('closeprice'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='未复权收盘价')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:41:50 # @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 quotes_template import quotes_factory # 当天无交易的股票最高价等于前收盘价,其他相关行情数据类似 dd = DataDescription(quotes_factory('HighPrice'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='未复权最高价')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:48:19 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('TurnoverValue'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='成交金额(元)')
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Date : 2018-05-02 16:40:24 # @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 quotes_template import quotes_factory dd = DataDescription(quotes_factory('OpenPrice'), trans_date('2018-05-02'), DataType.PANEL_NUMERIC, dep=['UNIVERSE'], desc='未复权开盘价')