atradebot package
Project description
Atradebot
Yet another Bot to help you choose what to invest using AI
API keys:
Get your api keys from:
export FINNHUB_API_KEY=<api key>
export OPENAI_API_KEY=<api key>
export ALPACA_API=<api key>
export ALPACA_SECRET=<api key>
export TAVILY_API_KEY=<api key>
And set it to your environment variables
Install
Requirement:
pip install -r requirements.txt
Install using pip
pip install -e .
if errors do:
pip install --upgrade pip
Install gpt-researcher: https://github.com/assafelovic/gpt-researcher.git
Regression test
pytest -m "test" tests/test_main.py
How to run
- to generate full report and visualize results
download current portifolio .csv file from broker and put in sd/
python main.py -s GPTStrategy -n finhub -i 20 -f 30
this will generate files in sd/output/ then visualize with:
python dashboard.py
- auto trade: run gen_allocation to place buy/sell in alpaca API
python autotrade.py
License
Atradebot is open-source software released under the Apache 2.0 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atradebot-1.0.0.tar.gz.
File metadata
- Download URL: atradebot-1.0.0.tar.gz
- Upload date:
- Size: 36.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4637492d5371298c4035eef67ce24fc73300e7264ef2d62fce3b7bbf289eca3e
|
|
| MD5 |
fc6d163796dfe8d2f86aeab6f183c1e3
|
|
| BLAKE2b-256 |
0a67af3c1bde7e2afefa7787d200bca920471592c5020a6f5cf43f8670ef935f
|
File details
Details for the file atradebot-1.0.0-py3-none-any.whl.
File metadata
- Download URL: atradebot-1.0.0-py3-none-any.whl
- Upload date:
- Size: 44.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4189d17264c2789a8dfef192d945a24801b1c36230f0fd809f550e52bf13ff5f
|
|
| MD5 |
cc3bad97188f91e29ac3a5cbb2232ae4
|
|
| BLAKE2b-256 |
46c6ae6dcb4c7164ec1bc4f5706065e739d4e1bab9f78f8bdf3e940d339e677f
|