I think it's better to use a more stabl, supported and maintained package, e.g. https://github.com/hootnot/oanda-api-v20