Changed fill kind enum to be consistent with other kinds.

This commit is contained in:
Pedro Pinto committed 2018-07-30 18:13:07 +00:00
1 parent c52a35e950
commit 1be9b7556e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ message Fill {
enum FillKind {
FILL_KIND_STANDARD = 0;
FILL_KIND_LEG = 1;
SOD_POS = 2;
FILL_KIND_SOD = 2;
}
FillKind fill_kind = 10;
}
@@ -21,7 +21,7 @@ void SODPosition::_zero_pos(Fill& pos, const Fill& fill, api::Side side){
pos.set_security_key(fill.security_key());
pos.set_account(fill.account());
pos.set_side(side);
pos.set_fill_kind(Fill::SOD_POS);
pos.set_fill_kind(Fill::FILL_KIND_SOD);
}
void SODPosition::add_fill_to_sod_pos(const Fill& fill){
@@ -62,4 +62,4 @@ std::vector<const Fill*> SODPosition::sod_pos(){
return rv;
}
}}
}}