JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22
  • Score
    100M100P100Q42755F
  • License MIT

Oanda V20 classes

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

Oanda npm issues license

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 as options.longClientExt and options.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 list
  • Position.close() client extensions removed in case account is flagged MT4
  • all config.id are now config.account

v0.2.0

  • Added Position class
  • Apikey and host are now passed when calling require() on OandaV20 modules

v0.1.0

  • Added Account class
  • Added account-based properties to Quote class

v0.0.1