Loops HouseOmniPerps Swarm

NEAR HACKATHON
Links
Team
1 member- MIOwner
MILLAT MISU
Overview
Problem: autonomous trading agents can move from "AI decided" to "money moved" with no independent check — one bad call can liquidate an account. OmniPerps Swarm splits the desk into three NEAR-anchored agents with opposed incentives: a Signal Agent proposes BTC-PERP trades on live prices with its reasoning shown; an independent Risk Agent checks every proposal against a SpendGuard policy (per-order notional cap, leverage ceiling, minimum liquidation distance, daily loss limit) and can veto, halve, force-reduce or force-close before liquidation; an Execution Agent acts only with Risk approval and re-checks the guard itself. Agents earn per-task fees in a visible ledger (Agent Economy) — and the ledger settles on-chain: earnings were paid from the swarm master as real NEAR testnet transfers (Signal 0.02 NEAR, Risk 0.215 NEAR at a stated 0.01 NEAR per ledger unit; tx hashes in docs/NEAR_PROOF.md). The demo works online and offline: LIVE prices by default, with an automatic, banner-labelled fallback to REPLAY (recorded real Kraken candles) when the feed is unreachable, plus a manual toggle. A backtest on the real Jan–Feb 2026 BTC drawdown (−36.72%) shows the unprotected position liquidated (−100% of margin) versus the swarm-protected path exiting via the Risk ladder at −48.7% of margin (docs/BACKTEST.md). The agents trade under real NEAR testnet accounts created for the swarm, every executed order produces a NEAR Intents-style settlement intent, and a global kill switch halts the swarm instantly. Via NEAR Chain Signatures the swarm master controls an EVM address — and the MPC network has really signed for it: a signature requested on testnet was returned and verified in code (ecrecover equals the derived address; see docs/NEAR_PROOF.md). SpendGuard is also deployed as a real NEAR testnet contract (guard.omniperps-swarm.testnet) and exercised live: in-limit orders allowed, oversize orders denied, kill switch enforced. Settlement of the perps book is paper on live prices