Example #1
0
#!/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='未复权前收盘价')
Example #2
0
#!/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='成交笔数')
Example #3
0
#!/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='未复权最低价')
Example #4
0
#!/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='成交量(股数)')
Example #5
0
#!/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='未复权收盘价')
Example #6
0
#!/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='未复权最高价')
Example #7
0
#!/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='成交金额(元)')
Example #8
0
#!/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='未复权开盘价')