Coder Social home page Coder Social logo

robinhood_rs's Introduction

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:

  • Nothing.

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.

robinhood_rs's People

Contributors

sanko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

robinhood_rs's Issues

Issues getting back a token - thread 'main' panicked at 'called `Option::unwrap()` on a `None` value'

Hi,

First off thanks for creating this crate. I'm excited to start using it.

My env vars are set for my creds correctly and when I step through the code I can see they're being unwrapped however when trying to initiate the client I get the following error. I've confirmed MFA is disabled.

let rh = Client::new().login(username, password).build().unwrap();
lib.rs\build(&mut self) -> Result { ..
headers.set(Authorization(
String::from("Token ") + token.unwrap().token.to_owned().unwrap().as_ref(),
));

}
The line above throws this error -> thread 'main' panicked at 'called Option::unwrap() on a None value'

TIA

Status

I am curious whether this client still works and is up-to-date. Also, it seems there hasn't been any commits in some time. Is this currently inactive just because nobody is filing issues? Are you (the maintainer) using this robinhood client actively? I am curious because I want to know if everything is still in order here and if I can use this, or if some changes would be needed to bring this up-to-date. I am probably not interested in maintaining this fully, but I would be willing to make a contribution if it is needed to make this work. Right now I am stuck using the Python package robin_stocks.

Updates

Hey, is this project dead? I saw you mention the API being used for scam and I thought I would like to build a scrapper bot to send notifications to my device to verify any trades based on the information it would pull from twitter, etc. I missed out on the opportunity to do puts when Elon Musk said the Tesla stock was overvalued.

Thanks for your help,
Nazar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.