Note: This API is presently in Beta. It is only available to
Tradier Brokerage account holders and should only be used in production applications with caution.
Stream account updates using WebSocket streaming. You will receive a different payload depending on the account event that occurred. Details about each event can be found in the response definition. You can continually update the data in your stream by resending this request with different parameters.
Note: In order to stream data, you must first create a streaming session. Upon receiving a sessionid, you will have up to 5 minutes to connect to a streaming endpoint before the session expires.
Once connected and streaming data, to make modifications to your current streaming connection, simply resend your request payload using the existing sessionid. Note: if your sessionid has expired, you will need to get a new one and send it with your adjusted payload.
Note that WebSocket streaming uses a different endpoint: wss://ws.tradier.com
While we do not publish the symbol limits for these APIs, we do monitor for abuse to make sure people aren’t doing anything egregious (like asking for an entire exchange worth of symbols). Essentially, ask for what you need. Don’t abuse the APIs and you should be fine. It is not permitted to open more than one session at a time.
WebSocket
Parameters
Parameter
Type
Param Type
Required
Values/Example
Default
events
JSON
Array
Required
["order"]
An array list of event types (only order is supported at the moment)
sessionid
JSON
String
Required
9D1C7018CFEB6F8ECF8CAA58B33
Session Id retrieved from the create session endpoint
excludeAccounts
JSON
Array
Optional
["6YA00001", "6YA00002"]
All payloads.
An array list of the accounts that should not report any event updates
Code Example
If you're developing using a paper trading account, change the hostname to wss://sandbox-ws.tradier.com