Merged SP-42-manual-fills-should-not-go-into-so into master

This commit is contained in:
Pedro Pinto committed 2019-06-17 14:07:02 -04:00
commit d06bef463b
3 files changed
+7 -6

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ insert_anchor_links = "right"
## 2.3.0
### User Visible Changes
- Changed cover order to continue even if hedgding child is canceled and detach from hedges if canceled
- Changed manual fills to appear in day PnL rather than in the SOD records
- Streamlined the mini order book as follows:
- We now only show exchange orders
- We now only display update buttons for orders that are under control of an algo with the update applying to the entire algo, not just the exchange order
@@ -97,7 +97,7 @@ bts::api::orderman::Fill PositionServiceServer::to_fill(bts::api::position::Manu
result.set_last_price(src.price());
result.set_side(src.side());
result.set_last_shares(src.quantity());
result.set_fill_kind(Fill::FILL_KIND_SOD);
result.set_fill_kind(Fill::FILL_KIND_STANDARD);
result.set_fill_key(std::string("manual:")+std::to_string(src.record_id()));
return result;
}
+5 -5
View File
@@ -128,14 +128,14 @@ Buy a 1 lot at the current bid in ACCA via Trading -> Manual Fills
Click OK to state the fill
Click the Save icon to publish it out
The manual fill will be published as part of the SOD so ACC A should reflect as follows:
The manual fill will be published as part of the Day PnL so ACC A should reflect as follows:
ACC A:
Start Net Pos 0
Start PnL 0.00
Start Net Pos -1 (no change)
Start PnL -37.5
Day Long 0
Day Short 1
Day PnL -37.5
Day Short 0
Day PnL 0
Total Net Pos -1
Total PnL -37.5
PnL Price 14.0125 (displayed as 14.015)