Stablecoin FX
StableFX is Circle's permissioned FX desk: market makers quote off-chain and each trade settles on Arc through one escrow, both sides paid in the same transaction. Chord indexes every settlement since the escrow went live (June 2026), so the figures here are prices people actually traded at, not a live quote. Every pair is against USDC.
Run it
python3 scripts/stablecoin_fx.py [PAIR] [--hours H] [--fills N] [--wallet 0x...]
PAIR: the other currency (EURC, MXNB) or a pair in any order (EURC/USDC, usdc-eurc). Leave it out for every pair.--hours: the window, 1 to 2160 (90 days; default 24).--fills: latest fills to list, 0 to 50 (default 10).--wallet: only fills where this wallet was taker or maker (the pair figures stay market-wide).
Example: python3 scripts/stablecoin_fx.py EURC
Read the answer
pairs: per pair,last(USDC per 1 unit of the other currency) andlastInverse,vwapfor the window,lastVsVwapBps(1 bp = 0.01%), trades,volumeUsd, takers, makers,lastFillin UTC.fillSpread: from the newest fills in the window (up to 200;coversWholeWindowsays if that is all of them): low, high, median,highOverLowBps, dollars takers bought vs sold of the other currency.oddFillsLeftOut: fills more than 10% from the median, which Chord's index can misprice when a settlement pays out in three parts.latestFills: settle time in UTC, rate, dollars, what the taker bought and paid, side, taker, maker,settleMinutes(booked to settled; the rate is fixed when booked, so a large fill can land hours later), explorer link.rateSuspectmarks a fill whose rate should not be quoted.allTime: trades and volume since the escrow went live, and trades booked but not settled in the last 7 days.
How to answer the user
- Give the last rate both ways (1 EURC = 1.0842 USDC; 1 USDC = 0.9224 EURC), the time of that fill, and the window's average and volume.
- Say how wide recent fills ranged in basis points and which way takers leaned.
- There is no outside reference rate in this data. If the person wants a comparison with an official euro or peso rate, say it comes from elsewhere and name the source you use.
- A pair with no trades in the window: say so and offer a longer window. Never present a past fill as a quote they can get.
Cost
Two calls per run: the pair figures and the fills (one call when --fills is 0 and no pair traded in the window).
300 calls a month are free; then $0.006 a call from your ChordSI credit. If the script exits with code 4, show the
person the message: their credit is empty or a limit was reached, and chordsi.xyz/me is where they top up.
Chord endpoints it calls
GET /v1/arc/fx?hours=(per pair: trades, volume, VWAP, last rate, takers, makers; open trades; all-time totals)GET /v1/arc/fx/trades?pair=&wallet=&hours=&limit=(settled fills, newest first)
