Skip to main content

Asynchronous Robinhood HTTP client

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for aiorobinhood, version 2.1.0
Filename, size File type Python version Upload date Hashes
Filename, size aiorobinhood-2.1.0-py3-none-any.whl (11.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size aiorobinhood-2.1.0.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page