ig-markets
Version:
IG Markets API wrapper for Node.js
33 lines (22 loc) • 789 B
Markdown
A basic wrapper for the IG Markets REST API written in Node.js. Please refer to the official [documentation](https://labs.ig.com/rest-trading-api-guide) for more information on [API endpoints](https://labs.ig.com/rest-trading-api-reference).
```
npm install ig-markets --save
```
```node
var IG = require('ig-markets');
var ig = new IG(key, identifier, password);
ig.prices('CS.D.EURUSD.MINI.IP', function(err, data) {
if (err) {
console.error(err);
} else {
console.log(data);
}
});
```
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](http://opensource.org/licenses/MIT).