ALPHA_VANTAGE
Project status & info:
| Travis Build Status | Code Coverage | License | Crates Version | Docs |
|---|---|---|---|---|
Rust Client library built for accessing Alphavantage API.
Project Functionality
- StockTimeSeries
- Quote Endpoint
- Search Endpoint
- Exchange Rate
- Forex
- Crypto Currency
- Crypto Health
- Technical Indicators
- Sector Performances
Add as dependencies
Edit Cargo.toml file to add alpha_vantage as dependencies
[]
= "0.5.0"
If you would like to use blocking API instead of async api. You can add blocking feature.
[]
= { = "0.5.0", =["blocking"]}
OR For bleeding edge development use
[]
= { = "https://github.com/iamsauravsharma/alpha_vantage"}
Usage
Sample code to find out exchange rate between two currency(both physical & digital supported)
let api_key = set_api;
let exchange = api_key.exchange.await.unwrap;
let rate = exchange.rate;
println!;
Similarly using blocking api you can run above example which run same API
let api_key = set_api;
let exchange = api_key.exchange.unwrap;
let rate = exchange.rate;
println!;