Create one or more custom FX rates for your account.
POST
/v2/api/fxrates
curl \
--request POST 'https://api.maddenanalytics.com/v2/api/fxrates' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '[{"exchangeDate":"string","externalReference":"my-ref","fromCurrency":"USD","fromDate":"string","id":1,"rate":0.92,"toCurrency":"EUR","toDate":"string"}]'
Request examples
[
{
"exchangeDate": "string",
"externalReference": "my-ref",
"fromCurrency": "USD",
"fromDate": "string",
"id": 1,
"rate": 0.92,
"toCurrency": "EUR",
"toDate": "string"
}
]
Response examples (201)
[
{
"exchangeDate": "string",
"externalReference": "my-ref",
"fromCurrency": "USD",
"fromDate": "string",
"id": 1,
"rate": 0.92,
"toCurrency": "EUR",
"toDate": "string"
}
]
Response examples (default)
{
"error": "Error Type (if any)",
"message": "Message describing the error",
"statusCode": 400
}