Open gaizoule opened 6 years ago
from jaqs.data.dataservice import RemoteDataService from jaqs.data.dataview import DataView import json
ds = RemoteDataService()
with open('./data_config.json', 'r') as f: data_config = json.load(f) ds.init_from_config(data_config)
dv = DataView() secs = '600030.SH,000063.SZ,000001.SZ' props = {'start_date': 20070406, 'end_date': 20180309, 'symbol': secs, 'fields': 'open,close,high,low,volume,pb,net_assets,eps_basic', 'freq': 1} dv.init_from_config(props, data_api=ds) dv.prepare_data() snap1 = dv.get_snapshot(20170504, symbol='600030.SH,000063.SZ', fields='close,pb')
报错:
In [13]: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last)
from jaqs.data.dataservice import RemoteDataService from jaqs.data.dataview import DataView import json
ds = RemoteDataService()
with open('./data_config.json', 'r') as f: data_config = json.load(f) ds.init_from_config(data_config)
dv = DataView() secs = '600030.SH,000063.SZ,000001.SZ' props = {'start_date': 20070406, 'end_date': 20180309, 'symbol': secs, 'fields': 'open,close,high,low,volume,pb,net_assets,eps_basic', 'freq': 1} dv.init_from_config(props, data_api=ds) dv.prepare_data() snap1 = dv.get_snapshot(20170504, symbol='600030.SH,000063.SZ', fields='close,pb')
报错:
In [13]: --------------------------------------------------------------------------- AttributeError Traceback (most recent call last)