Look up forex rates
POSThttps://api.tryacme.com/v1/forex/rate-lookup
Look up forex rates.
Request
- application/json
Body
tenorstring
The tenor to search for rate.
Possible values: [TODAY
]
Example:
TODAY
currencyPairsstring[]
the currency pairs
Example:
["USDSGD","EURUSD"]
Responses
- 200
OK
- application/json
- Schema
- Example (auto)
Schema
sourceTraceIdstring
The trace ID from the source
Example:
30df5d6e-53e1-4e76-8a0e-89d08f386b00
tenorstring
Tenor to search for rates
Possible values: [TODAY
]
Example:
TODAY
validUntilstring
The rates are valid until this time
Example:
2023-04-24T00:00:00.000000Z
rates object[]
{
"sourceTraceId": "30df5d6e-53e1-4e76-8a0e-89d08f386b00",
"tenor": "TODAY",
"validUntil": "2023-04-24T00:00:00.000000Z",
"rates": [
{
"ask": "1.370304",
"bid": "1.349266",
"currencyPair": "USDSGD"
}
]
}
Authorization: http
name: authorizationtype: httpscheme: bearerdescription: Set Your Secret API KeybearerFormat: SECRET_API_KEY
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://api.tryacme.com/v1/forex/rate-lookup' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
"tenor": "TODAY",
"currencyPairs": [
"USDSGD",
"EURUSD"
]
}'