Closed ranaroussi closed 9 years ago
To make oandapy.py compatible with Python 3.x, I had to change lines 279-280 from:
oandapy.py
279-280
data = json.loads(line) if not (ignore_heartbeat and data.has_key("heartbeat")): ...
to
data = json.loads(line.decode("utf-8")) if not (ignore_heartbeat and "heartbeat" in data): ...
. Also, line 246 had to update the live api endpoint from
246
self.api_url = 'https://stream-fxtrade.oanda.com/v1/quotes'
self.api_url = 'https://stream-fxtrade.oanda.com/v1/prices'
To make
oandapy.py
compatible with Python 3.x, I had to change lines279-280
from:to
. Also, line
246
had to update the live api endpoint fromto