How can I connect to a Polygon WebSocket?
Our WebSocket APIs are based on entitlements that control which WebSocket Clusters you can connect to and which kinds of data you can access.
You can choose which channels you want to receive by sending instructions in the form of actions. The API will notify you when an event occurs in a channel you have subscribed to. Our WebSocket APIs are based on entitlements that control which WebSocket clusters you can connect to and the types of data you can access. Examples of this in the documentation include API key, which is unique and personalized to your entitlements. WebSockets are available through all paid subscriptions. To use the API, you need to connect, authenticate and then subscribe to stream WebSocket messages. Our documentation provides steps to help you get set up and examples using “wscat” to connect. Additionally, we provide sample libraries in different programming languages to help you connect.
Talk with our market data experts
Reimagining financial market data for the 21st century.
Can’t find the answer you’re looking for? Contact our team.
WebSockets
WebSockets
FAQ
FAQ
WebSockets