Forex API

Forex API ใช้เพื่อเรียกดูอัตราแลกเปลี่ยนที่ระบบใช้ในการคำนวณยอดสำหรับรายการรับชำระเงินในสกุลต่างประเทศ อัตราแลกเปลี่ยนที่ใช้มีการอัปเดตแบบเรียลไทม์ ซึ่งจะสูงกว่าราคากลางของตลาด (mid-market rate) ในแต่ละวันประมาณ 2-4%

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

เว็ปไซต์นี้มีการใช้คุกกี้เพื่อวิเคราะห์การใช้และปรับการใช้งานให้เหมาะกับท่าน เมื่อกดยอมรับหรือยังคงเข้าชมเว็บไซต์ต่อ เราถือว่าท่านยินยอมในการใช้งานคุกกี้ของเว็บไซต์ อ่านนโยบายความเป็นส่วนตัว