Aggregates (Per Second)

WS
Delayed: wss://delayed.polygon.io/forex
Real-Time: wss://socket.polygon.io/forex

Stream second-by-second aggregated OHLC (Open, High, Low, Close) and volume data for a specified Forex currency pair via WebSocket. These aggregates update continuously in Eastern Time (ET) and are derived from the best bid/offer quotes rather than executed trades. If no new quotes occur within a given minute, no bar is emitted, transparently indicating a period without market updates. By providing a continuous feed of updated market snapshots, this endpoint supports intraday analysis, dynamic charting, and the refinement of real-time Forex trading strategies.

Use Cases: Real-time monitoring, dynamic charting, intraday strategy development, market research.

Parameters
ticker
string
required
Specify a forex pair in the format {from}/{to} or use * to subscribe to all forex pairs. You can also use a comma separated list to subscribe to multiple forex pairs. You can retrieve active forex tickers from our Forex Tickers API.
Response Attributes
ev
enum (CAS)
The event type.
pair
string
The currency pair.
o
number
The open price for this aggregate window.
c
number
The close price for this aggregate window.
h
number
The high price for this aggregate window.
l
number
The low price for this aggregate window.
v
integer
The volume of trades during this aggregate window.
s
integer
The start timestamp of this aggregate window in Unix Milliseconds.
e
integer
The end timestamp of this aggregate window in Unix Milliseconds.
Code Examples
Subscription Request
WS
Log in or Sign up to Polygon to customize the websocket code examples. It's free.
Response Object
Did you find this page helpful?
Do you still need help with something?