Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

hack, always get contractDetails when requesting market data

  • Loading branch information...
commit e481432dcbf4e704cb831c679b0a5587a1351741 1 parent 37f6dcd
@rudimeier authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/tws_meta.cpp
View
4 src/tws_meta.cpp
@@ -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 ) {
Please sign in to comment.
Something went wrong with that request. Please try again.