1247/cross-venue-router/SKILL.md
--- name: "@1247/cross-venue-router" version: 2.1.0 description: Cross-venue smart order router + persistent strategies + risk monitoring across Hyperliquid and Orderly author: starchild tags: [trading, cross-venue, routing, dca, risk, hyperliquid, orderly] tools: - hl_order - hl_account - hl_orderbook - hl_market - hl_candles - hl_funding - hl_balances - hl_leverage - hl_tpsl_order - hl_cancel - hl_cancel_all - hl_open_orders - hl_fills - woo_orderbook - woo_order
npx skillsauth add starchild-ai-agent/community-skills 1247/cross-venue-routerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
What: A Starchild skill that makes Hyperliquid and Orderly act as one venue. Routes trades to best execution, runs persistent strategies in the background, monitors risk 24/7, and gives a unified portfolio view.
Why it exists: Current skills are single-venue and request-response. This skill adds three things that didn't exist:
Traders using Starchild who have accounts on both Hyperliquid and Orderly and want:
When user says "buy 0.5 BTC":
hl_orderbook(coin="BTC") + woo_orderbook(coin="BTC")| Venue | Maker | Taker | |-------|-------|-------| | Hyperliquid | 0.010% | 0.035% | | Orderly | 0.020% | 0.050% |
Always try to pull live fees first (hl_account meta, Orderly fee endpoint).
total_cost = vwap_fill_price × size × (1 + taker_fee_rate)
slippage = (vwap_fill_price - mid_price) / mid_price
effective_cost = slippage + fee_rate
Compare effective_cost across venues. Route to lowest.
🔀 Routing: BUY 0.5 BTC
Hyperliquid Orderly
Mid: $69,225 $69,325
VWAP: $69,226 $69,340
Fee: 0.035% 0.050%
Cost: $12.36 $19.52
Depth: 32.4 BTC 1.17 BTC
→ Route to Hyperliquid (37% cheaper)
Execute? [y/n]
Wait for user confirmation before executing. Never auto-execute a routed trade.
Strategies use schedule_task for persistence. Each strategy stores state in memory_store under topic strategy-{id}.
schedule_task(schedule="every 4 hours", task="...") where task includes routing logichl_tpsl_order / Orderly TPschedule_task(schedule="every 15 minutes", task="check BTC price, if < 65000 then route buy ETH")All active strategies stored in memory topic active-strategies. Commands:
All strategy tasks use label format: strategy-{type}-{coin}-{timestamp}
Example: strategy-dca-ETH-1710864000
Set up via: "Monitor my positions" or "Turn on risk alerts"
Implementation: schedule_task(schedule="every 30 minutes", task="...")
The monitor checks:
| Check | Threshold | Action | |-------|-----------|--------| | Liquidation buffer | <15% margin remaining | ⚠️ Alert user | | Liquidation buffer | <8% margin remaining | 🚨 URGENT alert + suggest reduce | | Notional exposure | >80% of account value | Warn over-leveraged | | Single-asset concentration | >60% of portfolio | Warn concentration risk | | Funding bleed | Paying >0.05%/8h cumulative | Suggest venue migration | | Venue health | API errors or latency spike | Alert + pause strategies |
Portfolio snapshot:
├── Hyperliquid
│ ├── BTC-PERP: +0.5 long @ $68,200 (PnL: +$512)
│ ├── ETH-PERP: +3.0 long @ $3,450 (PnL: -$89)
│ └── Margin used: $4,200 / $12,000 (35%)
├── Orderly
│ ├── SOL-PERP: +50 long @ $142 (PnL: +$200)
│ └── Margin used: $1,800 / $5,000 (36%)
└── TOTAL
├── Net exposure: $58,750 long
├── Total margin: $6,000 / $17,000 (35%)
└── Effective leverage: 3.5x
If funding rate diverges significantly between venues:
When same asset has divergent funding across venues (>0.01%/8h delta):
Trigger: "Show my portfolio" / "What's my exposure?"
Pulls from both venues simultaneously:
hl_account() + hl_balances() for Hyperliquidwoo_positions() + woo_holdings() for OrderlyPresents unified view:
User: "Buy some ETH"
Agent: I can route this across Hyperliquid and Orderly for best execution.
How much ETH? And market order or limit?
User: "0.5 ETH, market"
Agent: [runs routing comparison]
HL: $1,732.50 total cost (0.02% slippage + 0.035% fee)
Orderly: $1,738.20 total cost (0.05% slippage + 0.050% fee)
→ Hyperliquid is $5.70 cheaper. Execute there?
User: "yes"
Agent: [executes on HL, confirms fill]
Filled 0.5 ETH @ $3,464.10 on Hyperliquid. Fee: $0.61.
User: "DCA $500 into BTC weekly"
Agent: Got it. I'll buy ~$500 BTC every week, routed to whichever
venue is cheapest at execution time.
Budget cap? (I'll stop after this amount)
User: "$10,000 total"
Agent: Running: $500/week BTC DCA, best-venue routing, $10k cap.
That's 20 weeks. I'll send you a summary after each buy.
Say "show my strategies" anytime or "stop DCA" to kill it.
Agent: ⚠️ Risk Alert — ETH position on Hyperliquid
Your margin buffer is at 12% (threshold: 15%).
ETH is down 8% in the last 4 hours.
Options:
1. Reduce position by 30% (brings buffer to ~25%)
2. Add $500 margin
3. Move to Orderly (lower maintenance margin)
4. Do nothing (I'll alert again at 8%)
| Week | Deliverable | |------|-------------| | 1 | Routing engine: orderbook pull, VWAP walk, fee calc, comparison output | | 2 | DCA + TWAP strategies with schedule_task persistence | | 3 | Risk monitor: margin checks, liquidation alerts, kill switch | | 4 | Portfolio view: cross-venue aggregation, funding projection | | 5 | Grid + trailing stop + TP ladder strategies | | 6 | Conditional triggers, funding arb detection | | 7 | Position migration, venue health monitoring | | 8 | Polish: error handling, edge cases, UX refinement |
BTC, ETH, SOL — expand based on demand.
Architecture is venue-agnostic. Adding a venue means:
dYdX, GMX, Vertex are natural next candidates.
development
--- name: "@5326/fvg-delta-forex-engine" version: 6.0.0 --- # FVG-Delta Forex Signal Engine v6.0 A production FastAPI service that scans the global forex market on **15-minute candles**, runs a strict lock-forward Smart-Money-Concept (SMC) staged state machine, and alerts on the late stages. It is the forex evolution of the FVG-Delta crypto engine — **identical strategy**, refined for forex speed and mechanics. ## What it scans A curated, liquidity-screened universe (no illiquid exotics, no
development
--- name: "@5322/fvg-engine" version: 1.0.0 --- # FVG-Delta Crypto Signal Engine v6.0 A production FastAPI service that scans MEXC UST-M perpetual futures on **closed 15-minute candles**, runs a strict lock-forward Smart-Money-Concept (SMC) staged state machine, draws annotated chart screenshots, sends per-trade Telegram alerts, and serves a live dashboard with an in-memory Trade History. Everything lives in `assets/app.py`; the rest is config, docs, and entrypoints. ## The strategy — five lo
development
Builds and app/bot to print Crypto Futures Signals based on a Strategy.
development
--- name: "@5312/delta-strategy" version: 1.0.0 --- # FVG-Delta Crypto Signal Engine — Agent / Maintainer Guide (v5.5) This is the single source of truth for any AI agent or engineer taking over this project. Read it fully before touching `app.py`. It explains the strategy, the code workflow, every bug that was fixed in this revision, the current state, and the rules for updating the app and its docs safely. --- ## 1. What the app is A production-style FastAPI service that scans **MEXC UST-