Create a FX transaction
Creates a new FX transaction using the specified currency pair, value date, and either amountFrom or amountTo. Only one of the two amounts may be provided per request.
- application/json
Request Body required
- currencyFrom string required
- currencyTo string required
- amountTo stringnull
Possible values: Value must match regular expression
^(\d+.\d\d)$
- amountFrom 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 integer
- currencyFrom string
- currencyTo string
- amountFrom string
- amountTo string
- direction string
Possible values: [
sell
,buy
] - dealDate string
- valueDate string
- type string
Possible values: [
spot
,forward
] - spotRate string
- forwardPoints stringnull
- platformRate string
- status string
Possible values: [
not hedged
,hedged
,error
,to-hedge
,hedging
] - fromAutomation boolean
{
"id": 1,
"currencyFrom": "CHF",
"currencyTo": "EUR",
"amountFrom": "100.00",
"amountTo": "105.53",
"direction": "sell",
"dealDate": "2023-01-01T00:00:00+00:00",
"valueDate": "2023-01-01T00:00:00+00:00",
"type": "forward",
"spotRate": "1.0553",
"forwardPoints": "1.0553",
"platformRate": "1.0553",
"status": "hedged",
"fromAutomation": true
}
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...