{
  "x402Version": 2,
  "id": 39905,
  "slug": "39905",
  "resource": "https://x402stock.xyz/api/v1/exchange-rates",
  "description": "Official US Treasury reporting rates of exchange — government FX reference rates for ~170 currencies, in units of foreign currency per 1 USD, for the latest quarter. Use for accounting-grade and exotic-currency conversion the market /api/v1/forex feed lacks. Filter with `?currency=Euro`. Updated quarterly. From the US Treasury (FiscalData). From x402stock",
  "type": "http",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x3070Fbb3803819fB5BdfE9286fdc6325A877fA85",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "additionalProperties": false,
        "properties": {
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "count": {
            "type": "number"
          },
          "note": {
            "type": "string"
          },
          "rates": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "country": {
                  "type": "string"
                },
                "country_currency": {
                  "type": "string"
                },
                "currency": {
                  "type": "string"
                },
                "effective_date": {
                  "type": "string"
                },
                "exchange_rate": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "country",
                "currency",
                "country_currency",
                "exchange_rate",
                "effective_date"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "record_date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "series": {
            "type": "string"
          },
          "source": {
            "const": "us_treasury",
            "type": "string"
          }
        },
        "required": [
          "source",
          "as_of",
          "series",
          "note",
          "record_date",
          "count",
          "rates"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "currency": "Euro"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "as_of": "2026-03-31T00:00:00.000Z",
            "count": 168,
            "note": "Official US Treasury reporting rates of exchange — units of foreign currency per 1 USD. Updated quarterly; use for accounting/reference conversion, not live FX (see /api/v1/forex for market rates).",
            "rates": [
              {
                "country": "Euro Zone",
                "country_currency": "Euro Zone-Euro",
                "currency": "Euro",
                "effective_date": "2026-03-31",
                "exchange_rate": 0.924
              },
              {
                "country": "Japan",
                "country_currency": "Japan-Yen",
                "currency": "Yen",
                "effective_date": "2026-03-31",
                "exchange_rate": 149.32
              }
            ],
            "record_date": "2026-03-31",
            "series": "rates_of_exchange",
            "source": "us_treasury"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "currency": {
                    "maxLength": 64,
                    "minLength": 1,
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "additionalProperties": false,
                "properties": {
                  "as_of": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "count": {
                    "type": "number"
                  },
                  "note": {
                    "type": "string"
                  },
                  "rates": {
                    "items": {
                      "additionalProperties": false,
                      "properties": {
                        "country": {
                          "type": "string"
                        },
                        "country_currency": {
                          "type": "string"
                        },
                        "currency": {
                          "type": "string"
                        },
                        "effective_date": {
                          "type": "string"
                        },
                        "exchange_rate": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "country",
                        "currency",
                        "country_currency",
                        "exchange_rate",
                        "effective_date"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "record_date": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "series": {
                    "type": "string"
                  },
                  "source": {
                    "const": "us_treasury",
                    "type": "string"
                  }
                },
                "required": [
                  "source",
                  "as_of",
                  "series",
                  "note",
                  "record_date",
                  "count",
                  "rates"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "x402stock.xyz",
  "lastUpdated": "2026-10-09T02:29:13.331Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-10-09T02:29:13.13Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "currency": "Euro"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "as_of": "2026-03-31T00:00:00.000Z",
              "count": 168,
              "note": "Official US Treasury reporting rates of exchange — units of foreign currency per 1 USD. Updated quarterly; use for accounting/reference conversion, not live FX (see /api/v1/forex for market rates).",
              "rates": [
                {
                  "country": "Euro Zone",
                  "country_currency": "Euro Zone-Euro",
                  "currency": "Euro",
                  "effective_date": "2026-03-31",
                  "exchange_rate": 0.924
                },
                {
                  "country": "Japan",
                  "country_currency": "Japan-Yen",
                  "currency": "Yen",
                  "effective_date": "2026-03-31",
                  "exchange_rate": 149.32
                }
              ],
              "record_date": "2026-03-31",
              "series": "rates_of_exchange",
              "source": "us_treasury"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "currency": {
                      "maxLength": 64,
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "additionalProperties": false,
                  "properties": {
                    "as_of": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "count": {
                      "type": "number"
                    },
                    "note": {
                      "type": "string"
                    },
                    "rates": {
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "country": {
                            "type": "string"
                          },
                          "country_currency": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "effective_date": {
                            "type": "string"
                          },
                          "exchange_rate": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "country",
                          "currency",
                          "country_currency",
                          "exchange_rate",
                          "effective_date"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "record_date": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "series": {
                      "type": "string"
                    },
                    "source": {
                      "const": "us_treasury",
                      "type": "string"
                    }
                  },
                  "required": [
                    "source",
                    "as_of",
                    "series",
                    "note",
                    "record_date",
                    "count",
                    "rates"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402stock.xyz",
    "manifest_name": "x402stock.xyz",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "as_of": null,
      "count": 0,
      "note": "string",
      "rates": [
        {
          "country": "string",
          "country_currency": "string",
          "currency": "string",
          "effective_date": "string",
          "exchange_rate": null
        }
      ],
      "record_date": null,
      "series": "string",
      "source": "string"
    },
    "type": "string"
  }
}