Skip to content

omikader/aiorobinhood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aiorobinhood

build codecov downloads style

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.