Amruta 0 Report post Posted July 15, 2019 Hello, I am supposed to show in a table, all the Portfolio info related to a user- (Market Name, Current price, Price_paid_by_user , Profit/loss). Is there an API call to show the Investment Profile? Share this post Link to post
Amruta 0 Report post Posted July 15, 2019 I mean, I need to show the above info about the Markets that the User has invested in. Share this post Link to post
Physicsman 26 Report post Posted July 16, 2019 Hi Amruta, Use the ListOpenPositions call initially to obtain the list of all open positions in the account. Subscribe to the Lighstreamer ClientAccountMargin stream for live updating P&L information for the account as an aggregate total. Subscribe to the TradeMargin stream for live updating individual P&L of each open position. Similarly, for the current market price, subscribe to the Prices stream. Cordially, PM Share this post Link to post
Amruta 0 Report post Posted July 16, 2019 I have one more question: Does GetLatestPriceTicks API call gives the current market price? I got confused with given description. Share this post Link to post
Physicsman 26 Report post Posted July 17, 2019 Hi, The GerLatestPriceTicks call retrieves historic price ticks up to the current time when you make the call. It does not give live updating prices for a market - you will have to subscribe to the Lightstreamer price stream for that market for live updating prices. Kind Regards, PM Share this post Link to post