About this endpoint
What it does
Converts a currency pair for a given date by taking a source currency, a target currency, and an optional date, then returning the conversion result in the response body.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| date | String | No | Date in YYYY-MM-DD format. Defaults to today when omitted or blank. |
| source | String | Yes | Source currency code. |
| target | String | Yes | Target currency code. |
Response
Returns a JSON object with a data field. The data value can be either a Number conversion result or a Boolean value, depending on the response variant declared in the schema. Success response schema: 200.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Number / Boolean | No | Conversion result or boolean value, as declared by the response schema. |