360 Secure SkillHub
360 安全技能中心

Stablecoin FX (ChordSI)

通过 Chord API 读取 Arc 上 Circle StableFX 各稳定币对 USDC 的最新成交价与反向价、窗口 VWAP、成交量、吃单与挂单方数量、近期成交价区间及最新成交明细,按交易对、时间窗、条数和钱包筛选后汇总答复;只读,不签名也不转移资金。

分类:数据
tuantqse90
tuantqse90
热度 0.00
最近更新 2026-12-03 05:21:04

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add tuantqse90/chordsi-stablecoin-fx
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
stablecoin-fx
description
Reads Circle StableFX on Arc, the quote desk where euro, peso and other stablecoins trade against USDC: per pair the last rate and its inverse, the volume-weighted average, volume, number of takers and makers, how far the last fill sits from the average, the low and high of recent fills and which way takers traded, then the latest fills with amounts, settle time and explorer links. Pairs seen so far: EURC/USDC (daily), MXNB/USDC (Mexican peso), AUDF/USDC and GBPA/USDC (rare). Covers Arc only. Use when the user asks "what is the EURC rate", "euro stablecoin price on Arc", "StableFX volume", "latest USDC to EURC fills", "how many pesos for a dollar on Arc". Not for DEX pools, other chains, live quotes or an official FX reference rate (the API has none). Read only; never signs or moves funds.
license
MIT
compatibility
Needs python3 and HTTPS to api.getchord.xyz. Set CHORD_API_KEY (free at chordsi.xyz/me).
metadata
{"author":"Chord (getchord.xyz)","homepage":"https://chordsi.xyz/s/stablecoin-fx","version":"1.0.0"}

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) and lastInverse, vwap for the window, lastVsVwapBps (1 bp = 0.01%), trades, volumeUsd, takers, makers, lastFill in UTC.
  • fillSpread: from the newest fills in the window (up to 200; coversWholeWindow says 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. rateSuspect marks 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

  1. 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.
  2. Say how wide recent fills ranged in basis points and which way takers leaned.
  3. 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.
  4. 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)