Hello! I subscribe to trades stream (sip feed):
def OnSockOpen(ws):
ws.send(json.dumps({
“action” : “auth”,
“feed” : “sip”,
“key” : ALPACA_API_KEY,
“secret” : ALPACA_SECRET_KEY}))
ticker = ‘AAPL’
ws.send(json.dumps({
“action”: “subscribe”,
“trades”: [ticker]
}))
I get an answer:
[{“T”:“success”,“msg”:“connected”}]
[{“T”:“success”,“msg”:“authenticated”}]
[{“T”:“subscription”,“trades”:[“AAPL”],“quotes”:,“bars”:,“updatedBars”:,“dailyBars”:,“statuses”:,“lulds”:,“corrections”:[“AAPL”],“cancelErrors”:[“AAPL”]}]
Nothing comes after that.
I have a subscription for $99.
What could be the reason for this problem? Earlier (at the end of 2022) this code worked well!