Changed limit enforcing to use fills to seed limiter.

This commit is contained in:
Pedro Pinto committed 2018-08-02 17:11:43 +00:00
1 parent 7f7e1b8483
commit 4875a6db25
4 files changed
+78 -38

No files matched your search

+2 -1
View File
@@ -118,7 +118,8 @@ void NativeOrder::on_init_recovered(OrderRecord const &rec,
me->definition = def;
me->state = rec.state();
me->sec = serv.sec_db.resolve(SecurityKey(def.security_key()));
me->previous_position_contribution = Quantity(rec.state().filled_quantity());
auto const &native_state = get_native_state(me->state);
switch (me->state.status()) {