Once an active market data request is no longer needed, it can be cancelled via the IBApi::EClient::cancelMktData method. The one argument to cancelMktData is the ticker ID which was specified in original market data request. Cancelling a subscription allows the user to make a subscription to a different contract and remain within the level 1 market data lines allowance.
-
client.cancelMktData(1001);
client.cancelMktData(1002);
client.cancelMktData(1003);
client.cancelMktData(1014);
client.cancelMktData(1015);
client.cancelMktData(1016);
client.cancelMktData(1017);
client.cancelMktData(1018);
client.cancelMktData(1019);
-
client.cancelMktData(1001);
client.cancelMktData(1002);
client.cancelMktData(1003);
client.cancelMktData(1014);
client.cancelMktData(1015);
client.cancelMktData(1016);
client.cancelMktData(1017);
client.cancelMktData(1018);
client.cancelMktData(1019);
-
client.cancelMktData(1001)
client.cancelMktData(1002)
client.cancelMktData(1003)
client.cancelMktData(1004)
client.cancelMktData(1005)
client.cancelMktData(1014)
client.cancelMktData(1015)
client.cancelMktData(1016)
client.cancelMktData(1017)
client.cancelMktData(1018)
client.cancelMktData(1019)
-
m_pClient->cancelMktData(1001);
m_pClient->cancelMktData(1002);
m_pClient->cancelMktData(1003);
m_pClient->cancelMktData(1014);
m_pClient->cancelMktData(1015);
m_pClient->cancelMktData(1016);
m_pClient->cancelMktData(1017);
m_pClient->cancelMktData(1018);
m_pClient->cancelMktData(1019);
m_pClient->cancelMktData(1020);
-
1 self.cancelMktData(1000)
2 self.cancelMktData(1001)