Asynchronous Robinhood HTTP client
Project description
aiorobinhood
Thin asynchronous wrapper for the unofficial Robinhood API.
Why?
- Supports automated trading strategies on Robinhood
- Supports concurrency using asynchronous programming techniques
Getting Started
import asyncio
import os
from aiorobinhood import RobinhoodClient
username = os.getenv("ROBINHOOD_USERNAME")
password = os.getenv("ROBINHOOD_PASSWORD")
async def main():
async with RobinhoodClient(timeout=1) as client:
await client.login(username, password)
# Buy $10.50 worth of Apple
await client.place_market_buy_order("AAPL", amount=10.5)
# End session
await client.logout()
if __name__ == "__main__":
asyncio.run(main())
Dependencies
License
aiorobinhood
is offered under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiorobinhood-2.1.0.tar.gz
(10.5 kB
view hashes)
Built Distribution
Close
Hashes for aiorobinhood-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 132e2c96876f901a9968339a6a48f3996134052f4e85178c68db6d7ca64bc447 |
|
MD5 | 8cabe2d48cbb0d26bc2434331429df11 |
|
BLAKE2b-256 | 2442fb795bebf6aa4c76d11055c8e5845c569bf144c361c1a464a252761f1e60 |