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
Key | Datatype | Required | Description |
---|---|---|---|
action_type | string | (Required) Determines the type of transaction that the currency exchange applies to. One of the following - payment, payout | |
amount | string | Amount of the currency exchange transaction, in units of the fixed-side currency in Decimal. | |
buy_currency | string | (Required) Defines the currency purchased in the currency exchange transaction. Three-letter ISO 4217 code in Uppercase. | |
date | string | The date when the rate is applicable. Today or earlier. Format YYYY-MM-DD | |
fixed_side | string | Indicates whether the rate is fixed for the currency defined by buy_currency or sell_currency. One of the following - buy, sell. | |
sell_currency | string | (Required) Defines the currency sold in the currency exchange transaction. Three-letter ISO 4217 code in Uppercase. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"data":{"action_type":"\u003cstring\u003e","buy_amount":"\u003cnumber\u003e","buy_currency":"\u003cstring\u003e","date":"\u003cdate\u003e","fixed_side":"\u003cstring\u003e","rate":"\u003cnumber\u003e","sell_amount":"\u003cfloat\u003e","sell_currency":"\u003cstring\u003e"},"status":{"error_code":"\u003cstring\u003e","message":"\u003cstring\u003e","operation_id":"\u003cstring\u003e","response_code":"\u003cstring\u003e","status":"\u003cstring\u003e"}}