aiorobinhood-2.1.0
توضیحات
Asynchronous Robinhood HTTP client
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiorobinhood-2.1.0 |
| نام | aiorobinhood |
| نسخه کتابخانه | 2.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Omar Abdelkader |
| ایمیل نویسنده | omikader@gmail.com |
| آدرس صفحه اصلی | https://github.com/omikader/aiorobinhood |
| آدرس اینترنتی | https://pypi.org/project/aiorobinhood/ |
| مجوز | MIT |
# 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.
نیازمندی
| مقدار | نام |
|---|---|
| <4.0,>=3.6 | aiohttp |
| <2.0,>=1.4 | yarl |
| - | black |
| - | cryptography |
| - | flake8 |
| - | isort |
| - | mypy |
| - | pytest |
| - | pytest-aiohttp |
| - | pytest-asyncio |
| - | pytest-cov |
| - | aiohttp-theme |
| - | sphinx |
| - | sphinx-autodoc-typehints |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl aiorobinhood-2.1.0:
pip install aiorobinhood-2.1.0.whl
نصب پکیج tar.gz aiorobinhood-2.1.0:
pip install aiorobinhood-2.1.0.tar.gz