Closed hn2 closed 5 years ago
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHM1SgdlTqLagHGu6F-FS6pjpAcXbnuMks5vYdfMgaJpZM4b8Mua . https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1SgdlTqLagHGu6F-FS6pjpAcXbnuMks5vYdfMgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif>
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua .
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1SgdlTqLagHGu6F-FS6pjpAcXbnuMks5vYdfMgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif>
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua .
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua . https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua .
And create a new token ...
On Wed 20. Mar 2019 at 10:34, Yves Hilpisch yves@tpq.io wrote:
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua .
Tnx it works however it fetches 70 currency pairs and no other instruments like indices.
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:35 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
And create a new token ...
On Wed 20. Mar 2019 at 10:34, Yves Hilpisch yves@tpq.io wrote:
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474754417 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHM1SqkBIxnKTBvC_MoqoCZTaLPpW-MJks5vYgDIgaJpZM4b8Mua . https://github.com/notifications/beacon/AHM1SkU_LcETyJ_6E-5L-t4SEiayDCLbks5vYgDIgaJpZM4b8Mua.gif
Granularity is limited to seconds minutes and daily right (no hourly)?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:35 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
And create a new token ...
On Wed 20. Mar 2019 at 10:34, Yves Hilpisch yves@tpq.io wrote:
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474754417 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHM1SqkBIxnKTBvC_MoqoCZTaLPpW-MJks5vYgDIgaJpZM4b8Mua . https://github.com/notifications/beacon/AHM1SkU_LcETyJ_6E-5L-t4SEiayDCLbks5vYgDIgaJpZM4b8Mua.gif
This exclusively depends on your account (country/jurisdiction).
On Wed 20. Mar 2019 at 10:15, hn2 notifications@github.com wrote:
Granularity is limited to seconds minutes and daily right (no hourly)?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:35 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
And create a new token ...
On Wed 20. Mar 2019 at 10:34, Yves Hilpisch yves@tpq.io wrote:
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread <
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474754417> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1SqkBIxnKTBvC_MoqoCZTaLPpW-MJks5vYgDIgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1SkU_LcETyJ_6E-5L-t4SEiayDCLbks5vYgDIgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474768226, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgBUdeER3T7g41fwmob5e27Pd8mj_ks5vYgpEgaJpZM4b8Mua .
How far back data goes?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 13:01 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
This exclusively depends on your account (country/jurisdiction).
On Wed 20. Mar 2019 at 10:15, hn2 notifications@github.com wrote:
Granularity is limited to seconds minutes and daily right (no hourly)?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:35 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
And create a new token ...
On Wed 20. Mar 2019 at 10:34, Yves Hilpisch yves@tpq.io wrote:
Try without quotes around parameter values.
On Wed 20. Mar 2019 at 10:29, hn2 notifications@github.com wrote:
oanda.cfg:
[oanda]
account_id = '101-001-204423-004'
access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39'
account_type = 'practice'
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you specify the right account type in the credentials?
practice vs live trading?
Without further information we can't help.
On Wed, Mar 20, 2019 at 8:41 AM hn2 notifications@github.com wrote:
Well I am just following your code on github. This is oanda v20 account type. I guess that my credentials are ok since it does not throw an error in line 3?
From: Yves Hilpisch [mailto:notifications@github.com] Sent: Wednesday, 20 March 2019 8:40 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2)
Did you provide correct/valid credentials when instantiating the API object?
Please provide a complete, minimal example.
How to create a Minimal, Complete, and Verifiable example https://stackoverflow.com/help/mcve
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474705962> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474720621, or mute the thread <
.
--
Dr Yves J Hilpisch
The Python Quants GmbH
+49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474744630> , or mute the thread <
. <
https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474752572, or mute the thread < https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua
.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474754417> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1SqkBIxnKTBvC_MoqoCZTaLPpW-MJks5vYgDIgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1SkU_LcETyJ_6E-5L-t4SEiayDCLbks5vYgDIgaJpZM4b8Mua.gif>
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474768226, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgBUdeER3T7g41fwmob5e27Pd8mj_ks5vYgpEgaJpZM4b8Mua .
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yhilpisch/tpqoa/issues/2#issuecomment-474782964 , or mute the thread https://github.com/notifications/unsubscribe-auth/AHM1SuWcrjqlVg-2Dc46KIeLy4VxtHbCks5vYhTmgaJpZM4b8Mua . https://github.com/notifications/beacon/AHM1St5P7iWU1NymfCPsOghfJmu_TLp3ks5vYhTmgaJpZM4b8Mua.gif
Closing this issue. The other questions are not related.
Prova senza virgolette intorno ai valori dei parametri. … On Wed 20. Mar 2019 at 10:29, hn2 @.> wrote: oanda.cfg: [oanda] account_id = '101-001-204423-004' access_token = 'e92f80c034f914f174ec87cbab0e18c9-34882c847717020469510976d9d7ec39' account_type = 'practice' From: Yves Hilpisch @. Sent: Wednesday, 20 March 2019 11:05 To: yhilpisch/tpqoa Cc: hn2; Author Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2) Did you specify the right account type in the credentials? practice vs live trading? Without further information we can't help. On Wed, Mar 20, 2019 at 8:41 AM hn2 @.> wrote: > Well I am just following your code on github. This is oanda v20 account > type. I guess that my credentials are ok since it does not throw an error > in line 3? > > > > > > > > From: Yves Hilpisch @. > Sent: Wednesday, 20 March 2019 8:40 > To: yhilpisch/tpqoa > Cc: hn2; Author > Subject: Re: [yhilpisch/tpqoa] oanda.get_instruments() error (#2) > > > > Did you provide correct/valid credentials when instantiating the API > object? > > Please provide a complete, minimal example. > > How to create a Minimal, Complete, and Verifiable example > https://stackoverflow.com/help/mcve > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub < > #2 (comment)> , or > mute the thread < > https://github.com/notifications/unsubscribe-auth/AHM1SgdlTqLagHGu6F-FS6pjpAcXbnuMks5vYdfMgaJpZM4b8Mua > > . < > https://github.com/notifications/beacon/AHM1Suwgz0KFnuTsAw80c7IahStYiU4Xks5vYdfMgaJpZM4b8Mua.gif > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#2 (comment)>, or mute > the thread > < https://github.com/notifications/unsubscribe-auth/AEXFgGQd6uJEQksm3i5-QqQOwoAQYENGks5vYeY2gaJpZM4b8Mua > > . > -- Dr Yves J Hilpisch The Python Quants GmbH +49 3212 1129194 http://aimachine.io http://certificate.tpq.io http://tpq.io | http://pqp.io — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < #2 (comment)> , or mute the thread < https://github.com/notifications/unsubscribe-auth/AHM1Sms05mziJChJDkNxvxa3jLOkuso5ks5vYfnRgaJpZM4b8Mua> . < https://github.com/notifications/beacon/AHM1StFIXNmKIyogo04YFaoFJt1unxjlks5vYfnRgaJpZM4b8Mua.gif> — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#2 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXFgDpVLejbr8YuZtwus4-0My3r52Sqks5vYf94gaJpZM4b8Mua .
Solved with this
https://blog.csdn.net/Linli522362242/article/details/126443770 ` import v20
PRACTICE_API_HOST = 'api-fxpractice.oanda.com' # fxTrade Practice PRACTICE_STREAM_HOST = 'stream-fxpractice.oanda.com' # fxTrade Practice
LIVE_API_HOST = 'api-fxtrade.oanda.com' # fxTrade LIVE_STREAM_HOST = 'stream-fxtrade.oanda.com' # fxTrade
PORT = '443'
account_id = '101-001-23023947-001' token = '795cc4bb80b7e2eb0c7c314ee196dbae-2871ba6122cb4c670a2439e07f998611'
api = v20.Context(PRACTICE_API_HOST, PORT, token=token) stream_api = v20.Context(PRACTICE_STREAM_HOST, PORT, token=token)
def get_instruments(): ''' Retrieves and returns all instruments for the given account. ''' resp = api.account.instruments( account_id ) instruments = resp.get('instruments') instruments = [ ins.dict() for ins in instruments ] instruments = [ (ins['displayName'], ins['name'] ) for ins in instruments ] return sorted( instruments )
get_instruments()[:15] `
ins = oanda.get_instruments()
error:
400 response for GET https://api-fxpractice.oanda.com:443/v3/accounts/'...'/instruments does not have field 'instruments' (contains 'errorMessage')