TradeInfo
-
- Posts: 545
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 22 times
- Been thanked: 83 times
Re: TradeInfo
Thanks Andrey,
This is all I can see. How is it not showing up?
This is all I can see. How is it not showing up?
- Attachments
-
- tradeInfo.png (100.43 KiB) Viewed 3703 times
-
- Posts: 545
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 22 times
- Been thanked: 83 times
Re: TradeInfo
Hi hedgefair,
I could have misunderstood you so sorry for that. There are two cases of executed volumes - our own executions and somebody's else executions.
1) for somebody's else excecutions just add up sizes starting from the moment tradeInfo.isExecutionStart is true until tradeInfo.isExecutionEnd becomes true. That indicates that the execution chain came to an end.
2) for your own executions use OrderLisnener and its method onOrderExecuted to get ExecutionInfo objects and use them in a similar manner.
I could have misunderstood you so sorry for that. There are two cases of executed volumes - our own executions and somebody's else executions.
1) for somebody's else excecutions just add up sizes starting from the moment tradeInfo.isExecutionStart is true until tradeInfo.isExecutionEnd becomes true. That indicates that the execution chain came to an end.
Code: Select all
if (tradeInfo.isExecutionStart) {
accumulatedSizeExample = 0;
}
accumulatedSizeExample += size;
if (tradeInfo.isExecutionEnd) {
Log.info("another chain volume is " + accumulatedSizeExample);
}