0.0.3-beta.4 • Published 5 years ago

fmgo-igbroker v0.0.3-beta.4

Weekly downloads
11
License
MIT
Repository
gitlab
Last release
5 years ago

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

0.0.3-beta.4

5 years ago

0.0.3-beta.2

6 years ago

0.0.3-beta.1

6 years ago

0.0.2

6 years ago

0.0.2-beta.5

6 years ago

0.0.2-beta.4

6 years ago

0.0.1

6 years ago

0.0.1-alpha.4

6 years ago

0.0.1-alpha.3

6 years ago

0.0.1-alpha.2

6 years ago

0.0.1-alpha.1

6 years ago