Skip to main content
WSS
Connect to wss://alphainsider.com/ws and send a subscription with the complete list of channels you want to receive. Each subscription replaces the previous list. Wait for the server to acknowledge the requested channels before treating the connection as subscribed.Send ping about every 30 seconds to keep the connection alive; the server responds with pong. After a connection loss, reconnect and subscribe again. Fix authentication or channel errors before retrying. Refresh current values through REST if you need to recover updates missed during the interruption.Strategy values and quantities follow the trading calculations. Broker values follow the bot calculations.
Ping
type:string

Send ping about every 30 seconds to keep the connection alive.

Subscribe
type:object

Subscribe to one or more channels. Each request replaces the complete previous subscription list.

Ping response
type:string

Server heartbeat response to a client ping.

Subscribe response
type:array

Confirms a successful channel subscription.

Error response
type:array

Reports a server or channel error. Reconnect after recoverable errors; correct authentication or invalid channel settings before retrying those failures.

Stock price
type:array

Stock prices update every second. Use an internal stock ID or STOCK:EXCHANGE, such as AAPL:XNAS. Find IDs with searchStocks or getAllStocks.

Strategy value
type:array

Normalized strategy values update every 5 seconds.

Orders
type:array

Open-order updates sent as changes occur. Removal can mean execution or cancellation; it does not establish a fill by itself.

Positions
type:array

Strategy position updates sent as changes occur.

Timelines
type:array

Strategy timeline events sent as they occur.

Bot status
type:array

Bot execution status updates sent as changes occur.

Bot allocations
type:array

Performance-adjusted bot allocation weights sent as changes occur. Nested strategy positions remain normalized.

Bot activities
type:array

Bot activity events sent as they occur.