ProtoOAGetPositionUnrealizedPnL

Created at 22 Nov 2023, 15:07
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
WT

wthamsir

Joined 22.11.2023

ProtoOAGetPositionUnrealizedPnL
22 Nov 2023, 15:07


Dear Admin,

When would the NuGet package be updated with ProtoOAGetPositionUnrealizedPnLReg and ProtoOAGetPositionUnrealizedPnLRes?

Currently I can not access those Protos, and I can't seem to figure out how to call it using the generic ProtoMessage object.
I don't know the syntax for the Payload string. e.g: .PayloadType = 2187, .Payload = Byte.CopyFromUtf8("{ <this part: how to send the ctidTraderAccountId> }").
And I always got this error msg: Protocol message end-group tag did not match expected tag.

So, please help either updating the NuGet package or enlighten me on the Payload syntax. Whichever suits best. Thank you.

 

Regards,
Willy


@wthamsir