Make an order
POSThttp://localhost:8080/api/v1/orders/exchange/confirm
Create an FX order based on the provided request.
Request
Header Parameters
ApiKey stringrequired
AccountId stringrequired
- application/json
Body
required
quoteId uuidrequired
The unique ID of the quote for the exchange
externalId stringrequired
A unique identifier for this request, generated by the client
Responses
- 201
- 400
- 401
- 403
- 404
- 405
- 415
- 429
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
id uuidrequired
Unique ID of the exchange
shortId stringrequired
Short ID of the exchange
externalId stringrequired
External ID of the exchange
rate objectrequired
from objectrequired
to objectrequired
settlementDate daterequired
Settlement date of the exchange
exchangeStatus objectrequired
createdAt date-timerequired
Creation time of the exchange
completedAt date-time
Completion time of the exchange
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"shortId": "TR123",
"externalId": "EX123",
"rate": {
"price": 0,
"currencyPair": "string",
"type": "BID"
},
"from": {
"amount": 100,
"currency": "USD"
},
"to": {
"amount": 100,
"currency": "USD"
},
"settlementDate": "2023-12-31",
"exchangeStatus": {
"state": "SUBMITTED",
"reason": "REJECTED_BREACHES_LIMIT",
"complete": false
},
"createdAt": "2023-01-01T00:00:00Z",
"completedAt": "2023-01-02T00:00:00Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Method Not Allowed
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Unsupported Media Type
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
type uri
title string
status int32
detail string
instance uri
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'http://localhost:8080/api/v1/orders/exchange/confirm' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"quoteId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"externalId": "clientGeneratedId"
}'
ResponseClear