ig-markets icon indicating copy to clipboard operation
ig-markets copied to clipboard

IG Markets API wrapper for Node.js

Results 8 ig-markets issues
Sort by recently updated
recently updated
newest added

We need an example code to create a market order.

I've looked at the API reference and why would this library require such sensitive information? Which API endpoints for IG require username and password?

Hi, I tried to connect with this API but it shows me error: `Error: Must provide key, identifier and password to make this API request.` Tried with Demo and real...

``` $ nodejs --harmony example.js /home/jack/ig/ig-markets-master/lib/ig.js:41 IG.prototype._request = async function (method, action, data = null, version = 2, attempt = 0) { ^^^^^^^^ SyntaxError: Unexpected token function at exports.runInThisContext (vm.js:53:16)...

$ nodejs --version v4.2.6 ig-markets-master$ nodejs example.js /home/jack/ig/ig-markets-master/lib/ig.js:3 let API = 'https://api.ig.com/gateway/deal/'; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at...

The README shows isDemo flag, but in example.js, not so. Sorry, this is true for the npm installed ig-markets, but code here seems to support isDemo

i copy your sample but it just keep telling Unexpected identifier >> ig

It would be nice to have support for password encryption.