New: unified Python, Go & Rust SDKs — available now in beta.

Rust SDK

The official Rust client for Forecite.

The Rust SDK is an async client built on tokio and reqwest, with serde models for every feed payload.

Install

cargo add forecite

Quickstart

use forecite::Client;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let client = Client::from_env()?; // reads FORECITE_API_KEY

    let page = client
        .feeds()
        .list()
        .symbol("NVDA")
        .actionability(true)
        .limit(10)
        .send()
        .await?;

    for item in page.data {
        println!("{} {}", item.title, item.scoring.sentiment_score);
    }

    Ok(())
}

See the API reference for every method and option.

On this page