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 worth of Apple
await client.place_market_buy_order(symbol="AAPL", amount=10.0)
# 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-1.0.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for aiorobinhood-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf68ffe46034f5cbc7cc6318091b09770a92b91702f5145b74568ffef02a055 |
|
MD5 | 7fd9058ae012a16bf57ae8c1e295c955 |
|
BLAKE2b-256 | e08c65a5deeebad4ddbd8341ee640a7f484bf90cca46198435d502599a8b8edf |