我连接雪球,交易下单就报错,请问大神们谁能帮助看一下,谢谢啦。
代码:
>>> quotation = easyquotation.use('sina')
>>> dict_quotation= quotation.stocks('600051')
>>> wuser = easytrader.use('xq')
>>> wuser.prepare(r'G:\\anaconda\\easyquant\\xq.json')
2016-10-24 10:48:05,838 [DEBUG] xqtrader.py 54: login status: SUCCESS
>>> wuser.adjust_weight('000001', 10)
报错:
Traceback (most recent call last):
File "", line 1, in
File "G:\anaconda\lib\site-packages\easytrader\xqtrader.py", line 262, in adjust_weight
stock = self.__search_stock_info(stock_code)
File "G:\anaconda\lib\site-packages\easytrader\xqtrader.py", line 96, in __search_stock_info
'market': self.account_config['portfolio_market'],
KeyError: 'portfolio_market'
2016-10-24