10 breaking releases

0.11.0 Sep 8, 2024
0.10.0 Apr 3, 2023
0.9.0 Nov 2, 2022
0.8.0 May 27, 2022
0.1.0 Mar 11, 2019

#48 in #stock

Download history 1/week @ 2024-07-26 3/week @ 2024-08-30 177/week @ 2024-09-06 21/week @ 2024-09-13 43/week @ 2024-09-20 32/week @ 2024-09-27 3/week @ 2024-10-04

105 downloads per month
Used in 4 crates (2 directly)

MIT license

100KB
2K SLoC

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 and parameters
  • Earning
  • Economic Indicator
  • Exchange Rate
  • Forex
  • Quote Endpoint
  • Search Endpoint
  • Stock Time Series
  • Technical Indicators

Add as dependencies

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"}

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","EUR").json().await.unwrap();
let rate = exchange.rate();
println!("{rate}");

See docs for detailed example of other functionality

Dependencies

~0.7–12MB
~134K SLoC