Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

X-Rates Historical Rates Table

Docs 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.

Prix
$0.03USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
Historical date in ISO format YYYY-MM-DD.
Base currency code.
Amount to calculate rates for.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
X-Rates$0.03 par appelJSON
X-Rates$0.03 par appelJSON
X-Rates$0.03 par appelJSON
X-Rates$0.03 par appelJSON
X-Rates$0.03 par appelJSON
X-Rates$0.03 par appelJSON

Questions

FAQ

Comment utiliser l’API X-Rates Historical Rates Table ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/x-rates/historical-rates-table avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API X-Rates Historical Rates Table ?

$0.03 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API X-Rates Historical Rates Table accepte-t-elle ?

Obligatoire : date (string). Facultatif : from (l’un de USD, EUR, GBP, JPY, CHF, CAD, AUD) et amount (number). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API X-Rates Historical Rates Table ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone).

Ai-je besoin d’un compte développeur ou d’une clé API X-Rates ?

Non. X-Rates Historical Rates Table fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API X-Rates séparément.