Crates.io | alpha_vantage |
lib.rs | alpha_vantage |
version | 0.11.0 |
source | src |
created_at | 2019-03-11 11:39:48.923496 |
updated_at | 2024-09-08 04:39:34.528399 |
description | Rust Wrapper/Crate built for AlphaVantage API |
homepage | https://github.com/iamsauravsharma/alpha_vantage |
repository | https://github.com/iamsauravsharma/alpha_vantage |
max_upload_size | |
id | 120046 |
size | 108,641 |
Project status & info:
License | Crates Version | Docs |
---|---|---|
Rust Client library built for accessing Alphavantage API.
Edit Cargo.toml file to add alpha_vantage as dependencies
[dependencies]
alpha_vantage = "0.11.0"
OR For bleeding edge development use
[dependencies]
alpha_vantage = {git = "https://github.com/iamsauravsharma/alpha_vantage"}
Sample code to find exchange rate between two currency(both physical & digital supported)
let api_key = alpha_vantage::set_api("YOUR-API-HERE", reqwest::Client::new());
let exchange = api_key.exchange("USD","EUR").json().await.unwrap();
let rate = exchange.rate();
println!("{rate}");
See docs for detailed example of other functionality