Tradier offers access to an HTTP streaming API if you have been approved for access. We use open HTTP-based socket streaming which allows you to receive updated market data and account information as these events occur. We process market data and account events as soon as they happen and send them downstream to anyone listening.

Streaming sessions

In order to initiate streaming, you’ll need to create an authenticated streaming session. Once this session has been created you can make a request to the streaming API endpoints using the returned session identifier. Streaming session identifiers are short-lived identifiers that have short expiry times – so they should be used immediately after request.

HTTP Streaming

As long as data is flowing across the HTTP socket, the HTTP request will stay open. If you’re streaming very inactive symbols and don’t receive data for 15 minutes, the session will close automatically. You should implement reconnecting in the event the socket is closed.