avapi

Crates.ioavapi
lib.rsavapi
version0.1.0
sourcesrc
created_at2018-10-17 01:40:07.33344
updated_at2018-10-17 01:40:07.33344
descriptionCrate for consuming the Alpha Vantage financial data API as a client
homepage
repositoryhttps://github.com/natpen/avapi
max_upload_size
id91083
size5,826
Natalie Pendragon (natpen)

documentation

README

Avapi

A Rust-based wrapper for the Alpha Vantage API for financial data.

Introduction

avapi is a Rust Crate for consuming the Alpha Vantage API as a client. avapi is based on Reqwest.

Installation & Configuration

In your Cargo.toml, add the following lines:

[dependencies]
avapi = "0.1"

Example Usage

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);
}

Requirements

This crate has been tested with Stable Rust versions 1.29.2 and above.

License

MIT

Commit count: 0

cargo fmt