Giter Club home page Giter Club logo

node-ig-api's People

Contributors

gfiocco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-ig-api's Issues

MARKET order

Is there a reason why we can't create MARKET orders?

Order creation failed: Error: type has to be LIMIT or STOP

How to get data from subscribeToLightstreamer() ?

Hi,

I got subscribeToLightstreamer() to work but I don't understand how this function returns datas.
Only things I can see it's a console.log() but I can't manipulate it.

ig.connectToLightstreamer();
const res = ig.subscribeToLightstreamer(subscriptionMode, items, fields, 0.5);
console.error('res', res)  // undefined

Any idea ?

Thank you for your time !

X-IG-API-KEY

[Error: value required in setHeader("X-IG-API-KEY", value).]

Lightstreamer: Sending to a port

Hi @gfiocco , many thanks for such a wonderful package. I say it is the only one that actually works. I need to change the output of Lightstreamer instead of getting a log to sending it to a port. I changed the subscribeToLightstreamer() function in index.js as follows to get a json output

image

Do you have any suggestion how to modify it to listen to port rather than writing it in a file?

histPrc doesn't give the data in the date range I want

Hello,

I have this code :

ig.histPrc("CS.D.EURUSD.CFD.IP", "MINUTE", "2019-04-12T08:00:00", "2019-04-14T19:00:00")
	.then(function(res, err){
		if(!err){
			fs.writeFileSync("data.json", JSON.stringify(res));
		}
		else {
			console.log(err)
		}
	})

Even though I have the correct date format (taken from the documentation), I can't get the data from the date range I'm looking for, I just get the 10 most recent data points.

How can I have the data for a specific date range?

Thanks in advance.

Only getting 10 time points when requesting historical data

Hi @gfiocco,

Another problem I am facing is that when I use the line below:

ig.histPrc('CS.D.EURGBP.TODAY.IP', 'DAY', '2019-07-07T00:39:00', '2020-07-07T00:40:00').then(r => console.log(util.inspect(r, false, null))).catch(e => console.log(e));

I only get 10 time points rather than for the requested period. I don't think limitation is the problem because when I use IG companion I can get the data but when I run it from NodeJS it only gives 10 data points.

'error.security.client-token-missing'

Hi @gfiocco ,

I am facing a problem that I did not have it before. I have followed step by step on how to input my security detail and log in. And I have logged successfully before but today when I tried to log in it came with the error below:

errorCode: 'error.security.client-token-missing'

Any suggestion what might have gone wrong?

Many thanks

Logging in

I am trying to log in but it does not recognise my credentials, below is the message I receive:
image
I am not sure, for the key I use the key provided by IG, for identifier I tried both my live account id and an id that I specifically set for my demo account. Similarly I tried both passwords and still I am not able to connect.

Subscription failure: 21 message: Invalid group

Hello,

I don't know if this is an issue with your app, an error with the rest API or my mistake, but I have this error :
Subscription failure: 21 message: Invalid group

My code is :


var list_epics = '{"CS.D.EURUSD.CFD.IP","CS.D.USDJPY.CFD.IP","IX.D.DAX.IFMM.IP"}'
var resp = ig.subscribeToLightstreamer("MERGE", list_epics, ["BID","OFFER"], 100)

What is the issue?

Thanks in advance for the help.

Login token expiration

Hi,

What the point to get a token expiration after 12h ?

Thanks for any informations !
Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.