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.
Note: Without tanspiling this will require node with --harmony flag to run
npm install ig-markets --save
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);
}
Bug reports and pull requests are welcome on GitHub at https://github.com/schopenhauer/ig-markets.
The module is available as open source under the terms of the MIT License.