Yes, but please use a new thread for questions unrelated.

You need to request a V1 API fxtrader account from Oanda. The default account is not supported by the API. Details are in the manual.