You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kalshi provides a WebSockets API for real-time, two-way communication. This would be highly beneficial (and arguably necessary) for observing price and portfolio changes. The alternative is frequent polling of the REST API.
There may be limitations with the use of this API and will require careful testing of rate (or channel) limits. It should not in any way be considered a replacement of the REST API, per this quote:
Eventually, we may want to offer a complete trading API through WebSocket, but, for now, you should continue using the REST API for trading, while the WS interface provides a stream of notifications/updates.
Kalshi provides a WebSockets API for real-time, two-way communication. This would be highly beneficial (and arguably necessary) for observing price and portfolio changes. The alternative is frequent polling of the REST API.
There may be limitations with the use of this API and will require careful testing of rate (or channel) limits. It should not in any way be considered a replacement of the REST API, per this quote:
While libcurl supports WebSockets, it doesn't seem that cURLpp does so.Oat++ supports WebSockets and provides examples.Connection state should be displayed in the status bar (see #9).
Dependencies
The text was updated successfully, but these errors were encountered: