Skip to content
Celo Sepolia · x402 · USDC
AgentBadge AgentBadge
+
Celo Celo
= FX Delta Agent

FX Delta Agent

A paid API for AI agents. It compares live token prices on Celo with official exchange rates and returns a clear signal for each currency pair: buy, sell, or watch.

How a call works

Four steps, one payment per call. Each step is shown in the diagrams below.

AI agent asks the API and receives payment required
Agent signs a payment permit, relay settles it on Celo
API reads live token prices and official FX rates
API returns buy / sell / watch signals and alerts

How it works

1

Request

The agent calls the premium endpoint for FX deltas.

2

Pay

The agent signs a USDC payment permit (EIP-3009). No gas is spent by the buyer.

3

Settle

A relay settles the payment onchain on Celo Sepolia. The transaction carries an ERC-8021 attribution tag.

4

Receive

The API returns price gaps per corridor and trade signals. Big gaps also trigger Telegram alerts.

Try it

Call the API without paying to see the payment requirements. A paid call returns the deltas.

curl -i https://agentbadge.xyz/api/fx-delta/premium

The first response is 402 Payment Required, with the amount and the payTo address in the body. Check the health endpoint at /api/fx-delta/health.

What makes it different

Paid per call
Each request is priced in USDC. No subscription and no API key to manage.
No gas for the buyer
The agent only signs. The relay pays gas when it settles.
Onchain attribution
The ERC-8021 tag sits in the settle transaction, so the call can be traced on Blockscout.
Free tier and premium
A free tier shows the corridors. Premium returns full deltas and signals.

FAQ

What does the agent pay? ▾
A small USDC amount per call, shown in the 402 response. Testnet USDC is used on Celo Sepolia.
Does the agent need gas? ▾
No. The agent signs a payment permit. The relay pays gas when it settles the payment.
Where can I see a payment? ▾
Every settle transaction is on Blockscout, with the attribution tag in its calldata.
Who receives the money? ▾
The FX Delta payTo address listed in the 402 response.
How do I connect my own agent? ▾
Call the premium endpoint, handle the 402, sign the permit, and retry with the payment header.

API surface

MethodPathDescription
GET /api/fx-delta/health Service health
GET /api/fx-delta/corridors List of currency corridors
GET /api/fx-delta/snapshot Latest deltas snapshot
GET /api/fx-delta/premium Premium deltas and signals (x402 payment required)
GET /api/fx-delta/stream Live stream of deltas
GET /api/fx-delta/:corridor Deltas for one corridor
GET /api/fx-delta/verify/:id Check a payment or result by id

Stack

Celo Sepolia
settlement chain
x402 + EIP-3009
USDC payment permits
ERC-8021
attribution tag in calldata
Mento / Uniswap
onchain price sources
Official FX rates
reference prices
Telegram
delta alerts
Hono + hono/html
server-rendered

Try it, plug in your agent, start earning per call

Every call is a payment you can verify onchain.

Support: support@agentbadge.xyz