<commit_before>

# Unofficial Robinhood Api (Java Wrapper)

# --NOTE: This library is still in it's alpha stages, please do not use it until this tag is removed--
More documentation and features to come. I discourage using the library until javadocs are created, and some internal workings are revised.

A Java wrapper providing easy access to the [Unofficial Robinhood Api](https://github.com/sanko/Robinhood).

Currently Implemented:

* Logging users in and out
* Get account information - [Click me for response contents](https://github.com/sanko/Robinhood/blob/master/Account.md#gather-list-of-accounts)
* More to come


## Installation

Coming very soon. (Within a week or so hopefully) 

Will be done through Maven/Gradle, although I may make some compiled .JAR files available as well.


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

```
try {

	//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
   	AccountElement accountData = api.getAccountData();
    
    //Extract the data we want
    String accountNumber = accountData.getAccountNumber();
    Float buyingPower = accountData.getBuyingPower();
    
    //Print to console!
    System.out.println(accountNumber + " : " + String.valueOf(buyingPower));
   
   } catch (UnirestException ex) {
   
   	//There was a error communicating with the API. Do error handling here.
    //Hopefully this never should be reached. File a bug report if you ever catch this!
 	ex.printStackTrace();
    
}
```

## Things to do

* Generate legitimate javadocs once the library is far enough along and include them in this readme
* Include a more comprehensive guide on what data you are getting from each method (Probably within the javadocs)
* Continue implementing more of the available methods we have available
* Streamline the library framework in general. Currently things work very well, but it's not perfect
* Update this Readme so it's more pretty, and has more information. Consider this a v-0.1 as I continue to write the library


## Disclaimer
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.

I however am a student, and have never programmed in a professional enviroment. Things might seem a little messy until the library gets a little closer to completion. I am mostly self taught, and cannot promise that the best techniques are used in the libraries code.

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. Stay tuned for future updates!
____

If you have any questions, comments or suggestions, please do throw me an Email! 
    
    <commit_msg>I'm confident.<commit_after>

# Unofficial Robinhood Api (Java Wrapper)

# --NOTE: This library is still in it's alpha stages, please do not use it until this tag is removed--
More documentation and features to come. I discourage using the library until javadocs are created, and some internal workings are revised.

A Java wrapper providing easy access to the [Unofficial Robinhood Api](https://github.com/sanko/Robinhood).

Currently Implemented:

* Logging users in and out
* Get account information - [Click me for response contents](https://github.com/sanko/Robinhood/blob/master/Account.md#gather-list-of-accounts)
* More to come


## Installation

Coming very soon. (Within a week or so hopefully) 

Will be done through Maven/Gradle, although I may make some compiled .JAR files available as well.


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

```
try {

	//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
   	AccountElement accountData = api.getAccountData();
    
    //Extract the data we want
    String accountNumber = accountData.getAccountNumber();
    Float buyingPower = accountData.getBuyingPower();
    
    //Print to console!
    System.out.println(accountNumber + " : " + String.valueOf(buyingPower));
   
   } catch (UnirestException ex) {
   
   	//There was a error communicating with the API. Do error handling here.
    //Hopefully this never should be reached. File a bug report if you ever catch this!
 	ex.printStackTrace();
    
}
```

## Things to do

* Generate legitimate javadocs once the library is far enough along and include them in this readme
* Include a more comprehensive guide on what data you are getting from each method (Probably within the javadocs)
* Continue implementing more of the available methods we have available
* Streamline the library framework in general. Currently things work very well, but it's not perfect
* Update this Readme so it's more pretty, and has more information. Consider this a v-0.1 as I continue to write the library


## Disclaimer
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.

I however am a student, and have never programmed in a professional enviroment. Things might seem a little messy until the library gets a little closer to completion.

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. Stay tuned for future updates!
____

If you have any questions, comments or suggestions, please do throw me an Email! 
    
    
{'fraction_non_alphanumeric': 0.055771725032425425, 'fraction_numerical': 0.0006485084306095979, 'mean_word_length': 3.9352, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4451849', 'n_tokens_mistral': 1580, 'n_tokens_neox': 1512, 'n_words': 852}