Permalink
Browse files

Revert "hack, add conId to mkt data contracts"

This reverts commit 95978a3.
  • Loading branch information...
1 parent 28b53d6 commit fbbb2bf8692096af28bb09fba864cb4bec6fed36 @rudimeier committed May 11, 2012
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/twsdo.cpp
View
@@ -582,17 +582,9 @@ bool TwsDL::finContracts()
}
if( cfg.do_mm ) {
- // HACK we want exactly one ContractDetails for each mkt data contract
assert( p->constList().size() == 1 );
const IB::ContractDetails &cd = p->constList().at(0);
con_details[cd.summary.conId] = new IB::ContractDetails(cd);
-
- // HACK add conId to mkt data contracts
- int mi = con_details.size() - 1;
- const MktDataTodo &mtodo = workTodo->getMktDataTodo();
- IB::Contract &contract = mtodo.mktDataRequests[mi].ibContract;
- assert( contract.conId == 0 || contract.conId == cd.summary.conId );
- contract.conId = cd.summary.conId;
}
return true;

0 comments on commit fbbb2bf

Please sign in to comment.