bowhead
bowhead copied to clipboard
Oanda.php api wrapper
This one needs to be updated for /v3 accounts. Changing the web path from v1 to v3 does not do the trick. there is more stuff to change.
python streaming.py
{"errorMessage":"Insufficient authorization to perform request."}
since the v1 id did look like this:
{ "accounts": [ { "accountId" : 8954947, "accountName" : "Primary", "accountCurrency" : "USD", "marginRate" : 0.05 }, { "accountId" : 8954950, "accountName" : "SweetHome", "accountCurrency" : "CAD", "marginRate" : 0.02 } ] }
now the /accounts request delivers something like that:
{"accounts":[{"id":"XXX-XXX-XXXXXXX-XXY","mt4AccountID":XXXXXXX,"tags":["MT4"]},{"id":"XXX-XXX-XXXXXXX-XXX","tags":[]}]}
the last one is used for authorization. the first one seems to be for there mt4 trader stuff.