213bb911e3b13637ab7b0dc778ec5da9f6a0d505
scoring.py docstring promises: 'Missing indicators are excluded and the remaining weights renormalised — so a single dead API doesn't drag the whole score toward zero.' But _stablecoin_supply_signal and _open_interest_signal returned 0.0 (not None) as placeholders — so they stayed in the alive set, kept their combined 0.10 weight in the denominator, and contributed 0, systematically compressing the composite toward zero by ~10%. Example: ahr999 deeply cheap (+1) alone should score +100, but the two 0.0 placeholders dragged it to 80. Now they return None → excluded + renormalised, matching the module's own stated design. Verified: same input now scores 100. Re-activate either by returning a real [-1,+1] signal once a trend lookup is wired in. 72 tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- 填 backend .env(生产值):
POSTGRES_PASSWORD=强密码 FRONTEND_URL=https://你的前端域名 ENCRYPTION_KEY=之前生成的那个 AI_API_KEY=sk-... ENVIRONMENT=production 2. 改前端 .env.local:
NEXT_PUBLIC_API_URL=https://api.你的域名.com NEXT_PUBLIC_WS_URL=wss://api.你的域名.com 启动:
cd backend docker compose up -d
Description
Languages
Python
99.6%
Shell
0.3%
Dockerfile
0.1%