Skip to main content

Public Security Query

Returns a public securities ticket by its operation_key, with the status history. Use it to track the approval, the registration in SELIC and the settlement of the operation.

Available on
ProfileHostRequired permission
Managermanager-apiRead

Base URL for each host: Environments (Hosts).

Request​

ENDPOINT
/trade_treasury/fund_class/{fund_class_key}/operation/{operation_key}
METHOD
GET

Path params​

ParameterTypeDescription
fund_class_keystringUnique identifier of the fund.
operation_keystringOperation identifier returned at the ticket creation.

Response​

STATUS
200
Response Body
{
"operation_key": "85cfd700-54a4-40f4-bc61-2ece992864ea",
"external_id": "a3f1c2e4-7b8d-4e6f-9a0b-1c2d3e4f5a6b",
"fund_class": {
"fund_class_key": "5122bf31-660a-4f61-a447-38e5e17162dd",
"manager_key": "bea7581a-f901-4995-a486-46e18ae61aab",
"name": "FUNDO EXEMPLO DTVM",
"document_number": "11.222.333/0001-81",
"accounting_date": "2025-12-04",
"internal_transfer_for_main_account": false
},
"status": "pending_registration",
"operation_part": "assignee",
"operation_type": {
"enumerator": "outright_operation",
"code": 1052
},
"treasury": {
"enumerator": "ntn_b",
"code": 760199
},
"operation_date": "2025-12-04",
"payment_date": "2025-12-04",
"maturity_date": "2035-05-15",
"total_operation_value": 12345.67,
"units": 10,
"unit_price": 1234.567891,
"counterparty": {
"iselic_number": "33444555",
"document_number": "33.444.555/0001-81",
"selic_account_number": "123456789"
},
"isin_code": "BRSTNCNTB633",
"issue_date": "2025-11-04",
"operation_data": {},
"status_events": [
{
"status": "pending_manager_approval",
"metadata": {},
"datetime": "2025-12-04 13:10:00.000000"
},
{
"status": "pending_registration",
"metadata": {},
"datetime": "2025-12-04 13:25:00.000000"
}
]
}

Response attributes​

The same fields as the ticket creation, plus:

FieldTypeDescription
statusstringCurrent status. See the operation statuses.
status_eventsarrayStatus history, with the status, metadata and datetime of each change.
selic_operation_id, selic_specification_id, selic_command_numberstringIdentifiers in SELIC. Present after registration.
yearly_negotiated_rate, return_date, return_unit_price, total_return_valuenumber / stringReturn data. Present in buyback_operation.
time_exception_reasonstringTime justification, when there is one.
time_exception_released_atstringDate and time when QI Tech released the ticket outside the cut-off time.

Errors​

StatusCodeWhen it happens
404TTR000013There is no operation with this operation_key in the fund.
404TTR000004The fund_class_key does not exist.
403TTR000040The fund does not belong to your manager.

Authentication, permission and host errors: see API Errors.