kalshi-cpp 0.6.2
C++23 client for Kalshi's Predictions API
Loading...
Searching...
No Matches
websocket.hpp File Reference
#include "kalshi/environment.hpp"
#include "kalshi/error.hpp"
#include "kalshi/signer.hpp"
#include "kalshi/ws_models.hpp"
#include <chrono>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Classes

struct  kalshi::WsError
 An error frame from the server, or a problem the client found itself. More...
 
struct  kalshi::WsConfig
 
class  kalshi::WebSocketClient
 Streams Kalshi's WebSocket channels. More...
 

Namespaces

namespace  kalshi
 

Typedefs

using kalshi::WsMessage = ws::Message
 Everything on_message delivers: channel data as ws::Update<T>, and subscription events.
 

Enumerations

enum class  kalshi::WsState : std::uint8_t { kalshi::Disconnected , kalshi::Connecting , kalshi::Connected , kalshi::Reconnecting }
 

Functions

constexpr std::string_view kalshi::to_string (WsState state) noexcept