How to run Oandatest demo?
-
Hello Dro,
I' m trying to use the code Oandatest.py but that doesn't work I have the following error:
I read old posts :https://community.backtrader.com/topic/99/oandatest-no-attribute-contractdetails
but I'm a bit stupid, not find a way to continue. I just started learning to use backtrader, and run oandatest.py.
I got oanda account and token , but don't know how to get old oanda API message .I change parameter attribute (account_id, token, data0)
if I don't change ,it's don't work and error:
so, how to run oandatest.py succeed ? What should I pay attention? I couldn't find a way.
please, give me a hand . thanks very much. -
I fail to understand why people post images of text ...
In any case you are not letting people know how you run
oandatest.py
. In any case you probably have a v20 account and that won't work unless you use a broker compatible with it. See -
sorry, This is my first question, My picture might be a little bit more intuitive, I used pycharm to run oandatest.py, I don't use a broker compatible with it. just one project of backtrader( https://github.com/backtrader/backtrader), then ,run some demo to learn.
I go to see it(https://github.com/ftomassetti/backtrader-oandav20), and try again.
Do I need to introduce other components? In addition to oandav20.
I just came into contact with this, and the purpose is hope to learn the data-driven process of the project through running live data feed demo and debugging.
Thank you so much for your reply and advice. -
sorry, This is my first question, My picture might be a little bit more intuitive, I used pycharm to run oandatest.py, I don't use a broker compatible with it. just one project of backtrader( https://github.com/backtrader/backtrader), then ,run some demo to learn.
My answer was wrong, I pip install oandav20, and it's also don't work.
The error info is consistent with the images posted. -
@xiaoy0521 on https://github.com/ftomassetti/backtrader-oandav20 there is some installation guide. In the directory examples, you will find oandav20test.py . This may help you get started.
also you need v20 instead of oandav20.
pip install v20