Knowledge Base/How can I connect to a Polygon WebSocket?

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.



Was this article helpful?

https://cdn.sanity.io/images/dhlwe0i3/production/282ed6a0b66079b791c1fb54aef0d268fb193ad7-592x416.png

Schedule a demo

Talk with our market data experts

Calendly
https://cdn.sanity.io/images/dhlwe0i3/production/70ffe6ec85723f74679004a0a6bbdf66ce1fb58f-592x256.png

Modernizing Wall St.

Reimagining financial market data for the 21st century.

About Polygon

Recommended

Can’t find the answer you’re looking for? Contact our team.