You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-26
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,33 @@ for quote in quotes:
55
55
Note: For parameter argument examples check out our docs. All required arguments are annotated with red asterisks " * " and argument examples are set.
56
56
Check out an example for Aggregates(client.get_aggs) [here](https://polygon.io/docs/stocks/get_v2_aggs_ticker__stocksticker__range__multiplier___timespan___from___to)
57
57
58
+
## WebSocket Client
59
+
60
+
Import classes
61
+
```python
62
+
from polygon import WebSocketClient
63
+
from polygon.websocket.models import WebSocketMessage
64
+
from typing import List
65
+
```
66
+
### Using the client
67
+
Create a new client with your [API key](https://polygon.io/dashboard/api-keys) and subscription options.
68
+
```python
69
+
# Note: Multiple subscriptions can be added to the array
70
+
# For example, if you want to subscribe to AAPL and META,
71
+
# you can do so by adding "T.META" to the subscriptions array. ["T.AAPL", "T.META"]
72
+
# If you want to subscribe to all tickers, place an asterisk in place of the symbol. ["T.*"]
0 commit comments