JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

ig-markets

A basic wrapper for the IG Markets REST API written in Node.js. Please refer to the official documentation for more information on API endpoints.

Installation

Note: Without tanspiling this will require node with --harmony flag to run

npm install ig-markets --save

Usage

const IG = require('ig-markets');
const ig = new IG(key, identifier, password, isDemo);

try {
  const data = await ig.prices('CS.D.EURUSD.MINI.IP');
  console.log(data);
} catch(e) {
  console.error(e);
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/schopenhauer/ig-markets.

License

The module is available as open source under the terms of the MIT License.