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/content/5c0778a9628b11955327f4c7b96b2025589ee7df-32x32.svgJoin us on Slack

Enter your email for an invite to our slack community!

https://cdn.sanity.io/images/dhlwe0i3/content/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.