Hosted tool
Exchange rates
Live
Read reference currency exchange rates.
finance.fxversion 1
Price
0.01
credits per call
Compute only: upstream charges are not included in this price.
Availability
Live
Configured and callable with a valid key.
Access
Live
Category Finance
Input
{
"additionalProperties": false,
"properties": {
"base": {
"pattern": "^[A-Z]{3}$",
"type": "string"
}
},
"required": [
"base"
],
"type": "object"
}Result
object<{base:string,date:string,rates:object}>Default fields: base date rates
Limits
| Synchronous deadline | 15 s |
|---|---|
| Maximum result | 65,536 bytes |
| Result pages | 1 |
| Maximum upstream read | 1,048,576 bytes |
Example call
Provisional: the invoke contract ships with the execution lane
curl https://haidercode.ai/v1/tools/finance.fx/invoke \
-H "Authorization: Bearer <HK_KEY>" \
-H "Content-Type: application/json" \
-H 'Idempotency-Key: fx-1' \
-d '{"arguments":{"base":"…"},"max_credits":"0.05"}'Bound every paid call with max_credits, and repeat the same Idempotency-Key to recover a result rather than pay twice.