Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

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-Api

Java Wrapper for the Robinhood Investing App/Service

License

Notifications You must be signed in to change notification settings

AquaticMasteryProductions/Robinhood-Api-Java

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Go to file

Folders and files

Last commit message Last commit date

Latest commit

History

View all files

Repository files navigation

Unofficial Robinhood Api - Java Wrapper (AMPro Fork)

A Java wrapper providing easy access to the Unofficial Robinhood Api.

Thanks 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.

Contents

Installation

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

The Robinhood API Depends on these projects & packages

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  

Usage

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

More detailed instructions on usage and Endpoint Data

Roadmap