Quotes

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

Stream real-time Best Bid and Offer (BBO) quote data for specified Forex currency pairs via WebSocket. Each message provides the current bid/ask prices, sizes, and associated metadata as they update, enabling users to monitor evolving market conditions, guide trading decisions, and power responsive, data-driven applications.

Use Cases: Live monitoring, market analysis, trading decision support, dynamic interface updates.

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 (C)
The event type.
p
string
The current pair.
x
integer
The exchange ID. See Exchanges for Polygon.io's mapping of exchange IDs.
a
number
The ask price.
b
number
The bid price.
t
integer
The Timestamp in Unix MS.
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?