kieran-mackle / AutoTrader

A Python-based development platform for automated trading systems - from backtesting to optimisation to livetrading.
https://kieran-mackle.github.io/AutoTrader/
GNU General Public License v3.0
937 stars 216 forks source link

help with issue #80

Open milandijhon opened 1 year ago

milandijhon commented 1 year ago

cant seem to solve this, please help: Traceback (most recent call last): File "C:\GitHub_Projects\Autotrader\AutoTrader\testrun.py", line 6, in at.run() File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autotrader.py", line 1142, in run self._main() File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autotrader.py", line 1613, in _main bot = AutoTraderBot( File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autobot.py", line 223, in init self._refresh_data(deploy_dt) File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autobot.py", line 449, in _refresh_data data, multi_data, quote_data, auxdata = self.Stream.refresh(timestamp=timestamp) File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\utilities.py", line 1174, in refresh data = data_func( File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autodata.py", line 377, in _oanda data = self._response_to_df(response) File "C:\GitHub_Projects\Autotrader\AutoTrader\autotrader\autodata.py", line 608, in _response_to_df
raise Exception( Exception: Error dowloading data - please check instrument format and try again

pboachie commented 6 months ago

Wrong instrument is being used @milandijhon. For example Yahoo uses "EURUSD=X" where oanda uses "EURUSD". They all mean the same. With Oanda, you need to replace the / with

yfinance Example image

Oanda Example image