I am trying to use the Upstox WebSocket v3 (wss://api.upstox.com/v3/feed/market-data
) in my Laravel backend, but the connection fails with a 400 Bad Request
error or an empty feed.
I suspect the issue is with missing marketdata.read
scope, even though I explicitly pass the scopes during OAuth authorization.
Issue:
- I am not receiving any confirmation that
marketdata.read
is actually granted. - Even after generating a new token with scopes, WebSocket v3 rejects the connection, or the LTP feed never arrives.
- There is no way to check allowed scopes in the developer dashboard.
- Calling
/v3/profile
works (provesprofile.read
is enabled), but WebSocket v3 fails unlessmarketdata.read
is granted.