{"openapi":"3.1.0","info":{"title":"Agent Data Hub: Exchange rates","version":"1.0.0","description":"ECB euro reference rates since 1999 from the archive, cross rates over the euro. No API key. Every answer names source and licence. Full API: https://api.agentdatahub.de/openapi.json","termsOfService":"https://api.agentdatahub.de/nutzungsbedingungen"},"servers":[{"url":"https://api.agentdatahub.de"}],"paths":{"/api/v1/fx/{from}/{to}/{date}":{"get":{"operationId":"fxRate","summary":"Rate of a currency pair on a day, or the latest","parameters":[{"name":"from","in":"path","required":true,"schema":{"type":"string"},"description":"ISO currency code, e.g. EUR"},{"name":"to","in":"path","required":true,"schema":{"type":"string"},"description":"ISO currency code, e.g. USD"},{"name":"date","in":"path","required":true,"schema":{"type":"string"},"description":"YYYY-MM-DD or latest"},{"name":"amount","in":"query","required":false,"schema":{"type":"string"},"description":"Amount to convert, e.g. 100"}],"responses":{"200":{"description":"Rate with day used, source and licence","content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"Unknown code; the answer lists the valid ones"}}}}}}