/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/treasuryfx-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/treasuryfx-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/treasuryfx-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/treasuryfx-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"source": "US Treasury FiscalData — Rates of Exchange (live)",
"service": "treasuryfx-api",
"endpoints": {
"GET /v1/meta": "This document.",
"GET /v1/rates": "The quarterly set — all currencies per USD (date=YYYY-MM-DD for a past quarter).",
"GET /v1/convert": "Convert between two currencies via USD (from=USD&to=EUR&amount=100).",
"GET /v1/currency": "One currency's rate + history (code=EUR, or q=Japan)."
},
"description": "The official US government foreign-exchange rates from the US Treasury's FiscalData API — the quarterly Reporting Rates of Exchange used for federal reporting and US tax/compliance, ~168 currencies back two decades. The rates endpoint returns the whole quarterly set (every currency's rate to one US dollar, any past quarter by date); the currency endpoint returns one currency's official rate with quarter-by-quarter history (by ISO code, country or currency name); and the convert endpoint converts between any two currencies crossed through the US dollar. Live, no key, nothing stored; rates are quarterly and authoritative for accounting, not a live market quote. Distinct from central-bank and market FX APIs — this is the US Treasury's quarterly reporting rates of exchange.",
"latest_quarter": "2026-03-31",
"upstream_status": "ok",
"iso_codes_supported": [
"EUR",
"GBP",
"JPY",
"CNY",
"CAD",
"AUD",
"CHF",
"INR",
"BRL",
"MXN",
"KRW",
"SEK",
"NOK",
"TRY",
"ZAR",
"SGD",
"HKD",
"NZD",
"DKK",
"PLN",
"CZK",
"HUF",
"THB",
"IDR",
"MYR",
"PHP",
"ILS",
"AED",
"SAR",
"RUB",
"EGP",
"PKR",
"NGN",
"ARS",
"CLP",
"COP",
"VND",
"TWD",
"KWD",
"USD"
]
},
"meta": {
"timestamp": "2026-06-09T11:38:09.643Z",
"request_id": "989ba71a-4e21-4752-bcaf-4a204d86f618"
},
"status": "ok",
"message": "Meta",
"success": true
}