Skip to main content

atradebot package

Project description

Atradebot

image

Yet another Bot to help you choose what to invest using AI

Documentation

API keys:

Get your api keys from:

Finhub OpenAI Alpaca tavily

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

  1. 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
  1. 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


Download files

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

Source Distribution

atradebot-1.0.0.tar.gz (36.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

atradebot-1.0.0-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

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

Hashes for atradebot-1.0.0.tar.gz
Algorithm Hash digest
SHA256 4637492d5371298c4035eef67ce24fc73300e7264ef2d62fce3b7bbf289eca3e
MD5 fc6d163796dfe8d2f86aeab6f183c1e3
BLAKE2b-256 0a67af3c1bde7e2afefa7787d200bca920471592c5020a6f5cf43f8670ef935f

See more details on using hashes here.

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

Hashes for atradebot-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4189d17264c2789a8dfef192d945a24801b1c36230f0fd809f550e52bf13ff5f
MD5 cc3bad97188f91e29ac3a5cbb2232ae4
BLAKE2b-256 46c6ae6dcb4c7164ec1bc4f5706065e739d4e1bab9f78f8bdf3e940d339e677f

See more details on using hashes here.

Supported by

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