Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help with issue #80

Open
milandijhon opened this issue Apr 13, 2023 · 1 comment
Open

help with issue #80

milandijhon opened this issue Apr 13, 2023 · 1 comment

Comments

@milandijhon
Copy link

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
Copy link
Contributor

pboachie commented Feb 8, 2024

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

yfinance Example
image

Oanda Example
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants