Skip to main content

Public Securities Recorder

Request

ENDPOINT
/trade_treasury/public/fund_class/{fund_class_key}/operation
METHOD
POST

Path params

ParameterTypeDescription
fund_class_keystringUnique identifier for the fund.
Request Body
{
"external_id": "a3f1c2e4-7b8d-4e6f-9a0b-1c2d3e4f5a6b",
"operation_date": "2025-12-04",
"payment_date": "2025-12-04",
"operation_part": "assignee",
"operation_type": "outright_operation",
"counterparty": {
"iselic_number": "20824264",
"selic_account_number": "123456789",
"document_number": "20.824.264/0001-77"
},
"treasury_type": "ntn_b",
"unit_price": 1234.567891,
"units": 10,
"maturity_date": "2035-05-15"
}

Body attributes

FieldTypeRequiredDescription
external_idstringoptionalExternal identifier for idempotency (UUID). Auto-generated if not provided. Maximum 36 characters.
operation_datestring (date)requiredOperation date in YYYY-MM-DD format. Must be a business day and equal to the fund's accounting_date.
payment_datestring (date)requiredSettlement date in YYYY-MM-DD format. Must be >= operation_date. For non-term operations (outright_operation, buyback_operation), must equal operation_date.
operation_partstringrequiredFund's role: assignee (buyer) or assignor (seller).
operation_typestringrequiredOperation type: outright_operation, buyback_operation. buyback_operation requires operation_part == "assignee".
counterpartyobjectrequiredCounterparty data. See object below.
treasury_typestringrequiredSecurity type: lft, ltn, ntn_b, or ntn_f.
unit_pricenumberrequiredUnit price. Accepts any decimal precision; the server truncates down based on type: buyback_operation → 8 decimal places; others → 6 decimal places.
unitsintegerrequiredNumber of securities (positive integer).
maturity_datestring (date)requiredSecurity maturity date (YYYY-MM-DD). Must be strictly after operation_date.
yearly_negotiated_ratenumberconditionalAnnual negotiated rate (%). Required for buyback_operation.
return_datestring (date)conditionalReturn date (YYYY-MM-DD). Required for buyback_operation. Must be > operation_date.

counterparty object

FieldTypeRequiredDescription
iselic_numberstringrequiredCounterparty iSELIC number (8 digits).
selic_account_numberstringrequiredCounterparty SELIC account number (9 digits).
document_numberstringrequiredCounterparty CNPJ with punctuation (format XX.XXX.XXX/XXXX-XX).

Response

STATUS
201
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": "EXAMPLE FUND DTVM",
"document_number": "81.692.758/0001-30",
"accounting_date": "2025-12-04"
},
"status": "pending_manager_approval",
"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": "20824264",
"document_number": "20.824.264/0001-77",
"selic_account_number": "123456789"
},
"isin_code": "BRSTNCNTB633",
"issue_date": "2025-11-04",
"operation_data": {}
}

Response attributes

FieldTypeDescription
operation_keystringUnique operation identifier generated by QI Tech (UUID).
external_idstringExternal identifier provided or auto-generated.
fund_classobjectData of the fund associated with the operation.
statusstringInitial operation status.
operation_partstringassignee (buyer) or assignor (seller).
operation_typeobject{ enumerator, code } — operation type and corresponding SELIC code.
treasuryobject{ enumerator, code } — security type and corresponding SELIC code.
operation_datestringOperation date (YYYY-MM-DD).
payment_datestringSettlement date (YYYY-MM-DD).
maturity_datestringSecurity maturity date (YYYY-MM-DD).
total_operation_valuedecimalTotal operation value (units × unit_price).
unitsintegerNumber of securities.
unit_pricenumberUnit price of the security.
counterpartyobjectCounterparty data (iselic_number, document_number, selic_account_number).
isin_codestringSecurity ISIN code.
issue_datestringSecurity issue date (YYYY-MM-DD).
operation_dataobjectAdditional internal operation metadata.