@@ -150,54 +150,6 @@ ws.run(handle_msg=handle_msg)
150150``` 
151151Check out more detailed examples [ here] ( https://github.com/polygon-io/client-python/tree/master/examples/websocket ) .
152152
153- ## Launchpad REST API Client  
154- Users of the Launchpad product will need to pass in certain headers in order to make API requests using the RequestOptionBuilder.
155- Example can be found [ here] ( ./examples/launchpad ) .
156- 
157- Import classes
158- ``` python 
159- from  polygon import  RESTClient
160- from  polygon.rest.models.request import  RequestOptionBuilder
161- ``` 
162- ### Using the client  
163- Create client and set options
164- ``` python 
165- #  create client
166- c =  RESTClient(api_key = " API_KEY" 
167- 
168- #  create request options
169- options =  RequestOptionBuilder().edge_headers(
170-     edge_id = " YOUR_EDGE_ID" #  required
171-     edge_ip_address = " IP_ADDRESS" #  required
172- )
173- ``` 
174- Request data using client methods.
175- ``` python 
176- #  get response
177- res =  c.get_aggs(" AAPL" 1 , " day" " 2022-04-04" " 2022-04-04" options = options)
178- 
179- #  do something with response
180- ``` 
181- Checkout Launchpad readme for more details on RequestOptionBuilder [ here] ( ./examples/launchpad ) 
182- 
183- 
184- ## Launchpad WebSocket Client  
185- 
186- ``` python 
187- from  polygon import  WebSocketClient
188- from  polygon.websocket.models import  WebSocketMessage
189- from  polygon.websocket.models.common import  Feed, Market
190- from  typing import  List
191- 
192- ws =  WebSocketClient(api_key = " API_KEY" feed = Feed.Launchpad,market = Market.Stocks, subscriptions = [" AM.AAPL" 
193- 
194- def  handle_msg (msg : List[WebSocketMessage]):
195-     for  m in  msg:
196-         print (m)
197- 
198- ws.run(handle_msg = handle_msg)
199- ``` 
200- 
201153## Contributing  
202154
203155If you found a bug or have an idea for a new feature, please first discuss it with us by
0 commit comments