xMarket

Autonomous AI agent executing verified onchain bracket trades from breaking social event triggers

xMarket

Created At

ETHGlobal Mumbai

Project Description

When breaking macroeconomic or crypto news hits social media—like Fed rate announcements, regulatory rulings, or protocol exploits—markets react in milliseconds. Retail traders are consistently too slow, while traditional bots blindly market-swap into massive slippage and MEV sandwich attacks. Worse, current "AI trading bots" act as opaque black boxes where users have zero proof of whether a trade was executed based on real sentiment analysis or developer front-running.

PumpIt solves this by creating an autonomous, event-driven trading agent powered by verifiable AI inference and automated bracket execution:

  1. Intent Configuration: Traders set up a catalyst trigger by choosing a target source (e.g., @federalreserve), catalyst event, minimum confidence threshold (e.g., ≥ 75%), and bracket risk parameters (+5% Take-Profit / -2.5% Stop-Loss).
  2. Verifiable Sentiment via 0G Private Computer: A live sentinel monitors incoming posts and routes them through 0G Private Computer (TEE). It evaluates economic polarity (Hawkish/Dovish) and returns a cryptographic request ID. This provides tamper-proof proof onchain that trades were triggered by objective AI reasoning rather than hallucination or manipulation.
  3. MEV-Protected Bracket Execution via Definitive Flash: When confidence criteria are met, PumpIt immediately fires a non-custodial trade via Definitive Flash on Arbitrum One. Instead of an unprotected market swap, it automatically attaches Take-Profit and Stop-Loss orders with built-in MEV protection.
  4. Self-Sustaining Economy ("Agents That Pay for Themselves"): Every filled Definitive Flash order earns a 0.1% (10 bps) integrator fee rebate. PumpIt routes these rebates directly into its 0G compute balance vault, autonomously funding future inference costs without requiring manual human top-ups.

How it's Made

PumpIt is built with Next.js 16 (App Router), React 19, TypeScript, and Tailwind CSS, featuring a real-time reactive terminal interface with live sentiment monitoring, intent wizardry, and position tracking.

Under the hood, two core partner technologies power the agent:

• 0G Private Computer: We integrated the 0G Compute OpenAI-compatible router API (router-api.0g.ai) running open-weights LLMs (0gm-1.0-35b-a3b) inside Trusted Execution Environments (TEEs). The agent extracts sentiment scores, action signals (BUY/SELL/HOLD), and cryptographic request IDs. If 0G were removed, the system would lose all verifiability, turning into an untrusted black box prone to developer manipulation and front-running.

• Definitive Flash API: Rather than routing swaps through standard AMMs where high-volatility news spikes cause devastating slippage, we integrated Definitive Flash (flash.definitive.fi) on Arbitrum One. We wrap every trade into an Advanced Bracket Order with atomic Take-Profit (+5%) and Stop-Loss (-2.5%) limits, protecting capital from whipsaws with institutional-grade MEV protection.

• Autonomous Fee Flywheel: We configured Definitive's 10 bps integrator fee rebate to route straight into the agent's 0G Compute Vault. Each executed trade generates revenue that re-deposits into the 0G balance, creating a perpetual, self-funding autonomous agent with built-in daily spend caps.

Notable & Hacky Solutions:

  • Live Demo Reliability: Hackathon demos often stall waiting for real-world tweets or fighting Twitter API rate limits. We engineered a hybrid sentinel engine that can poll live X accounts or instantly ingest real-time custom test tweets from a built-in interactive drawer.
  • Zero-Setup Testing for Judges: We included an in-app API Key modal allowing judges to test using their own 0G and Definitive keys without touching terminal configs, backed by a robust fallback heuristic engine to ensure zero crashes during live testing.
background image mobile

Join the mailing list

Get the latest news and updates

xMarket | ETHGlobal