Browse files

call adjustOrders only while no other requests are running

  • Loading branch information...
1 parent 70f3a30 commit 4205d89e11cda31e937d1a490948008df228797f @rudimeier committed Apr 27, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/twsdo.cpp
View
7 src/twsdo.cpp
@@ -473,10 +473,6 @@ void TwsDL::idle()
fuckme = reqMktData();
}
- if( cfg.do_mm ) {
- adjustOrders();
- }
-
GenericRequest::ReqType reqType = workTodo->nextReqType();
switch( reqType ) {
case GenericRequest::ACC_STATUS_REQUEST:
@@ -499,6 +495,9 @@ void TwsDL::idle()
break;
case GenericRequest::NONE:
/* TODO for now we place all orders when nothing else todo */
+ if( cfg.do_mm ) {
+ adjustOrders();
+ }
placeAllOrders();
break;
}

0 comments on commit 4205d89

Please sign in to comment.