https://github.com/omikader/aiorobinhood
Asynchronous Robinhood HTTP client built using asyncio and aiohttp
https://github.com/omikader/aiorobinhood
aiohttp aiorobinhood api api-client async-await async-client asyncio client python python3 robinhood robinhood-api robinhood-client robinhood-python stocks
Last synced: 12 days ago
JSON representation
Asynchronous Robinhood HTTP client built using asyncio and aiohttp
- Host: GitHub
- URL: https://github.com/omikader/aiorobinhood
- Owner: omikader
- License: mit
- Created: 2020-08-05T22:27:35.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T17:03:02.000Z (almost 6 years ago)
- Last Synced: 2026-06-07T17:05:06.271Z (13 days ago)
- Topics: aiohttp, aiorobinhood, api, api-client, async-await, async-client, asyncio, client, python, python3, robinhood, robinhood-api, robinhood-client, robinhood-python, stocks
- Language: Python
- Homepage: https://aiorobinhood.readthedocs.io
- Size: 364 KB
- Stars: 13
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aiorobinhood
[](https://github.com/omikader/aiorobinhood/actions?query=workflow%3Abuild)
[](https://codecov.io/gh/omikader/aiorobinhood)
[](https://pepy.tech/project/aiorobinhood/week)
[](https://github.com/psf/black)
Thin asynchronous wrapper for the unofficial Robinhood API.
## Why?
- Supports automated trading strategies on Robinhood
- Supports concurrency using asynchronous programming techniques
## Getting Started
```python
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
- Python 3.7+
- [aiohttp](https://pypi.org/project/aiohttp/)
- [yarl](https://pypi.org/project/yarl/)
## License
`aiorobinhood` is offered under the MIT license.