robin-stocks 1.1.0

admin

Robinhood API Library Introduction This library aims to create functions to interact with the Robinhood API, which are simple to use, easy to understand, and easy to modify the source code.This is a pure python interface and it requires Python3.The purpose of this library is to allow people to make their own robo-investors or to…

Robinhood API Library Introduction
This library aims to create functions to interact with the Robinhood API, which are simple to use, easy to understand, and easy to modify the source code.This is a pure python interface and it requires Python3.The purpose of this library is to allow people to make their own robo-investors or to view information on stocks, options, and crypto-currencies in real time.
To join our Slack channel where you can discuss trading and coding, click the link https://join.slack.com/t/robin-stocks/shared_invite/zt-7up2htza-wNSil5YDa3zrAglFFSxRIA Installing
There is no need to download these files directly.This project is published on PyPi, so it can be installed by typing into terminal (on Mac) or into command prompt (on PC):
pip install robin_stocks
Also be sure that Python 3 is installed.If you need to install python you can download it from Python.org <” target=”_blank”>https://pypi.org/project/pip/> .
If you would like to be able to make changes to the package yourself, clone the repository onto your computer by typing into terminal or command prompt:
git clone https://github.com/jmfernandes/robin_stocks.git cd robin_stocks
Now that you have cd into the repository you can type
pip install .
and this will install whatever you changed in the local files.This will allow you to make changes and experiment with your own code.Functions Contained
For a complete list of functions and how to use them, go to robin-stocks.com <https://api.robinhood.com/ ‘ payload = { ‘key1’ : ‘value1’, ‘key2’ : ‘value2′} r.request_get(url,’regular’,payload)
The above code would results in a get request to https://api.robinhood.com/?key1=value1&key2=value2 (which is a meaningless request).RobinHood returns most data as { ‘previous’ : None, ‘results’ : [], ‘next’ : None}, where ‘results’ is either a dictionary or a list of dictionaries.If a particular query returns more entries than can be stored in ‘results’, then those will be stored in ‘next’, which is simply a url link to the next set of data.Keep in mind that RobinHood will sometimes return the data in a different format.To compensate for this, request_get takes either ‘regular’, ‘results’, ‘pagination’, or ‘indexzero’ as the second parameter.In most cases, you want to use ‘pagination’ to get all the results.

Using Option Spreads
When viewing a spread in the robinhood app, it incorrectly identifies both legs as either “buy” or “sell” when closing a position.The “direction” has to reverse when you try to close a spread position.
I.e.direction=”credit” when “action”:”sell”,”effect”:”close”
in the case of a long call or put spread.

New Features In The Works Trading using TD Ameritrade.

Leave a Reply

Next Post

India may re-evaluate neutrality in the US-China war

The Galwan incident may prove to be a watershed moment in the existential battle between Beijing and Washington should India abandon its longstanding policy of neutrality, in large part out of consideration for Moscow, which is now firmly on the PRC side. New Delhi: The People’s Republic of China has, since 1949, had three transformational…
India may re-evaluate neutrality in the US-China war

Subscribe US Now