You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
forked from ConradWeiser/Unofficial-Robinhood-ApiJava Wrapper for the Robinhood Investing App/Service
Notifications You must be signed in to change notification settings
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go to fileThanks to Conrad Weiser for making the orginal wrapper project . Without them, this fork would literally be impossible! We have a Discord server for the Robninhood API community. Feel free to join and ask questions or chat about coding or whatever.
To install & use the Robinhood API, you can either install the latest release , download the latest source code & build the project yourself, or use JitPack to add the repository to your gradle, maven, sbt, or leiningen. You can download the latest stable build here
Sample Gradle build.gradle file:
plugins < id 'java' id 'application' > sourceCompatibility = 1.8 group 'my.group' version '1.0' repositories < jcenter() mavenCentral() maven < url "https://jitpack.io" > > dependencies < implementation 'com.github.AquaticMasteryProductions:Robinhood-Api-Java:v0.8.3-alpha' compile group: 'io.github.openunirest', name: 'unirest-java', version: '2.2.04' compile group: 'commons-io', name: 'commons-io', version: '2.6' compile 'com.google.code.gson:gson:2.8.5' compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' >
jitpack.io https://jitpack.io com.github.AquaticMasteryProductions Robinhood-Api-Java v0.8.0-alpha io.github.openunirest unirest-java 2.3.04 org.slf4j slf4j-simple 1.7.25 test com.google.code.gson gson 2.8.5 commons-io commons-io 2.6
This library is built with the intention of making extracting information from the Robinhood API as easy as possible.
Say for the following example, we want to get our account number, and how much buying power we have available
//Providing a username and password automatically logs the instance into our account! RobinhoodApi api = new RobinhoodApi("username", "password"); //Make the request for all of the account information Account accountData = api.getAccountData(); //Extract the data we want String accountNumber = accountData.getAccountNumber(); Float buyingPower = accountData.getBuyingPower(); //Print to console! System.out.println(accountNumber + " : " + buyingPower);
I have never taken up a project working with APIs like this. I intend to write this wrapper to the best of my ability, and continue to give support/make changes as time passes.
However, that being said, I aim to make the finished project both efficient in terms of how much computing power it requires, and easy for other developers to build functionality on top of.
If you have any questions feel free to email AMPro at aquaticmasteryproductions@gmail.com