{"openapi":"3.1.0","info":{"title":"FX Rates","version":"1.0.0","x-guidance":"Every path is payable per request over HTTP 402 in USDG on eip155:4663. GET or POST without credentials to receive the challenge (WWW-Authenticate Payment header, plus the x402 payment-required header). Sign PermitWitnessTransferFrom for the advertised offer (spender is the canonical x402ExactPermit2Proxy) and retry with the payment-signature header. Buyers only need USDG: a one-time sponsored Permit2 approval is available at POST /api/gas/sponsor {\"address\"}."},"x-service-info":{"description":"Official foreign-exchange reference rates from the European Central Bank via Frankfurter: latest and historical rates for 30+ currencies, machine-payable per request."},"paths":{"/currencies":{"get":{"summary":"Map of every supported currency code to its full name, e.g. {\"USD\":\"United States Dollar\"}.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"5000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"FX Rates: Supported currencies","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/historical":{"get":{"summary":"Rates for any past date since 1999. Append the date to the path, e.g. historical/2024-01-02?base=USD. Date ranges work too: historical/2024-01-01..2024-01-31.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"5000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"FX Rates: Historical rates","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/latest":{"get":{"summary":"Current ECB reference rates. Pass ?base=USD to set the base currency and &symbols=EUR,GBP,JPY to limit the response.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"5000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"FX Rates: Latest rates","intent":"charge","method":"evm","recipient":"0xbB818E97E2260904B1D502E154488392ba2Ab5C9","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}}}}