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 crypto = client.crypto();

    let quote = crypto.quote("BINANCE:BTCUSDT").await?;
    let overview = crypto.overview("BINANCE:BTCUSDT").await?;
    let gainers = crypto.top_gainers(5).await?;

    println!("quote: {quote:#?}");
    println!("overview: {overview:#?}");
    println!("top gainers: {gainers:#?}");

    Ok(())
}