Skip to content

schopenhauer/ig-markets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.