Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

X-Rates Historical Rates Table

Dokumentacja API
https://api.sandbase.ai/v1/api/x-rates/historical-rates-table

Fetches historical exchange rates for a base currency against all supported currencies on a specific date. The date must be in ISO YYYY-MM-DD format. Returns the same structure as the current rates table but for the specified historical date.

Cena
$0.03USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
1 wymaganych · 2 opcjonalnych

Playground

Wejście
Historical date in ISO format YYYY-MM-DD.
Base currency code.
Amount to calculate rates for.
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

README API

X-Rates Historical Rates Table API

Fetches historical exchange rates for a base currency against all supported currencies on a specific date. The date must be in ISO YYYY-MM-DD format. Returns the same structure as the current rates table but for the specified historical date.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "x-rates/historical-rates-table", "date": "2026-10-16", "from": "USD", "amount": 1.0}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
datestringYesHistorical date in ISO format YYYY-MM-DD.
amountnumberNoAmount to calculate rates for.
fromstringNoBase currency code. One of: USD, EUR, GBP, JPY, CHF, CAD, AUD.

Pricing

Flat $0.03 per call. Failed calls are not charged.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
X-Rates$0.03 za wywołanieJSON
X-Rates$0.03 za wywołanieJSON
X-Rates$0.03 za wywołanieJSON
X-Rates$0.03 za wywołanieJSON
X-Rates$0.03 za wywołanieJSON
X-Rates$0.03 za wywołanieJSON

Pytania

FAQ

Jak używać API X-Rates Historical Rates Table?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/x-rates/historical-rates-table z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API X-Rates Historical Rates Table?

$0.03 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API X-Rates Historical Rates Table?

Wymagane: date (string). Opcjonalne: from (jedna z opcji: USD, EUR, GBP, JPY, CHF, CAD, AUD) i amount (number). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API X-Rates Historical Rates Table?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie).

Czy potrzebuję konta deweloperskiego X-Rates lub klucza API?

Nie. X-Rates Historical Rates Table działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API X-Rates.