Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Kalshi WebSockets API #10

Open
1 task done
Tracked by #76
krazkidd opened this issue Jun 10, 2024 · 1 comment
Open
1 task done
Tracked by #76

Add support for Kalshi WebSockets API #10

krazkidd opened this issue Jun 10, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@krazkidd
Copy link
Owner

krazkidd commented Jun 10, 2024

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.

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

@krazkidd krazkidd added the enhancement New feature or request label Jun 10, 2024
@krazkidd krazkidd added the blocked Conditionally not actionable label Jun 20, 2024
@krazkidd
Copy link
Owner Author

krazkidd commented Jun 20, 2024

Blocked on #36 and #17 #30 which will refactor the API client code and maybe even change libraries.

EDIT: We are going to add Oat++ in #30.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant