Skip to main content

Look up forex rates

POST 

https://api.tryacme.com/v1/forex/rate-lookup

Look up forex rates.

Request

Body

    tenorstring

    The tenor to search for rate.

    Possible values: [TODAY]

    Example: TODAY
    currencyPairsstring[]

    the currency pairs

    Example: ["USDSGD","EURUSD"]

Responses

OK

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[]

    An array of rates, one for each currency pair

  • Array [
  • askstring

    The source is willing to sell one unit of the base currency for this amount of the quote currency.

    Example: 1.370304
    bidstring

    The source is willing to buy one unit of the base currency for this amount of the quote currency.

    Example: 1.349266
    currencyPairstring

    A currency pair is two currency codes. The first is known as the base currency and the second as the quote currency.

    Example: USDSGD
  • ]

Authorization: http

name: authorizationtype: httpscheme: bearerdescription: Set Your Secret API KeybearerFormat: SECRET_API_KEY
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"
]
}'
Request Collapse all
Base URL
https://api.tryacme.com/v1
Auth
Body
{
  "tenor": "TODAY",
  "currencyPairs": [
    "USDSGD",
    "EURUSD"
  ]
}