Open app

API reference

Markdown

List recent swaps

GET/v2/recent-swaps

List recent completed swaps.

Authentication: None. This route is public.

orderId in this list is an opaque row key, stable across polls. It is not the order’s id and opens no order.

#Response

200 returns an array of objects with:

  • orderId · string · required — Opaque key for this row, stable across polls. Not the order's id: it opens no order.
  • status · "completed" · required
  • from · string · required
  • fromChainId · integer
  • fromAmount · string
  • fromTokenDecimals · integer
  • to · string · required
  • toChainId · integer
  • toAmount · string
  • toTokenDecimals · integer
  • createdAt · string or null · required
  • completedAt · string or null · required

Errors use the standard error envelope: branch on code, never on the message.

#Example

curl
curl 'https://api-beta.wagyu.xyz/v2/recent-swaps'
JavaScript
const res = await fetch('https://api-beta.wagyu.xyz/v2/recent-swaps'
);
const data = await res.json();
Python
import requests

res = requests.get('https://api-beta.wagyu.xyz/v2/recent-swaps', timeout=30)
data = res.json()
Response · 200 · captured 4 Nov 2026, 08:24 UTC
[
  {
    "orderId": "e04d5edad1e06c69",
    "status": "completed",
    "from": "XMR",
    "fromChainId": 0,
    "fromAmount": "19230000000000",
    "fromTokenDecimals": 12,
    "to": "USDT",
    "toChainId": 728126428,
    "toAmount": "12186867722",
    "toTokenDecimals": 6,
    "createdAt": "2026-11-04T08:17:53.988Z",
    "completedAt": "2026-11-04T08:24:01.286Z"
  },
  {
    "orderId": "727efc9c37970943",
    "status": "completed",
    "from": "SOL",
    "fromChainId": 1151111081099710,
    "fromAmount": "1000000000",
    "fromTokenDecimals": 9,
    "to": "XMR",
    "toChainId": 0,
    "toAmount": "137103960000",
    "toTokenDecimals": 12,
    "createdAt": "2026-11-04T08:14:17.835Z",
    "completedAt": "2026-11-04T08:16:36.261Z"
  }
]

Tip: every page is also plain Markdown, and /llms.txt indexes them for AI tools.