Jump to content
  • 0

Created a Demo account with API access - don't see API orders in the platform


Rene

Question

HI,

I have API access on my demo account, and I'm able to open a OTC position. The result is "Accepted". 
However, I don't see this order in de demo-platform. It seems like these are not the same environments.

Any ideas how to troubleshoot or fix this?

Thanks,

René

 

  • Like 1
Link to comment

3 answers to this question

Recommended Posts

  • 1

Hi,

that an order is accepted does not mean that it will be filled. As you are aware, after opening a position with the /otc endpoint, you will get a dealReference – described in the API as an "unconfirmed trade".

With the reference you will have to check if either a confirmation or an error message is available. The recommended way is to use the LightStreamer API, otherwise you can poll the /confirms/ endpoint. See

https://labs.ig.com/rest-trading-api-reference/service-detail?id=658

Link to comment
  • 0

Thanks mf2,

I found the /confirms endpoint. It didn't quite solve the problem. It seems that the platform is actually connected to a different account.  I used the stream-companion to get the updates of the trades.

Thanks,
René

Link to comment

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...
us