michaeldrennen / robinhood
A PHP client to interface with the Robinhood trading platform.
Installs: 1 110
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 3
Open Issues: 2
Requires
- ext-json: *
- guzzlehttp/guzzle: ^6.3|^7.0
- nesbot/carbon: ^2.0
- vlucas/phpdotenv: ^3.4|^4.0|^5.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.5
README
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.