michaeldrennen / Robinhood

A PHP library that interacts with the unofficial Robinhood.com API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Robinhood

Packagist Version GitHub last commit Packagist GitHub issues GitHub GitHub stars

A PHP library to interact with the unofficial Robinhood API. Happy trading!

Use at your own risk!

$robinhoodUsername    = 'some@email.com';
$robinhoodPassword    = '12345';
$robinhoodDeviceToken = 'someuuid'; // Open your web browser's inspector and examine the XHR POST request to /token. The value in the device_token param goes here.
$robinhood            = new Robinhood();
$robinhood->login( $robinhoodUsername, $robinhoodPassword, $robinhoodDeviceToken );
$quotes               = $robinhood->quotesForTickers( [ 'AAPL', 'MSFT' ] );

Most of the functionality is available as public methods in the Robinhood object.

The code is pretty straight forward, but I might add documentation here at some point in the future.

About

A PHP library that interacts with the unofficial Robinhood.com API.

License:MIT License


Languages

Language:PHP 100.0%