fx

Daily reference exchange rates from the European Central...

Daily reference exchange rates from the European Central Bank (via Frankfurter). 30+ major currencies. Pass base = 3-letter ISO 4217 currency (default USD), optional symbols = comma-separated target codes (default = all available), optional date = YYYY-MM-DD for historical rates (history back to 1999, business days only; omit for latest), optional amount to convert (default 1). Returns base, date, amount, and a map of currency code → rate.

get/api/fx/rates

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/fx/rates
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

basestring

Base.

symbolsstring

Symbols.

datestring

Date in YYYY-MM-DD format.

amountnumber

Amount.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.