forecite 0.1.3

Official Rust SDK for the Forecite API — scored news feed (REST), Verdict scoring, and realtime WebSocket streaming.
Documentation
//! Official Rust SDK for the [Forecite](https://forecite.dev) API — the scored
//! news feed (REST), the Verdict scoring engine, and the realtime WebSocket
//! stream. Async, built on `reqwest` + `tokio-tungstenite`.
//!
//! ```no_run
//! use forecite::{Forecite, FeedsQuery, StreamFilters, StreamEvent};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//!     let forecite = Forecite::new("fc_live_your_key");
//!
//!     // REST
//!     let feeds = forecite
//!         .feeds_list(&FeedsQuery { symbol: Some("TSLA".into()), limit: Some(20), ..Default::default() })
//!         .await?;
//!     println!("{} feeds", feeds.data.len());
//!
//!     // Realtime
//!     let filters = StreamFilters { symbols: Some(vec!["TSLA".into()]), ..Default::default() };
//!     let mut stream = forecite.stream(&filters, 10).await?;
//!     while let Some(event) = stream.next().await? {
//!         if let StreamEvent::Feed { data, .. } = event {
//!             println!("{:?}", data.title);
//!         }
//!     }
//!     Ok(())
//! }
//! ```

mod client;
mod error;
mod stream;
mod types;

pub use client::{Forecite, ForeciteBuilder};
pub use error::ForeciteError;
pub use stream::{ForeciteStream, StreamEvent};
pub use types::*;