Accept quote
POST/v1/quotes/:batch_id/quote/:quote_id/accept
Accept an individual rate quote, within a batch. All other rate quotes will automatically be rejected.
Request
Path Parameters
- application/json
Body
The client's unique identifier for the order.
Order notes.
Possible values: <= 256 characters
My order notesResponses
- 200
- 401
- 403
- 404
- 409
- 500
Quote successfully accepted.
- application/json
- Schema
- Example (from schema)
Schema
quote
object
A Quote may result from a successful quotes request.
The unique identifier for the quote.
The source's unique identifier for the quote.
The unique identifier fo the client.
The rate for the quote.
The source of the quote.
The quote expiry in milliseconds.
Quote date.
Rejection status.
Possible values: [pending, accepted, rejected]
pendingtrade
object
A Trade may result from a successfully executed order or quote.
Id for the trade.
Source order id for the trade.
Source execution id for the trade.
Source for the exected trade.
The currency that you bought.
The currency that you sold.
The amount that you bought.
The anount that you sold.
The rate for the trade.
Trade date.
{
"quote": {
"id": "string",
"source_id": "string",
"client_id": "string",
"rate": 0,
"source": "string",
"expires": 0,
"quote_date": "2024-07-29T15:51:28.071Z",
"status": "pending"
},
"trade": {
"id": "string",
"source_order_id": "string",
"source_execution_id": "string",
"source": "string",
"buy_currency": "string",
"sell_currency": "string",
"buy_amount": 0,
"sell_amount": 0,
"price": 0,
"trade_date": "2024-07-29T15:51:28.071Z"
}
}
Authentication token is required for this action that was not provided, expired or invalid.
- application/json
- Schema
- Example (from schema)
Schema
Links error message to a specific event in the system.
The code for the error that has occurred.
The text for the error that has occurred.
An optional parameter name related to the error. Usually present for input validation errors.
An optional parameter value related to the error. Set to input value of named parameter.
{
"errorId": "string",
"code": "string",
"text": "string",
"parameter_name": "string",
"parameter_value": {}
}
Not authorized for the requested action.
- application/json
- Schema
- Example (from schema)
Schema
Links error message to a specific event in the system.
The code for the error that has occurred.
The text for the error that has occurred.
An optional parameter name related to the error. Usually present for input validation errors.
An optional parameter value related to the error. Set to input value of named parameter.
{
"errorId": "string",
"code": "string",
"text": "string",
"parameter_name": "string",
"parameter_value": {}
}
The requested endpoint or entity does not exist.
- application/json
- Schema
- Example (from schema)
Schema
Links error message to a specific event in the system.
The code for the error that has occurred.
The text for the error that has occurred.
An optional parameter name related to the error. Usually present for input validation errors.
An optional parameter value related to the error. Set to input value of named parameter.
{
"errorId": "string",
"code": "string",
"text": "string",
"parameter_name": "string",
"parameter_value": {}
}
Action could not be completed because of conflict.
- application/json
- Schema
- Example (from schema)
Schema
Links error message to a specific event in the system.
The code for the error that has occurred.
The text for the error that has occurred.
An optional parameter name related to the error. Usually present for input validation errors.
An optional parameter value related to the error. Set to input value of named parameter.
{
"errorId": "string",
"code": "string",
"text": "string",
"parameter_name": "string",
"parameter_value": {}
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
Links error message to a specific event in the system.
The code for the error that has occurred.
The text for the error that has occurred.
An optional parameter name related to the error. Usually present for input validation errors.
An optional parameter value related to the error. Set to input value of named parameter.
{
"errorId": "string",
"code": "string",
"text": "string",
"parameter_name": "string",
"parameter_value": {}
}