-
Notifications
You must be signed in to change notification settings - Fork 61
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
v20 #8
Comments
Havent been using 2.0. Is it needed? Ping me if you have something in mind |
I actually started the process, my oanda account is v2. So I'm doing the conversion line by line in the oanda.py script. Could you answer this, I'm a js programmer, never programmed python so forgive me if this seems like a dumb question. Thanks |
I see. Thanks for doing this. As you can see, I based the bot on oandapy.py - which was the REST-level wrapper around their 1.0 API. So may be its just as simple as replacing that wrapper? As far as your question - settings.py contain bot-level settings that later are passed as parameters to other places in the code. In particular, CANDLES_MINUTES define what size candles to use, meaning how many minutes in a single candle should be. Then that value is used in main.py to pass onto as a parameter to a Strategy object. When strategy initialized itself, it tries to get historic data from the exchange (using GetCandles function). And I think it passes the value of CANDLES_MINUTES to that function. Let me know if I can be of further assistance, or if you need help with the code |
Yes, I thought that's what should be happening, but it's not, settings.py is only sending that |
No, no bug here. |
Ok, bare with me. I'm a JS programming and have never programmed in Python, so I assumed it to be the same variable assignment procedure. Shame on me for that, I do apologize. Thanks for all your help thus far. |
Oh, no worries at all. Happy to help if I can |
Is there a v20 update?
The text was updated successfully, but these errors were encountered: