Package Exports
- oandav20
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oandav20) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
OandaV20
OandaV20 is a collection of classes utilizing the Oanda V20 API
Oanda Dev Guide
npm install oandav20
Oanda=require('oandav20')(apikey,host)
To generate an api key, log in to the Account Management Portal and select “Manage API Access” under “My Services”.
By default the host is set for live accounts, 'api-fxtrade.oanda.com'
, and can be omitted. For practice accounts, input 'api-fxpractice.oanda.com'
as the host.
v0.2.3
Position.close()
client extensions added asoptions.longClientExt
andoptions.shortClientExt
v0.2.2
- Fix issue: individual instrument positions not updating after internal/external close
v0.2.1
- Added pricing-based properties to Quote class
Position.close()
now accepts comma separated instrument listPosition.close()
client extensions removed in case account is flagged MT4- all
config.id
are nowconfig.account
v0.2.0
- Added Position class
- Apikey and host are now passed when calling
require()
on OandaV20 modules
v0.1.0
v0.0.1
- Added Quote class