Forex API

Retrieve the real-time currency exchange rate used in conversions. The rate used is approximately 2-4% above the daily mid-market rate. Endpoint is only accessible if multi-currency transactions are enabled.

Attributes

Name Type Description
object string

The string forex.

location string

API path to retrieve the current forex object.

from string

Base currency for rate request as three-letter ISO 4217 code.

rate float

Current exchange rate for currency pair.

to string

Quote currency for rate request as three-letter ISO 4217 code.

Example

  • JSON Response

Retrieve the forex

- GET https://api.omise.co/forex/{currency}

Returns the current foreign exchange rate. This endpoint is only accessible if multi-currency transactions are enabled.

Example

  • Retrieve the USD/THB exchange rate

Omise uses cookies to improve your overall site experience and collect information on your visits and browsing behavior. By continuing to browse our website, you agree to our Privacy Policy. Learn more