Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

You can’t perform that action at this time.