Resource Methods

GET {{baseUrl}}/v1/rates/daily?action_type=<string>&amount=<number>&buy_currency=<string>&date=<date>&fixed_side=<string>&sell_currency=<string>

Retrieve a daily rate for conversion of currencies in payments and payouts. Rapyd uses a snapshot of daily foreign exchange rates fetched at 9 PM UTC. The rate returned includes the FX markup fees.

Request Params

KeyDatatypeRequiredDescription
action_typestring(Required) Determines the type of transaction that the currency exchange applies to. One of the following - payment, payout
amountstringAmount of the currency exchange transaction, in units of the fixed-side currency in Decimal.
buy_currencystring(Required) Defines the currency purchased in the currency exchange transaction. Three-letter ISO 4217 code in Uppercase.
datestringThe date when the rate is applicable. Today or earlier. Format YYYY-MM-DD
fixed_sidestringIndicates whether the rate is fixed for the currency defined by buy_currency or sell_currency. One of the following - buy, sell.
sell_currencystring(Required) Defines the currency sold in the currency exchange transaction. Three-letter ISO 4217 code in Uppercase.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;data&quot;:{&quot;action_type&quot;:&quot;\u003cstring\u003e&quot;,&quot;buy_amount&quot;:&quot;\u003cnumber\u003e&quot;,&quot;buy_currency&quot;:&quot;\u003cstring\u003e&quot;,&quot;date&quot;:&quot;\u003cdate\u003e&quot;,&quot;fixed_side&quot;:&quot;\u003cstring\u003e&quot;,&quot;rate&quot;:&quot;\u003cnumber\u003e&quot;,&quot;sell_amount&quot;:&quot;\u003cfloat\u003e&quot;,&quot;sell_currency&quot;:&quot;\u003cstring\u003e&quot;},&quot;status&quot;:{&quot;error_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;message&quot;:&quot;\u003cstring\u003e&quot;,&quot;operation_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;response_code&quot;:&quot;\u003cstring\u003e&quot;,&quot;status&quot;:&quot;\u003cstring\u003e&quot;}}