Esempio n. 1
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-05-10 11:00:30
# @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_quote

dd = DataDescription(get_index_quote('000016', 'LowPrice'),
                     trans_date('2018-05-10'),
                     DataType.TS_NUMERIC,
                     desc='上证50最低价')
Esempio n. 2
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-05-10 11:08:33
# @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_quote

dd = DataDescription(get_index_quote('000001', 'OpenPrice'),
                     trans_date('2018-05-10'),
                     DataType.TS_NUMERIC,
                     desc='上证综指开盘价')
Esempio n. 3
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-05-10 11:15:47
# @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_quote

dd = DataDescription(get_index_quote('399006', 'ClosePrice'),
                     trans_date('2018-05-10'), DataType.TS_NUMERIC, desc='创业板指收盘价')
Esempio n. 4
0
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date    : 2018-05-10 11:01: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 index_template import get_index_quote

dd = DataDescription(get_index_quote('000300', 'ClosePrice'),
                     trans_date('2018-05-10'),
                     DataType.TS_NUMERIC,
                     desc='沪深300收盘价')