Skip to content

Add Cryptocurrency Trading Support#2

Open
yevgetman wants to merge 4 commits into
LichAmnesia:masterfrom
yevgetman:master
Open

Add Cryptocurrency Trading Support#2
yevgetman wants to merge 4 commits into
LichAmnesia:masterfrom
yevgetman:master

Conversation

@yevgetman

Copy link
Copy Markdown

The enclosed commits add support for trading Cryptocurrency using the Robinhood "nummus" API endpoints (https://nummus.robinhood.com).

Summary of changes:

  • Optional boolean flag added to Robinhood class constructor to indicate whether or not crypto trading will be performed. Passing True will aggregate a list of available currency pairs and their respective currency id's that are needed to place trades.

  • headers_nummus property added to constructor. This header is needed to place trades using the https://nummus.robinhood.com/orders/ endpoint

  • A number of class methods added (Robinhood.py lines 788 - 903) for retrieving crypto quotes, historical data, account data, authentication, and placing crypto trades.

  • Added a wrapper for GET requests using session.get()

  • Additional endpoints added to endpoints.py

  • A generic exception added to exceptions.py

  • Added an example file for crypto trading (crypto_example.py)

  • Updated setup.py with net dependencies

Changes introduce the following dependencies:

yevgetman added 4 commits July 4, 2020 15:54
…rders, holdings, accounts, and currency pairs data
… constructor to accept Boolean flag indicating whether or not crypto will be traded. Add crypto trading example.
@inteledyne

Copy link
Copy Markdown

When do you plan to merge this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants