Initial v1 autonomous alpaca llm trading bot with dark dashboard
This commit is contained in:
27
config.py
Normal file
27
config.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
|
||||
load_dotenv()
|
||||
|
||||
class Settings:
|
||||
alpaca_key = os.getenv("ALPACA_API_KEY", "")
|
||||
alpaca_secret = os.getenv("ALPACA_API_SECRET", "")
|
||||
alpaca_base = os.getenv("ALPACA_BASE_URL", "https://paper-api.alpaca.markets")
|
||||
paper_mode = os.getenv("PAPER_MODE", "true").lower() == "true"
|
||||
|
||||
max_order_usd = float(os.getenv("MAX_ORDER_USD", "5"))
|
||||
trade_interval_hours = int(os.getenv("TRADE_INTERVAL_HOURS", "2"))
|
||||
timezone = os.getenv("TIMEZONE", "America/Los_Angeles")
|
||||
|
||||
ollama_url = os.getenv("OLLAMA_URL", "http://10.30.20.110:11434")
|
||||
ollama_model = os.getenv("OLLAMA_MODEL", "gemma3:latest")
|
||||
|
||||
searx_url = os.getenv("SEARX_URL", "http://10.30.20.35:6969/search")
|
||||
scraper_api = os.getenv("SCRAPER_API_URL", "http://10.30.20.115:24125")
|
||||
|
||||
db_path = os.getenv("DB_PATH", "sqlite:///./bot.db")
|
||||
host = os.getenv("APP_HOST", "0.0.0.0")
|
||||
port = int(os.getenv("APP_PORT", "8089"))
|
||||
symbols = [s.strip().upper() for s in os.getenv("SYMBOLS", "SPY,QQQ").split(",") if s.strip()]
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user