公共债券交易单
请求
ENDPOINT
/trade_treasury/public/fund_class/{fund_class_key}/operationMETHOD
POST路径参数
| 参数 | 类型 | 描述 |
|---|---|---|
fund_class_key | string | 基金的唯一标识符。 |
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"
}
请求体属性
| 字段 | 类型 | 必填性 | 描述 |
|---|---|---|---|
external_id | string | 可选 | 用于幂等性的外部标识符(UUID)。若未提供则自动生成。最多36个字符。 |
operation_date | string (date) | 必填 | 操作日期,格式 YYYY-MM-DD。必须为工作日且等于基金的 accounting_date。 |
payment_date | string (date) | 必填 | 结算日期,格式 YYYY-MM-DD。必须 >= operation_date。非定期操作(outright_operation、buyback_operation)必须等于 operation_date。 |
operation_part | string | 必填 | 基金角色:assignee(买方)或 assignor(卖方)。 |
operation_type | string | 必填 | 操作类型:outright_operation、buyback_operation。buyback_operation 要求 operation_part == "assignee"。 |
counterparty | object | 必填 | 交易对手数据。见下方对象说明。 |
treasury_type | string | 必填 | 债券类型:lft、ltn、ntn_b 或 ntn_f。 |
unit_price | number | 必填 | 债券单价。接受任意精度;服务器将按类型 向下截断:buyback_operation → 8位小数;其他 → 6位小数。 |
units | integer | 必填 | 债券数量(正整数)。 |
maturity_date | string (date) | 必填 | 债券到期日(YYYY-MM-DD)。必须严格晚于 operation_date。 |
yearly_negotiated_rate | number | 条件性 | 年化协商利率(%)。buyback_operation 必填。 |
return_date | string (date) | 条件性 | 返还日期(YYYY-MM-DD)。buyback_operation 必填。必须 > operation_date。 |
counterparty 对象
| 字段 | 类型 | 必填性 | 描述 |
|---|---|---|---|
iselic_number | string | 必填 | 交易对手的iSELIC编号(8位数字)。 |
selic_account_number | string | 必 填 | 交易对手的SELIC账户号码(9位数字)。 |
document_number | string | 必填 | 带标点的交易对手CNPJ(格式 XX.XXX.XXX/XXXX-XX)。 |
响应
STATUS
201Response 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": {}
}
响应属性
| 字段 | 类型 | 描述 |
|---|---|---|
operation_key | string | QI Tech生成的操作唯一标识符(UUID)。 |
external_id | string | 请求中提供或自动生成的外部标识符。 |
fund_class | object | 与操作关联的基金数据。 |
status | string | 操作的初始状态。 |
operation_part | string | assignee(买方)或 assignor(卖方)。 |
operation_type | object | { enumerator, code } — 操作类型及对应SELIC代码。 |
treasury | object | { enumerator, code } — 债券类型及对应SELIC代码。 |
operation_date | string | 操作日期(YYYY-MM-DD)。 |
payment_date | string | 结算日期(YYYY-MM-DD)。 |
maturity_date | string | 债券到期日(YYYY-MM-DD)。 |
total_operation_value | decimal | 操作总价值(数量 × 单价)。 |
units | integer | 债券数量。 |
unit_price | number | 债券单价。 |
counterparty | object | 交易对手数据(iselic_number、document_number、selic_account_number)。 |
isin_code | string | 债券ISIN代码。 |
issue_date | string | 债券发行日期(YYYY-MM-DD)。 |
operation_data | object | 操作的附加内部元数据。 |