Endpoints
- User feed:
wss://streaming-api.4casters.io/v2/user - Price feed:
wss://streaming-api.4casters.io/price-stream
Auth
Both feeds authenticate with a 4Casters token. Send the token in theAuthorization header on the WebSocket handshake. The server derives the user
from the token — no username in the URL.
Get a token
There is no separate API key. Log in with your 4Casters username and password by calling the/user/login endpoint of the 4Casters REST API. The response
includes a token you can use here. See Authentication
for token lifetime and rotation.
See POST /user/login in the 4Casters REST API docs.