This commit is contained in:
k
2026-04-21 19:33:24 +08:00
parent 9a72566753
commit 3268080401
26 changed files with 1816 additions and 318 deletions
+17 -2
View File
@@ -3,8 +3,6 @@ from pydantic_settings import BaseSettings
class Settings(BaseSettings):
database_url: str
redis_url: str = "redis://localhost:6379"
anthropic_api_key: str
frontend_url: str = "http://localhost:3001"
truth_social_rss: str = "https://truthsocial.com/@realDonaldTrump.rss"
truth_social_poll_seconds: int = 15
@@ -14,6 +12,23 @@ class Settings(BaseSettings):
)
binance_rest_url: str = "https://data-api.binance.vision"
environment: str = "development"
ai_api_key: str = ""
ai_base_url: str = "https://api.gptsapi.net/v1"
ai_model: str = "claude-haiku-4-5-20251001"
# Hyperliquid — API wallet private key (NOT your MetaMask key)
# Created at https://app.hyperliquid.xyz/API and authorized by MetaMask
hl_api_private_key: str = ""
# Your MetaMask address — this is the actual account holding USDC/positions
hl_account_address: str = ""
# BTC perp leverage (150x isolated margin)
hl_leverage: int = 3
# Trade mainnet (True) or testnet (False)
hl_mainnet: bool = True
# KEK for envelope-encrypting HL API keys at rest.
# Generate with: openssl rand -hex 32
encryption_key: str = ""
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}