Opportunity report
POST/v1/reports/opportunity_report
Generate an opportunity report comparing execution performance against our calculated averages.
Request
- application/json
Body
array
required
Array [
]
Trade ID for further trader search within the report.
ABCD1234Date and time when this trade took place.
The currency that you want to buy.
Possible values: >= 3 characters and <= 3 characters
BRLThe currency that you want to sell.
Possible values: >= 3 characters and <= 3 characters
USDThe amount of base currency bought or sold
5000100.00The tenor value for the quote e.g. SPOT, CASH (T+0), NEXT DAY (T+1)
Possible values: [SPOT, TOD, TOM]
SPOTSPOTResponses
- 200
- 401
- 500
Your request has been successfully processed.
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Trade ID for further trader search within the report.
ABCD1234Date and time when this trade took place.
The currency that you want to buy.
Possible values: >= 3 characters and <= 3 characters
BRLThe currency that you want to sell.
Possible values: >= 3 characters and <= 3 characters
USDThe amount of base currency bought or sold
5000100.00100.0099.00CABall_rates
object[]
99.00CAB[
{
"trade_id": "ABCD1234",
"timestamp": "2024-07-29T15:51:28.071Z",
"buy_currency": "BRL",
"sell_currency": "USD",
"base_amount": "5000",
"rate": "100.00",
"traded_amount": "100.00",
"abx_best_rate": "99.00",
"best_rate_source": "CAB",
"all_rates": [
{
"rate": "99.00",
"source": "CAB"
}
]
}
]
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": {}
}
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": {}
}