tvdata-rs 0.1.2

Async Rust client for TradingView screener queries, search, calendars, quote snapshots, and OHLCV history.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use tvdata_rs::prelude::*;

#[tokio::main]
async fn main() -> Result<()> {
    let client = TradingViewClient::builder().build()?;
    let forex = client.forex();

    let quote = forex.quote("FX:EURUSD").await?;
    let overview = forex.overview("FX:EURUSD").await?;
    let active = forex.most_active(5).await?;

    println!("quote: {quote:#?}");
    println!("overview: {overview:#?}");
    println!("most active: {active:#?}");

    Ok(())
}