Loading...
Loading...
4-stage funnel that screens all 500+ Hyperliquid perps down to the top trading opportunities. Scores setups 0-400 across smart money, market structure, technicals, and funding. BTC macro filter, hourly trend gate (counter-trend = hard skip), cross-scan momentum tracking. Near-zero LLM tokens — all computation in Python. Use when scanning for new trading opportunities on Hyperliquid, evaluating setups, or checking market conditions.
npx skill4agent add senpi-ai/senpi-skills opportunity-scannerbtc_trendmacro_modifierscanner-config.jsonmetaAndAssetCtxsleaderboard_get_marketsleaderboard_get_topavgAtPeaknearPeakPct| Timeframe | Period | Candles | Purpose |
|---|---|---|---|
| 4h | 7 days | ~42 | Macro trend (EMA 5/13 crossover) |
| 1h | 24h | ~24 | Hourly trend structure + RSI, volume, S/R, patterns |
| 15m | 6h | ~24 | Entry: RSI, patterns, momentum, volume divergence |
hourlyTrend: "DOWN"hourlyTrend: "UP"scan-history.jsonscoreDeltascanStreak| Condition | Rationale |
|---|---|
| Counter-trend on hourly | SM conviction on a 1-min bounce doesn't override a 2-week downtrend. $346 lesson. |
| Extreme RSI (< 20 for SHORTs, > 80 for LONGs) | Reversal imminent |
| Counter-trend on 4h with strength > 50 | Strong macro against you |
| Volume dying (ratio < 0.5 on both TFs) | No liquidity |
| Funding heavily against you (> 50% ann) | Fee drag kills profits |
| BTC macro headwind > 30 pts | Market-wide risk |
┌──────────────────────────────────────────┐
│ Stage 0: BTC macro (2 API calls) │
├──────────────────────────────────────────┤
│ Stage 1: metaAndAssetCtxs → ~70 assets │
├──────────────────────────────────────────┤
│ Stage 2: SM + freshness → top 15-16 │
├──────────────────────────────────────────┤
│ Stage 3: parallel candle fetch + v5 │
│ hourly trend classification │
├──────────────────────────────────────────┤
│ Stage 4: cross-scan momentum │
├──────────────────────────────────────────┤
│ v5: Hard disqualifier check │
├──────────────────────────────────────────┤
│ Final: scored JSON → LLM formats report │
│ Total: ~5k LLM tokens │
└──────────────────────────────────────────┘| File | Purpose |
|---|---|
| Python pipeline — fetches, scores, applies hourly gate |
| Wrapper — runs pipeline + outputs LLM prompt |
| User prefs: risk, leverage, macro modifiers |
| Auto-maintained: last 12 scans for cross-scan tracking |
| Current positions (conflict flags) |
assetdirectionleveragefinalScorehourlyTrendtrendAlignedpillarScoressmartMoneytechnicalsfundingrisksscoreDeltascanStreakreasonwouldHaveScoredpython3 scripts/opportunity-scan-v5.py | python3 scripts/opportunity-report.shhourlyTrendGate: falsehourlyTrendtrendAligneddisqualifiedAssets