我收到错误:“ JSONDecodeError:期望属性名称用双引号引起:第1行第2列(字符1)”
JSONDecodeError Traceback (most recent call last)
<ipython-input-125-87ecd9aa8181> in <module>()
2 access_token=config['oanda']['access_token'])
3 mt.rates(account_id=config['oanda']['account_id'],
----> 4 instruments=['DE30_EUR'], ignore_heartbeat=True)
运行以下代码行时:
mt = MomentumTrader(momentum=12, environment='practice',
access_token=config['oanda']['access_token'])
mt.rates(account_id=config['oanda']['account_id'],
instruments=['DE30_EUR'], ignore_heartbeat=True)`
它取自https://www.oreilly.com/learning/algorithmic-trading-in-less-than-100-lines-of-python-code
我试图将单引号改为双引号,但是没有运气,仍然会出现错误。
谢谢!