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.

Source Distribution

aiorobinhood-2.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

aiorobinhood-2.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file aiorobinhood-2.1.0.tar.gz.

File metadata

  • Download URL: aiorobinhood-2.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for aiorobinhood-2.1.0.tar.gz
Algorithm Hash digest
SHA256 690e04747226be38e18a4c7f334e92a3ddf9589ab9e778987793a75923eef9d8
MD5 d59d8e868947d6e93c988b8eb9cd36cd
BLAKE2b-256 f4ecaa9eab5916eef5770c6c21c1a817595974ef1faa004a6ae69d83e6abc749

See more details on using hashes here.

File details

Details for the file aiorobinhood-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: aiorobinhood-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for aiorobinhood-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 132e2c96876f901a9968339a6a48f3996134052f4e85178c68db6d7ca64bc447
MD5 8cabe2d48cbb0d26bc2434331429df11
BLAKE2b-256 2442fb795bebf6aa4c76d11055c8e5845c569bf144c361c1a464a252761f1e60

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page