• C#
  • Java
  • VB
  • C++
  • Python
Contact us
Cancelling Streaming Data

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(1001);
    client.cancelMktData(1002);
    client.cancelMktData(1003);
    client.cancelMktData(1014);
  • client.cancelMktData(1001)
    client.cancelMktData(1002)
    client.cancelMktData(1003)
    client.cancelMktData(1004)
    client.cancelMktData(1005)
    client.cancelMktData(1014)
  • m_pClient->cancelMktData(1001);
    m_pClient->cancelMktData(1002);
    m_pClient->cancelMktData(1003);
    m_pClient->cancelMktData(1014);
  • 1  self.cancelMktData(1101)
    2  self.cancelMktData(1001)
    3  self.cancelMktData(1002)
    4  self.cancelMktData(1003)