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.0.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for aiorobinhood-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45de330edda38cc3a17a1bd9f8f4c1cc3af8d3c6c561f7a6df8397b560d97c9 |
|
MD5 | 314610639d6f76d896dd0f8ac0a9af9a |
|
BLAKE2b-256 | 5c3588d15282ad891018c8c5c13e5a7e42a3fd8dc1b2b2372b90a532af9ee3e9 |