Skip to content

Commit f2c0462

Browse files
authored
Updated Stream Instructions for sip parameter in README (#615)
* Updated Stream Instructions to not use unneeded URL * Updated Sip instructions to be more clear. * Added back in the URL and additional comment for the data feed type of second example
1 parent 9a91a43 commit f2c0462

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ async def quote_callback(q):
250250
stream = Stream(<ALPACA_API_KEY>,
251251
<ALPACA_SECRET_KEY>,
252252
base_url=URL('https://paper-api.alpaca.markets'),
253-
data_feed='iex') # <- replace to SIP if you have PRO subscription
253+
data_feed='iex') # <- replace to 'sip' if you have PRO subscription
254254

255255
# subscribing to event
256256
stream.subscribe_trades(trade_callback, 'AAPL')
@@ -270,7 +270,7 @@ ie:
270270
stream = Stream(<ALPACA_API_KEY>,
271271
<ALPACA_SECRET_KEY>,
272272
base_url=URL('https://paper-api.alpaca.markets'),
273-
data_feed='iex',
273+
data_feed='iex', # <- replace to 'sip' if you have PRO subscription
274274
websocket_params = {'ping_interval': 5}, #here we set ping_interval to 5 seconds
275275
)
276276
```

0 commit comments

Comments
 (0)