Jump to content

LightStreamer with Demo Account


Recommended Posts

I've started using the REST API on NodeJS.  

I can login and create market subscriptions ok using my Live Spreadbet Account.  However, the same subscriptions fail when using my Demo Spreadbet Account (which logs in ok).  Attempting to subscribe to a market EPIC gives the following error message: "Subscription failed: -1 message: Invalid account type". 

Other subscription types such as "Account" and "Trade" respond with "Subscription succeeded".

I've reproduced the issue using the Streaming API companion at https://labs.ig.com/sample-apps/streaming-companion/index.html 

Any ideas?

EDIT: I've figured it out.  I had to switch the active account to the SPREADBET account, from the CFD account.

Link to comment
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...