Request an FX rate
This endpoint allows users to request an FX (foreign exchange) rate based on provided parameters such as currency pair and amounts.
- application/json
Request Body required
- currencyFrom stringnull required
- currencyTo stringnull required
- amountFrom stringnull
Possible values: Value must match regular expression
^(\d+.\d\d)$
- amountTo stringnull
Possible values: Value must match regular expression
^(\d+.\d\d)$
- valueDate date-time required
Responses
- 201
- 400
- 401
- 403
- 422
Created - The request was processed successfully.
- application/json
- Schema
- Example (from schema)
Schema
- id string
- currencyFrom stringnull
- currencyTo stringnull
- amountFrom stringnull
Possible values: Value must match regular expression
^(\d+.\d\d)$
- amountTo stringnull
Possible values: Value must match regular expression
^(\d+.\d\d)$
- valueDate date-time
- spotRate stringnull
- platformRate stringnull
- forwardPoints stringnull
{
"id": 1,
"currencyFrom": "CHF",
"currencyTo": "EUR",
"amountFrom": "100.00",
"amountTo": "105.53",
"valueDate": "2023-01-01T00:00:00+00:00",
"spotRate": "1.0553",
"platformRate": "1.0553",
"forwardPoints": "1.0553"
}
Bad Request -- Your request is invalid.
Unauthorised -- Your access token is wrong.
- application/json
- Schema
- Example (from schema)
Schema
- type string
- title string
- detail string
{
"type": "string",
"title": "string",
"detail": "string"
}
Forbidden -- Access to the requested resource or action is forbidden.
- application/json
- Schema
- Example (from schema)
Schema
- type string
- title string
- detail string
{
"type": "string",
"title": "string",
"detail": "string"
}
Unprocessable Content -- We could not process your request due to invalid data provided.
Loading...