| Crates.io | avapi |
| lib.rs | avapi |
| version | 0.1.0 |
| created_at | 2018-10-17 01:40:07.33344+00 |
| updated_at | 2018-10-17 01:40:07.33344+00 |
| description | Crate for consuming the Alpha Vantage financial data API as a client |
| homepage | |
| repository | https://github.com/natpen/avapi |
| max_upload_size | |
| id | 91083 |
| size | 5,826 |
A Rust-based wrapper for the Alpha Vantage API for financial data.
avapi is a Rust Crate for consuming the Alpha Vantage API as a client. avapi is based on Reqwest.
In your Cargo.toml, add the following lines:
[dependencies]
avapi = "0.1"
extern crate avapi;
use avapi::{endpoints, models};
fn main() {
let api_key = String::from("<YOUR AV KEY>");
let client = avapi::client::Client {
api_key: api_key,
};
let request = models::Request::Quote(endpoints::global_quote::Request {
symbol: String::from("GOOG"),
});
let res = client.make_request(request).unwrap();
println!("{:#?}", res);
}
This crate has been tested with Stable Rust versions 1.29.2 and above.
MIT