dukascopy-fx 0.5.1

Library-first Dukascopy market-data fetcher for FX, metals, indices, and equities with ticker API, incremental checkpoints, and universe catalog support.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Minimal live fetch example.

use dukascopy_fx::{time::now, Ticker};

#[tokio::main]
async fn main() -> dukascopy_fx::Result<()> {
    let ticker = Ticker::try_new("EUR", "USD")?;
    let rate = ticker.rate_at(now()).await?;

    println!(
        "symbol={} ts={} rate={}",
        ticker.symbol(),
        rate.timestamp,
        rate.rate
    );
    Ok(())
}