Best method for updated positions

r95990
Can anybody help me with the best method to keep my positions updated?
Currently, I have included the get positions on every order update event, my order update event also includes alerts me on every order update like trade, order modification, rejected, partial fill, etc. It is working fine until I noticed that whenever there are multiple order updates, the get positions after the order update loops multiple times, which I need to avoid.

One of the ideas is to schedule get positions periodically which would be unnecessary postbacks.

Hope this explains!
Kindly help with any ideas!
  • sujith
    sujith edited January 8
    I would say let it fetch multiple times. It is far better than having stale data after aggressive optimizations to cache data. Scheduling positions fetch at fixed interval may also lead to more unnecessary fetches.
Sign In or Register to comment.