fmgo-igbroker
v0.0.3-beta.4
Published
Wrapper for the IG Market REST And Lightstreamer Trading API with fmgo formatting
Downloads
4
Readme
fmgo-igbroker
Flamingo module to expose IG REST And LightStreamer API, with inputs and outputs formatted for flamingo. The data model of flamingo is described here.
Getting Started
Install
npm install fmgo-igbroker
Usage
export IG_API_KEY="MYIGAPIKEY"
export IG_IDENTIFIER="MYIDENTIFIER"
export IG_PASSWORD="MYPASSWORD"
const IGBroker = require('fmgo-igbroker');
// Get the credentials from environements variables
const { IG_API_KEY, IG_IDENTIFIER, IG_PASSWORD } = process.env;
// Build the broker with your credentials
const broker = new IGBroker(IG_API_KEY, IG_IDENTIFIER, IG_PASSWORD, true);
// Connect to IG API
broker.connect().then((response) => {
console.log('Connected to IG API', response);
// Use the broker...
});
You can find more examples here
Documentations and links
- API Reference (Markdown)
- Complete documentation
- fmgo-marketdata Project using fmgo-igbroker for marketdata gathering (firebase persistence)
- fmgo-risk-manager Project using fmgo-igbroker for trading
- https://labs.ig.com/ IG Labs ressources
- https://gitlab.com/fmgo/ Flamingo gitlab group