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

' Broker' object has no attribute '_allow_dancing_bears ' #102

Open
lanbuithe opened this issue Apr 2, 2024 · 0 comments
Open

' Broker' object has no attribute '_allow_dancing_bears ' #102

lanbuithe opened this issue Apr 2, 2024 · 0 comments

Comments

@lanbuithe
Copy link

I got error when deploying in livetrade mode (auto trade in paper environment)

Error log

2024-03-27 03:08:29,557 | ERROR | autobot | Error when updating strategy: 'Broker' object has no attribute '_allow_dancing_bears' (autobot.py:238)
2024-03-27 03:08:29,558 | INFO | autobot | Traceback (most recent call last):
File "/home/adminuser/venv/lib/python3.11/site-packages/autotrader/autobot.py", line 236, in _update
strategy_orders = self._strategy.generate_signal(timestamp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mount/src/autotrader-forex/strategies/ema_crossover.py", line 55, in generate_signal
data = self.broker.get_candles(self.instrument, granularity="1h", count=300)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/autotrader/brokers/oanda.py", line 269, in get_candles
data = self._response_to_df(response)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/adminuser/venv/lib/python3.11/site-packages/autotrader/brokers/oanda.py", line 438, in _response_to_df
if self._allow_dancing_bears:
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Broker' object has no attribute '_allow_dancing_bears'
(autobot.py:239)

Version of AutoTrader being used
eg. Using version `1.1.2’

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

1 participant