The OANDA v20 REST API provides programmatic access to OANDA's next generation v20 trading engine.
If you have the node package manager, npm, installed:
npm install -g @oanda/v20
Leave off the -g
if you don't wish to install globally. If you don't wish to use npm:
git clone https://github.com/oanda/v20-javascript.git
For documentation, usage and examples, see: http://developer.oanda.com/rest-live-v20/introduction