{
 "x402Version": 1,
 "name": "FX reference rates",
 "description": "Daily reference exchange rates for 30 currencies from the European Central Bank (published every TARGET business day about 16:00 CET), rebased to any currency, with conversions and history. Pay per call over x402 (USDC on Base) through the Agent Exchange store gateway; no account or key. Free: https://fx.agentexchange.work/sample.json",
 "payment": {
  "rail": "x402",
  "gateway": "https://store.agentexchange.work/gw/fx",
  "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c"
 },
 "free_resources": [
  "https://fx.agentexchange.work/",
  "https://fx.agentexchange.work/sample.json",
  "https://fx.agentexchange.work/.well-known/x402"
 ],
 "count": 3,
 "resources": [
  {
   "resource": "https://fx.agentexchange.work/rates",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.002,
   "mimeType": "application/json",
   "description": "All ECB reference rates for the latest day, rebased to a base currency (EUR by default; any of the 30 currencies): {base, date, rates:{USD:..., JPY:...}}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/rates?base=USD.",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "2000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://fx.agentexchange.work/rates",
     "description": "All ECB reference rates for the latest day, rebased to a base currency (EUR by default; any of the 30 currencies): {base, date, rates:{USD:..., JPY:...}}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/rates?base=USD.",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "base": {
         "type": "string",
         "description": "3-letter code, default EUR"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "forex",
    "fx",
    "currency",
    "exchange-rate",
    "ecb",
    "finance",
    "data-feed"
   ]
  },
  {
   "resource": "https://fx.agentexchange.work/convert",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.002,
   "mimeType": "application/json",
   "description": "Convert an amount between two currencies at the latest ECB reference rate: {from, to, amount, rate, result, date}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/convert?from=USD&to=CNY&amount=100.",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "2000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://fx.agentexchange.work/convert",
     "description": "Convert an amount between two currencies at the latest ECB reference rate: {from, to, amount, rate, result, date}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/convert?from=USD&to=CNY&amount=100.",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "from": {
         "type": "string",
         "required": true
        },
        "to": {
         "type": "string",
         "required": true
        },
        "amount": {
         "type": "number",
         "description": "default 1"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "forex",
    "fx",
    "currency",
    "exchange-rate",
    "ecb",
    "finance",
    "data-feed"
   ]
  },
  {
   "resource": "https://fx.agentexchange.work/history",
   "type": "http",
   "method": "GET",
   "x402Version": 1,
   "price_usd": 0.002,
   "mimeType": "application/json",
   "description": "Daily ECB reference rate history for a pair over the last N business days (up to 365): {from, to, days, series:[{date, rate}]}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/history?from=EUR&to=USD&days=30.",
   "accepts": [
    {
     "scheme": "exact",
     "network": "base",
     "maxAmountRequired": "2000",
     "payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c",
     "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
     "maxTimeoutSeconds": 300,
     "extra": {
      "name": "USD Coin",
      "version": "2"
     },
     "resource": "https://fx.agentexchange.work/history",
     "description": "Daily ECB reference rate history for a pair over the last N business days (up to 365): {from, to, days, series:[{date, rate}]}. Pay 0.002 USDC through https://store.agentexchange.work/gw/fx/history?from=EUR&to=USD&days=30.",
     "mimeType": "application/json",
     "outputSchema": {
      "input": {
       "type": "http",
       "method": "GET",
       "queryParams": {
        "from": {
         "type": "string",
         "required": true
        },
        "to": {
         "type": "string",
         "required": true
        },
        "days": {
         "type": "number",
         "description": "1..365, default 30"
        }
       }
      }
     }
    }
   ],
   "tags": [
    "forex",
    "fx",
    "currency",
    "exchange-rate",
    "ecb",
    "finance",
    "data-feed"
   ]
  }
 ]
}