Permalink
Browse files

hack, always get contractDetails when requesting market data

  • Loading branch information...
1 parent 37f6dcd commit e481432dcbf4e704cb831c679b0a5587a1351741 @rudimeier committed May 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/tws_meta.cpp
View
@@ -540,6 +540,10 @@ int WorkTodo::read_req( const xmlNodePtr xn )
PacketMktData *pmd = PacketMktData::fromXml(xn);
_market_data_todo->add( pmd->getRequest() );
delete pmd;
+ // HACK always get contractDetails too
+ PacketContractDetails *pcd = PacketContractDetails::fromXml(xn);
+ _contractDetailsTodo->add(pcd->getRequest());
+ delete pcd;
} else if ( strcmp( tmp, "account") == 0 ) {
addSimpleRequest(GenericRequest::ACC_STATUS_REQUEST);
} else if ( strcmp( tmp, "executions") == 0 ) {

0 comments on commit e481432

Please sign in to comment.