Jump to content
Sign in to follow this  
Amruta

How to get User's Portfolio information

Recommended Posts

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

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

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

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
Sign in to follow this  
×