sanko / robinhood_rs

Rust wrapper for Robinhood, the commission-free brokerage
Artistic License 2.0
12 stars 4 forks source link
robinhood rust stock-market

robinhood

Travis CI Status Appveyor CI Status crates.io

Client for Robinhood, the commission-free brokerage, written for Rust.

Please note that this is a very early release and the API will change a lot over the coming days and weeks.

Requirements

On Linux:

On Windows and macOS:

Robinhood uses reqwest which uses rust-native-tls, which will use the operating system TLS framework on Windows and macOS. On Linux, it will use OpenSSL 1.1.

Installation

[dependencies]
robinhood = "*"

Example

extern crate robinhood;

use robinhood::Client;

fn main() {
    let rh = Client::new()
        .build()
        .unwrap();

    let instruments = rh.instruments();
    println!("{:#?}", instruments);
    for instrument in instruments.take(3) {
        println!("Instrument: {:#?}", instrument);
    }
}

License

Licensed under the Artistic License, Version 2.0 (LICENSE or https://opensource.org/licenses/Artistic-2.0)

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Artistic-2.0 license, shall be licensed as above, without any additional terms or conditions.