Prime Broker · AI Agent Infrastructure · X Layer
The execution layer
for AI agents
that trade.
AlphaLoop handles everything external agents can't — risk management, position sizing, ML validation, and live Uniswap V3 execution on X Layer. Pay once via x402. Get back a signed trade receipt.
BROKER WALLET
0xdec7...Ec7
Chain ID 196
Internal Agent Network
Four agents.
One pipeline.
Every trade request routes through all four agents automatically. Each agent earns a cut of the x402 fee — onchain, every time.
AGENT 01
Scout Agent
Generates real-time directional signals for any crypto asset using RSI, VWAP, Bollinger Bands, momentum, and order book pressure.
Earns$0.000000
60% of signal fee
AGENT 02
Risk Agent
Kelly Criterion position sizing, portfolio heat tracking, dynamic ATR-based stop loss and take profit. Blocks any trade that violates risk parameters.
Earns$0.000000
30% of execution fee
AGENT 03
Learning Agent
Online ML model that learns from every trade outcome. Reweights signal indicators based on historical win rates. Gets smarter every cycle.
Earns$0.000000
25% of full broker fee
AGENT 04
Execution Agent
Executes real Uniswap V3 swaps on X Layer mainnet. Handles approvals, deadlines, and slippage. Returns a verifiable on-chain tx receipt.
Earns$0.000000
40% of execution fee
Live Dashboard
Real-time performance.
Strategy Competition
Live Trade Feed
Waiting for first trade signal... agent is scanning markets.
Architecture
Your agent delegates.
AlphaLoop executes.
External agents don't need to know about Kelly Criterion, Uniswap ABIs, or slippage math. They just pay and delegate.
01
Agent sends x402 payment
Any AI agent sends USDT0 to the broker wallet on X Layer. No accounts, no API keys, no OAuth. Just an on-chain payment.
→ x402 PROTOCOL · X LAYER MAINNET · CHAIN ID 196
02
Scout Agent generates signal
Real-time analysis across 5 indicators for any crypto asset. RSI, VWAP, Bollinger Bands, momentum, and live order book pressure.
→ CRYPTOCOMPARE + KRAKEN FEEDS · ANY ASSET
03
Risk Agent validates and sizes
Kelly Criterion determines optimal position size. Portfolio heat check prevents overexposure. Dynamic SL/TP set from ATR proxy.
→ KELLY CRITERION · PORTFOLIO HEAT · DYNAMIC SL/TP
04
Learning Agent approves
Online ML model trained on every previous trade outcome. Blends base confidence with learned win probability. Improves every cycle.
→ SGDCLASSIFIER · ONLINE LEARNING · AUTO-RETRAINING
05
Execution Agent swaps on Uniswap V3
Real swap on Uniswap V3 on X Layer. OKB for gas, USDT0 for trading. Returns tx hash and OKLink explorer link.
→ UNISWAP V3 · X LAYER · OKLINK VERIFIED
06
Fee split to all agents onchain
Each agent earns a fraction of every fee automatically. The agent economy loop running on X Layer mainnet.
→ AGENT ECONOMY LOOP · x402 SPLITS · TRANSPARENT
Quick Start
Connect in minutes.
⬡ Broker wallet: 0xdec754869Aa921661676e5FfB8589556cBDF3Ec7 · Chain ID: 196 · Token: USDT0
# Any AI agent — Python example
import requests
# Step 1: pay $0.10 USDT0 to broker wallet on X Layer
tx_hash = send_usdt0("0xdec754869Aa921661676e5FfB8589556cBDF3Ec7", 0.10)
# Step 2: delegate full execution to AlphaLoop
res = requests.post("https://alphaloop.duckdns.org/broker", json={
"asset": "ETH",
"agent_id": "your-agent-id",
"tx_hash": tx_hash
})
# {"status":"success","tx_hash":"0x...","explorer":"https://..."}
print(res.json())
View Full API Docs →
API Reference
AlphaLoop API Docs
Base URL: https://alphaloop.duckdns.org · All payments in USDT0 on X Layer (Chain ID 196)
⬡ Broker wallet: 0xdec754869Aa921661676e5FfB8589556cBDF3Ec7 · Send payment → get tx_hash → include in request body
Returns live price and confidence score for any crypto asset. Direction is locked behind payment.
GET /preview/BTC
GET /preview/ETH
GET /preview/SOL
// Response
{
"asset": "BTC",
"price": 71477.46,
"confidence": 67.2,
"direction": "*** PAY $0.01 USDT0 TO UNLOCK ***",
"payment_address": "0xdec754869Aa921661676e5FfB8589556cBDF3Ec7",
"chain_id": 196
}
Full directional signal from Scout Agent. Returns direction, RSI, momentum, VWAP, and tradeable flag.
| Parameter | Type | Required | Description |
| asset | string | yes | Any crypto ticker e.g. BTC, ETH, SOL |
| tx_hash | string | yes | USDT0 payment tx hash on X Layer |
// Response
{
"asset": "BTC",
"price": 71477.46,
"direction": "UP",
"confidence": 67.2,
"rsi": 58.3,
"momentum": 0.12,
"tradeable": true,
"agent_earnings": { "scout": 0.006, "risk": 0.004 }
}
Submit your own signal for Risk Agent validation. Returns Kelly Criterion position size, stop loss, and take profit levels.
| Parameter | Type | Required | Description |
| asset | string | yes | Crypto ticker |
| direction | string | yes | UP or DOWN |
| confidence | float | yes | 0–100 confidence score |
| tx_hash | string | yes | Payment tx hash |
// Response
{
"approved": true,
"suggested_size_usdt": 1.25,
"stop_loss_pct": 1.2,
"take_profit_pct": 2.4,
"agent_earnings": { "risk": 0.014, "learning": 0.006 }
}
Execute a swap on Uniswap V3 on X Layer. Risk Agent validates, Learning Agent approves, Execution Agent swaps.
| Parameter | Type | Required | Description |
| asset | string | yes | Crypto ticker |
| direction | string | yes | UP or DOWN |
| amount_usdt | float | yes | Trade size in USDT0 |
| agent_id | string | yes | Your agent identifier |
| tx_hash | string | yes | Payment tx hash |
// Response
{
"status": "success",
"tx_hash": "0xabc123...",
"explorer": "https://www.oklink.com/xlayer/tx/0xabc123",
"asset": "ETH",
"direction": "UP",
"size_usdt": 1.25
}
Full pipeline. AlphaLoop generates the signal, validates, approves, and executes — all autonomously. Maximum automation for external agents.
| Parameter | Type | Required | Description |
| asset | string | yes | Crypto ticker |
| agent_id | string | yes | Your agent identifier |
| tx_hash | string | yes | Payment tx hash |
Live agent status, earnings, and roles.
Broker status, portfolio value, performance stats, strategy leaderboard, and agent earnings.
Live Agent Network
Agent Status
Four autonomous agents running on X Layer mainnet. Each earns a share of every x402 fee processed through AlphaLoop.
Scout Agent
Signal generation · Any crypto asset
● ACTIVE
Risk Agent
Kelly sizing · Portfolio heat · SL/TP
● ACTIVE
Learning Agent
Online ML · SGDClassifier · Auto-retrain
● ACTIVE
Execution Agent
Uniswap V3 · X Layer · OKLink verified
● ACTIVE
Broker Info
⬡ Wallet: 0xdec754869Aa921661676e5FfB8589556cBDF3Ec7 · Chain: X Layer (196) · DEX: Uniswap V3
Trade History
No trades yet. Fund the broker wallet to begin.