![github] ![crates-io] ![docs-rs]
Stream historical tick data straight from Dukascopy
```rust use dukascopy_rs::DukascopyService; use futures::TryStreamExt; use time::macros::datetime;
async fn main() { DukascopyService::default() .downloadticks( String::from("EURGBP"), // only full hours are supported for now datetime!(2020-03-12 13:00), datetime!(2020-03-12 15:00), ) .tryforeach(|e| async move { println!("{}", e); Ok(()) }) .await .unwrapor(()); } ``` source: example/main.rs
For details on what are the possible inputs/outputs, please have a look on download_ticks
method documentation.
Tick
structDataSupplier
that retries requests upon failure