---
title: "Close A Backend Data Stream"
method: POST
path: "/iserver/marketdata/unsubscribe"
tags: ["tradingMarketData"]
---

# Close A Backend Data Stream

`POST /iserver/marketdata/unsubscribe`

Instruct IServer to close its backend stream for the instrument when real-time snapshots are no longer needed.

## Request body

- object
  - `conid` integer — The IB contract ID of the instrument whose market data feed is to be unsubscribed.

## Response `200`

Acknowledges a successful request

- TradingMarketDataCloseMdStreamResponse200 — Acknowledges a successful request.
  - `success` boolean — The sole key 'success' will have boolean value true.

## Other responses

- `400` — Missing, empty, non-numeric, or out-of-range parameter. The `error` field is always prefixed with `Bad Request:`.
- `401` — Missing, invalid, or unparseable Authorization token.
- `500` — internal server error, returned when incoming request cannot be processed. It can sometimes include subset of bad requests. For example, wrong accountId passed and it can only be detected later in handling request. Error contains reason of the problem.
- `503` — service is unavailable. For example if request takes more than 10s due to some internal service unavailability, request aborted and this status returned

---

[API](https://skmtc.net/interactivebrokers/apis/api-reference.md) · [All operations](https://skmtc.net/interactivebrokers/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/interactivebrokers/api-reference/revisions/67f9f562c2c6/schema)
