rustyschwab 0.2.0

Unofficial Rust SDK for the Charles Schwab Trader and Market Data APIs: OAuth, REST, streaming, journaled orders, risk limits and a paper venue
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Outgoing WebSocket message types for the streaming client.
//!
//! The ack-resolution, heartbeat, and read-loop logic live on
//! `StreamClientInner` in `client.rs` — this module only defines the
//! frame types the writer task understands.

/// Messages that can be sent over the WebSocket
#[derive(Debug, Clone)]
pub enum OutgoingMessage {
    /// Text message (JSON)
    Text(String),
    /// WebSocket Ping frame for heartbeat
    Ping,
}