Hi everyone,
I'm currently developing a C++ application for use with IB TWS API in C++ Builder IDE. I've imported the TWS ActiveX component and added to a form. Connecting via IB Gateway works flawlessly and I can receive account info.
However, when using reqMktDataEx, nothing seems to happen, and the corresponding OntickPrice event never gets fired, even though I can see my even handling routine is associated with it. Pls see the code for data request below:
ContractInfo->symbol = SysAllocString(L"ES");
ContractInfo->secType = SysAllocString(L"FUT");
ContractInfo->exchange = SysAllocString(L"GLOBEX");
ContractInfo->expiry = SysAllocString(L"201409");
ContractInfo->currency = SysAllocString(L"USD");
ContractInfo->includeExpired = true;
Tws1->reqMktDataEx(0, ContractInfo, SysAllocString(L""), 0);
Tws1->reqAccountUpdates(1, SysAllocString(L"DU126171"));
Tws1->reqMktDepthEx(3, ContractInfo, 2);
Any idea why some events get fired, and some don't? I'm using similar setup with Matlab and it works like a charm, hence my bewilderment...thanks in advance!
I'm currently developing a C++ application for use with IB TWS API in C++ Builder IDE. I've imported the TWS ActiveX component and added to a form. Connecting via IB Gateway works flawlessly and I can receive account info.
However, when using reqMktDataEx, nothing seems to happen, and the corresponding OntickPrice event never gets fired, even though I can see my even handling routine is associated with it. Pls see the code for data request below:
ContractInfo->symbol = SysAllocString(L"ES");
ContractInfo->secType = SysAllocString(L"FUT");
ContractInfo->exchange = SysAllocString(L"GLOBEX");
ContractInfo->expiry = SysAllocString(L"201409");
ContractInfo->currency = SysAllocString(L"USD");
ContractInfo->includeExpired = true;
Tws1->reqMktDataEx(0, ContractInfo, SysAllocString(L""), 0);
Tws1->reqAccountUpdates(1, SysAllocString(L"DU126171"));
Tws1->reqMktDepthEx(3, ContractInfo, 2);
Any idea why some events get fired, and some don't? I'm using similar setup with Matlab and it works like a charm, hence my bewilderment...thanks in advance!
ET Sending error.