Jump to content
Sign in to follow this  
aperson

Any way to see P/L for individual open positions?

Recommended Posts

I was looking in the docs under list open positions, but didn't see anything related to that. Also, none of the individually queried open positions show any P/L. Do we have to calculate our own by subtracting the open price from the current price for each open position?

Share this post


Link to post

Hello,

There are 2 ways you can obtain the P&L for each open position.

1) As you already guessed, the first way is to manually calculate it by subtracting the opening price from the current live market price for long positions, or vice versa for short positions.

Alternatively.

2) You can subscribe to the TradeMargin stream, which provides the streaming live P&L value for each open position (amongst other information)https://docs.labs.gaincapital.com/#Streaming Data/TradeMargin.htm?TocPath=CIAPI%20Reference%7CStreaming%20Data%7C_____8

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  
×