alpha_vantage
alpha_vantage copied to clipboard
Rust Client/Wrapper for Alphavantage API
ALPHA_VANTAGE
Project status & info:
License | Crates Version | Docs |
---|---|---|
Rust Client library built for accessing Alphavantage API.
Project Functionality
- [x] Crypto Currency
- [x] Custom function
- [x] Earning
- [x] Economic Indicator
- [x] Exchange Rate
- [x] Forex
- [x] Quote Endpoint
- [x] Search Endpoint
- [x] Sector Performances
- [x] Stock Time Series
- [x] Technical Indicators
Add as dependencies
Edit Cargo.toml file to add alpha_vantage as dependencies
[dependencies]
alpha_vantage = "0.10.0"
OR For bleeding edge development use
[dependencies]
alpha_vantage = {git = "https://github.com/iamsauravsharma/alpha_vantage"}
Usage
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","CNY").json().await.unwrap();
let rate = exchange.rate();
println!("{rate}");
See docs for detailed example of other functionality