finlight-client 0.2.0

Breaking release: speaks finlight API v3 only (0.1.x speaks v2). Official Rust client for the finlight.me API: financial news search, lookups, real-time streams and webhook verification.
Documentation
1
2
3
4
5
6
7
8
9
10
/// Version of this SDK, without a leading `v`. Single source: `Cargo.toml`.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");

/// The payload version this SDK speaks. Every WebSocket subscribe carries it as the JSON number 3.
pub const PAYLOAD_VERSION: u8 = 3;

/// `User-Agent` sent on every REST request and WebSocket dial.
pub(crate) fn user_agent() -> String {
    format!("finlight-client-rust/{VERSION}")
}