Spaces:
Sleeping

Naufal Arhab commited on
Commit
bf2a3b0
·
1 Parent(s): c757254

chore: clean up obsolete sqlite references in config and docs

Browse files
Files changed (3) hide show
  1. backend/.env.example +0 -3
  2. backend/README.md +1 -1
  3. backend/config.py +0 -2
backend/.env.example CHANGED
@@ -22,9 +22,6 @@ UPDATE_INTERVAL=60
22
  # Neon PostgreSQL Connection URL
23
  DATABASE_URL=postgresql://your_user:your_password@ep-your-pooler.c-3.ap-southeast-1.aws.neon.tech/Track-pair?sslmode=require
24
 
25
- # SQLite fallback path
26
- DB_PATH=perps.db
27
-
28
  # --- Optional Network Proxy (Jika di Indonesia / ISP memblokir exchange) ---
29
  # Contoh jika memakai VPN / Clash / v2ray / WARP lokal proxy:
30
  # PROXY_URL=http://127.0.0.1:7890
 
22
  # Neon PostgreSQL Connection URL
23
  DATABASE_URL=postgresql://your_user:your_password@ep-your-pooler.c-3.ap-southeast-1.aws.neon.tech/Track-pair?sslmode=require
24
 
 
 
 
25
  # --- Optional Network Proxy (Jika di Indonesia / ISP memblokir exchange) ---
26
  # Contoh jika memakai VPN / Clash / v2ray / WARP lokal proxy:
27
  # PROXY_URL=http://127.0.0.1:7890
backend/README.md CHANGED
@@ -10,7 +10,7 @@ A FastAPI backend that collects real-time perpetual futures data from **Binance*
10
  - **Signal engine**: Funding rate, OI divergence, CVD, cross-exchange check, L/S ratio, basis spread, market structure, fake-move detection
11
  - **Adaptive timeframe**: Selects active timeframe based on ATR/volatility
12
  - **Confluence scorer**: Weighted sum → LONG / SHORT / NEUTRAL + conviction (0–10)
13
- - **SQLite storage**: Pairs, signals, market snapshots
14
  - **WebSocket broadcast**: Pushes signal updates to all connected frontend clients every 60 s
15
  - **REST API**: Full CRUD for pairs + signal/market data queries
16
 
 
10
  - **Signal engine**: Funding rate, OI divergence, CVD, cross-exchange check, L/S ratio, basis spread, market structure, fake-move detection
11
  - **Adaptive timeframe**: Selects active timeframe based on ATR/volatility
12
  - **Confluence scorer**: Weighted sum → LONG / SHORT / NEUTRAL + conviction (0–10)
13
+ - **PostgreSQL (Neon) storage**: Pairs, signals, market snapshots, trade journal, and AI memory
14
  - **WebSocket broadcast**: Pushes signal updates to all connected frontend clients every 60 s
15
  - **REST API**: Full CRUD for pairs + signal/market data queries
16
 
backend/config.py CHANGED
@@ -24,8 +24,6 @@ BYBIT_SECRET: str = os.getenv("BYBIT_SECRET", "")
24
  # --- App settings ---
25
  UPDATE_INTERVAL: int = int(os.getenv("UPDATE_INTERVAL", "60")) # seconds between data refreshes
26
  DATABASE_URL: str = os.getenv("DATABASE_URL", "")
27
- _DEFAULT_DB = str(Path(__file__).resolve().parent / "perps.db")
28
- DB_PATH: str = os.getenv("DB_PATH", _DEFAULT_DB)
29
 
30
  # --- Exchange base URLs & Proxy ---
31
  BINANCE_FUTURES_BASE_URL: str = os.getenv("BINANCE_BASE_URL", "https://fapi.binance.com")
 
24
  # --- App settings ---
25
  UPDATE_INTERVAL: int = int(os.getenv("UPDATE_INTERVAL", "60")) # seconds between data refreshes
26
  DATABASE_URL: str = os.getenv("DATABASE_URL", "")
 
 
27
 
28
  # --- Exchange base URLs & Proxy ---
29
  BINANCE_FUTURES_BASE_URL: str = os.getenv("BINANCE_BASE_URL", "https://fapi.binance.com")