Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1015 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 1015 Bytes

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.