Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "hack, add conId to mkt data contracts"

This reverts commit 95978a3.
  • Loading branch information...
commit fbbb2bf8692096af28bb09fba864cb4bec6fed36 1 parent 28b53d6
Ruediger Meier authored
Showing with 0 additions and 8 deletions.
  1. +0 −8 src/twsdo.cpp
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;
Please sign in to comment.
Something went wrong with that request. Please try again.