alpha_vantage

Crates.ioalpha_vantage
lib.rsalpha_vantage
version0.10.0
sourcesrc
created_at2019-03-11 11:39:48.923496
updated_at2023-04-03 10:05:24.282985
descriptionRust Wrapper/Crate built for AlphaVantage API
homepagehttps://github.com/iamsauravsharma/alpha_vantage
repositoryhttps://github.com/iamsauravsharma/alpha_vantage
max_upload_size
id120046
size121,812
Saurav Sharma (iamsauravsharma)

documentation

README

ALPHA_VANTAGE

Project status & info:

License Crates Version Docs
License: MIT Crate Docs

Rust Client library built for accessing Alphavantage API.

Project Functionality

  • Crypto Currency
  • Custom function
  • Earning
  • Economic Indicator
  • Exchange Rate
  • Forex
  • Quote Endpoint
  • Search Endpoint
  • Sector Performances
  • Stock Time Series
  • 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

Commit count: 416

cargo fmt