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.

livemode boolean

Whether this is a live (true) or test (false) forex object.

location string

API path to retrieve the current forex object.

base string

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

quote string

Quote currency for rate request as three-letter ISO 4217 code. This is the funding currency for account (i.e. for Thailand, THB)

rate float

Current exchange rate for currency pair.

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