Ticket number

Created at 05 Apr 2015, 11:31
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!
GJ

gjmarkets

Joined 05.04.2015

Ticket number
05 Apr 2015, 11:31


Hi

How to get a unique reference to a PendingOrder , which becomes a Position which becomes a HistoricalTrade ?

Something similar to OrderTicket in MT4, that designate the trade in a unique fashion ?

The PendingOrder.ID is not kept when becoming a Position. What would be the unique reference ? not a custom hand made Label please

Thanks a lot

 


@gjmarkets
Replies

Spotware
06 Apr 2015, 12:58

You can pass Label when you place pending order. Label will be inherited by Position and Historical Trade.


@Spotware

gjmarkets
07 Apr 2015, 14:06

RE:

THis is of course not the point.

A Label is a custom set, which is not a Unique ID.

Will you have the opportunity to add a formal Unique ID to the trade (that is kept when the trade becomes a Position or Historical ) ?

 

Spotware said:

You can pass Label when you place pending order. Label will be inherited by Position and Historical Trade.

 


@gjmarkets

Spotware
09 Apr 2015, 11:34

We plan to add PositionId to the Order object. PositionId is inherited from order to position and then to historical trade. However it is not unique because you can have several orders related to the same position. Will position id suit your needs?


@Spotware

gjmarkets
09 Apr 2015, 14:57

It is of course the other way around:

The "Position" class shall be augmented with a "PendingOrderId" member, which can be null (in case of market orders) or equal to the PendingOrder.ID


@gjmarkets

gjmarkets
02 May 2015, 04:41

When will the be available ?


@gjmarkets

Spotware
18 Jun 2015, 13:01

Dear Traders,

We cannot provide you an ETA.


@Spotware