Freeze

API to query trade PL

Programming


My strategy need the unrealized PL of my trades to decide take profit or stop loss. 
I checked the tech doc a few times but still can't find related implementation details. 
Anyone know what is the API function??

 
Ultraman
Seems no such API yet. 
You can simply calculate using this formula: PL = Position*(market price - open price)
 
admin
Hi Freeze, sorry that the current API doesn't support query PL by trade. 
As we received a few users requesting for similar feature, we will add it into our development roadmap.