ORDER_POSITION_ID - page 15

 
Contender:

If an order is partially executed, then another part and then the remainder, will there be 3 entries in the history with the same ticket?

No, the record in the history is overwritten.
 
Integer:
For sure? Definitely?
Yes, definitely.
 
Mikalas:
No, the record will be overwritten.

Are you sure you know or are you fantasising?

That's a little confusing. Let's say the order was partially executed and the executed part received an id. We close the position. Then the remaining part triggers. Since there was no position, we should have a position with a new id. Where will it be written in the history?

 
denkir:

What a discussion... it's clearly written in the help, isn't it?

I.e. the order will be assigned to a position(ORDER_POSITION_ID) when it actually takes part in it :-)



And I have "0", the participating order has.....
 
Mikalas:
And I have "0", the participating order.....
The one in the market, or the one in the history? Because you wrote recently that you didn't look at the history.
 
Integer:
The one on the market or the one in the history? After all, you wrote recently that you didn't look at the history.
The active order.
 
Mikalas:
No, the record in the history is overwritten.

Yes???

And the properties are all overwritten (e.g.ORDER_TIME_DONE)?

 
Serj_Che:

This is what I dug up:

FM 0 12:10:16.520 Trades : exchange buy 1.00 SBRF-9.14 at market
GI 0 12:10:16.582 Trades : accepted exchange buy 1.00 SBRF-9.14 at market
MQ 0 12:10:16.582 Trades : exchange buy 1.00 SBRF-9.14 at market placed for execution in 73 ms
DR 0 12:10:16.598 Trades : deal #4698912 buy 1.00 SBRF-9.14 at 7507 done (based on order #5217581)
FO 0 12:10:37.207 Trades : sell limit 1.00 SBPR-9.14 at 5701
KF 0 12:10:37.270 Trades : accepted sell limit 1.00 SBPR-9.14 at 5701
LM 0 12:10:37.285 Trades : sell limit 1.00 SBPR-9.14 at 5701 placed for execution in 81 ms
OP 0 12:17:02.864 Trades : deal #4698952 sell 1.00 SBPR-9.14 at 5701 done (based on order #5217623)
DK 0 12:17:07.473 Trades : exchange buy 1.00 SBRF-9.14 at market
DR 0 12:17:07.535 Trades : accepted exchange buy 1.00 SBRF-9.14 at market
RO 0 12:17:07.567 Trades : exchange buy 1.00 SBRF-9.14 at market placed for execution in 83 ms

JH 0 12:17:07.582 Trades : deal #4698956 buy 1.00 SBRF-9.14 at 7514 done (based on order #5218081)

One order, two positions.

Nah, the orders are different but similar :)
 
Contender:

Yes???

And the properties are all overwritten (e.g.ORDER_TIME_DONE)?

And what, the latest time is being written.
 
Mikalas:
No, the warrants are different, but similar :)
Yes, they are.