Jump to content
  • 0

REST API - GET /positions Does Not Return Latest Positions


Neverever

Question

Hi,

Whenever I receive a "traded" signal (either Position opened or closed) from Streaming API, I always do a "GET /positions".

The problem occurs occasionally when new Position is opened.

The "GET /positions" doesn't ALWAYS return the latest Positions with new Position included.

 

e.g.

1. I have 5 Positions in hand and received new Position opened signal from Streaming API
2. Do a "GET /positions" from REST API
3. Most of the time I get 6 Positions returned, but occasionally I get 5 Positions returned.

 

Does  anyone have the same problem? If so, how did you overcome it?

Edited by Neverever
Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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
  • General Statistics

    • Total Topics
      18,589
    • Total Posts
      84,616
    • Total Members
      67,735
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    grobbendonktc
    Joined 27/05/22 01:36
  • Posts

    • Hi @Pricey520, Please try with another browser. You can also delete your cookies and empty your cache. If you are still facing issues, please reach out to helpdesk.uk@ig.com, or go to https://www.ig.com/uk/welcome-page and use our live chat. All the best - Arvin  
    • Market data to trade on Friday: Aussie retail sales; US PCE; oil As we crown out the last week of May, Friday will be dominated by US inflation data, Australian retail sales and oil prices. IGTV’s Jeremy Naylor looks at key levels to watch on AUD/USD and US crude oil.      
    • The UK government has, expectedly, slapped a one-off tax on oil companies’ profits. Jeremy Naylor looks at the price of Brent and indicates the price of unleaded at various key points along the chart as a relatable barometer. In this context big oil companies have shrugged this off, indeed BP having just risen to a new post-Covid high, but small-cap oil is not so happy as seen in the chart of Hurricane.      
×
×
  • Create New...