-
A few months ago, I created a few new live accounts and was trying to trade using v20 API. I then realized that the new accounts were getting an error. This was true only for the new accounts. The old account was working just fine. I tried running curl and the same thing was true for the new account. The old accounts were (and still are) responding with success. Here is the curl command that I run for curl -H "Content-Type: application/json" -H "Authorization: Bearer MY_API_KEY" "https://api-fxtrade.oanda.com/v3/accounts/MY_ACCOUND_ID_PREFIX-010/summary" And the error I get: {
"errorMessage": "The provided request was forbidden."
} However, if I run the same command for {
"account": {
...
},
"lastTransactionID": "7937"
} Yes, I have ensured that the account IDs, URLs and API key are correct. This is a live account, and this prevents me from trading. I would really love to get this resolved. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Actually, just realized that this is not the official OANDA API repo. 😅 🤦 |
Beta Was this translation helpful? Give feedback.
-
FWIW: revoke your token and generate a new one. More issues like yours were resolved by doing that. |
Beta Was this translation helpful? Give feedback.
-
Omg, how didn't I think about this..? I'll give it a try. |
Beta Was this translation helpful? Give feedback.
-
That worked! Thank you @hootnot!! |
Beta Was this translation helpful? Give feedback.
That worked! Thank you @hootnot!!