---
title: "Stream updates for instruments"
method: GET
path: "/v4/user/accounts/{server}/{accountId}/instruments/stream"
tags: ["Instruments (v4)"]
---

# Stream updates for instruments

`GET /v4/user/accounts/{server}/{accountId}/instruments/stream`

## Request

- Base URL: `https://trading-api.oanda.com` (the document declares no server; this is the origin it was published from)
- URL: `https://trading-api.oanda.com/v4/user/accounts/{server}/{accountId}/instruments/stream`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/oanda/apis/up-gateway-v1/docs/v4/user/accounts/:server/:accountId/instruments/stream/get.ts> (a function with typed inputs; its response is checked against the schema)

Streams real-time updates for instruments. On connection, sends both MARKET_OPEN and MARKET_CLOSE messages with all instruments. 
After that, only sends updates for instruments that changed state. Ping messages are sent every 5 seconds to keep the connection alive.

## Path parameters

- `server` 'oanda' | 'oanda-demo' | 'otms' | 'v20' | 'v20-demo' | 'oj' | 'oj-demo' | 'opt' | 'ftmo-1', required
- `accountId` string, required

## Response `200`

Stream response

---

[API](https://skmtc.dev/oanda/apis/up-gateway-v1.md) - [All operations](https://skmtc.dev/oanda/apis/up-gateway-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/oanda/apis/up-gateway-v1/revisions/395d645513bf?raw)
