投资组合 - 获取投资组合
投资组合列表
分页列出某一基金类别的投资组合,按日期从新到旧排列。
适用范围
| 角色 | 主机 | 所需权限 |
|---|---|---|
| 管理人 | manager-api | 读取 |
| 顾问 | consultant-api | View Compositions |
各主机的 Base URL:环境(主机)。
Request
ENDPOINT
/composition/fund_class/FUND_CLASS_KEY/compositionsMÉTODO
GETQuery Params
| 参数 | 描述 |
|---|---|
not_status | 排除处于所指定状态的投资组合。 |
status | 仅返回处于所指定状态的投资组合。 |
reference_date | 查询投资组合的参考日期,格式必须为 YYYY-MM-DD。 |
type | 投资组合类型:pre_quota、final_quota 或 opening_quota。 |
start_date | 查询区间的起始日期。如提供了 end_date 则必填。格式:YYYY-MM-DD。 |
end_date | 查询区间的结束日期。如提供了 start_date 则必填。格式:YYYY-MM-DD。 |
page | 要获取的页码,从 0 开始。默认:0。 |
limit | 每页条目数。默认:20;最大:100。 |
status 和 not_status 可接受多个值(?status=pending_confirmation&status=confirmed)。投资组合可能的状态有 created、pending_processing、pending_validation、pending_variation_reason、pending_quota_performance、pending_confirmation、confirmed、reproved、reproved_by_agent 和 reprocessed。等待您审批的投资组合处于 pending_confirmation。
注意
按日期筛选有两种方式:
- 指定日期:发送 query param
reference_date。 - 时间段:同时发送 query param
start_date和end_date。
Response Body
{
"data": [
{
"composition_key": "f2208257-1489-4937-8862-031bca34016f",
"status": "confirmed",
"composition_type": "pre_quota",
"composition_date": "2024-11-13",
"fund_class": {
"name": "A SAMPLE CLASS",
"fund_class_key": "5dac941c-c779-4049-a4ee-7cee583b6860",
"document_number": "11.222.333/0001-81"
}
},
{
"composition_key": "f2208257-1489-4937-8862-031bca34016f",
"status": "confirmed",
"composition_type": "final_quota",
"composition_date": "2024-11-13",
"fund_class": {
"name": "A SAMPLE CLASS",
"fund_class_key": "5dac941c-c779-4049-a4ee-7cee583b6860",
"document_number": "11.222.333/0001-81"
}
}
],
"limit": 20,
"page": 0,
"is_last_page": true
}
分页对象
| 字段 | 类型 | 描述 |
|---|---|---|
data | array | Composition 对象列表 |
limit | int | 每页获取的对象数量上限 |
page | int | 所获取的页码 |
is_last_page | boolean | 指示所获取的页是否为最后一页 |
Composition
| 字段 | 类型 | 描述 |
|---|---|---|
composition_key | string | 投资组合的唯一标识 key |
status | string | 该投资组合的状态 |
composition_type | string | 该投资组合的类型,pre_quota/final_quota |
composition_date | string | 投资组合的参考日期 |
fund_class | object | Fund Class 对象 |
Fund Class
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
name | string | 基金类别名称 | 最多 255 |
fund_class_key | string | 基金类别的唯一标识 key | 36 |
document_number | string | 基金类别的 CNPJ | - |
投资组合详情
返回完整的投资组合:发行系列、资产、应收、应付、账户以及状态历史。
适用范围
| 角色 | 主机 | 所需权限 |
|---|---|---|
| 管理人 | manager-api | 读取 |
| 顾问 | consultant-api | View Compositions |
各主机的 Base URL:环境(主机)。
Request
ENDPOINT
/composition/fund_class/FUND_CLASS_KEY/composition/COMPOSITION_KEYMÉTODO
GETResponse Body
{
"composition_key": "f2208257-1489-4937-8862-031bca34016f",
"status": "confirmed",
"composition_type": "pre_quota",
"composition_date": "2024-12-02",
"fund_class": {
"name": "A SAMPLE CLASS",
"fund_class_key": "5dac941c-c779-4049-a4ee-7cee583b6860",
"document_number": "11.222.333/0001-81"
},
"issuance_series": [
{
"issuance_serie_key": "840e01e9-0df8-4719-83c4-f10b839d8384",
"name": "SUBORDINADA - 1",
"gross_net_worth": 1891397.29,
"net_net_worth": 1891397.29,
"gross_quota_value": 1.76821576,
"net_quota_value": 1.76821576,
"number_of_quotas": 1069664.309518427,
"applied_value": 0.0,
"applied_quotas": 0.0,
"redeemed_value": 0.0,
"redeemed_quotas": 0.0,
"amortized_value": 0.0,
"tax_anticipated_value": 0.0,
"tax_anticipated_quotas": 0.0,
"profitabilities": [
{
"reference_date": "2024-11-29",
"quota_value": 1.76065188,
"di_benchmark_quota_value": 1.7613906,
"quota_percentage": 100.43,
"di_benchmark_percentage": 100.43,
"type": "monthly"
},
{
"reference_date": "2024-11-25",
"quota_value": 1.7568068,
"di_benchmark_quota_value": 1.76049545,
"quota_percentage": 99.79,
"di_benchmark_percentage": 100.0,
"type": "monthly"
},
{
"reference_date": "2024-11-01",
"quota_value": 1.74121452,
"di_benchmark_quota_value": 1.75502225,
"quota_percentage": 99.21,
"di_benchmark_percentage": 100.0,
"type": "monthly"
},
{
"reference_date": "2024-10-03",
"quota_value": 1.72167143,
"di_benchmark_quota_value": 1.75002091,
"quota_percentage": 98.38,
"di_benchmark_percentage": 100.0,
"type": "monthly"
},
{
"reference_date": "2024-09-03",
"quota_value": 1.70128747,
"di_benchmark_quota_value": 1.74445962,
"quota_percentage": 97.52,
"di_benchmark_percentage": 100.0,
"type": "monthly"
},
{
"reference_date": "2024-06-05",
"quota_value": 1.63380383,
"di_benchmark_quota_value": 1.7178922,
"quota_percentage": 95.1,
"di_benchmark_percentage": 100.0,
"type": "monthly"
},
{
"reference_date": "2023-12-08",
"quota_value": 1.52421994,
"di_benchmark_quota_value": 1.68553599,
"quota_percentage": 90.43,
"di_benchmark_percentage": 100.0,
"type": "daily"
}
]
}
],
"assets": [
{
"asset_key": "34f42521-f27f-424a-958f-8b53f15cc80d",
"asset_type": "fixed_income_fund_quota",
"purchase_date": "2024-11-27",
"total_purchase_value": 1009320,
"bad_debt_percentage": 0,
"bad_debt_value": 0,
"overdue_accounting_value": 0,
"current_accounting_value": 1234335,
"current_fair_accounting_value": 1234335
}
],
"consolidated_assets": [
{
"asset_type": "ccb",
"asset_category": "credit",
"total_units": 175623,
"bad_debt_value": 0,
"overdue_accounting_value": 75642,
"current_accounting_value": 187762590,
"current_fair_accounting_value": 187762590,
"post_maturity_interest_value": 0,
"delay_interest_value": 0,
"delay_fine_value": 0
}
],
"receivables": [
{
"origin_key": "a60f9226-edac-488e-9a58-6205a334e6ba",
"origin_type": "expense",
"description": "Taxa CVM - 2024",
"total_value": 711515,
"recognized_value": 654125,
"start_date": "2024-01-09",
"end_date": "2024-12-31",
"payment_date": "2024-05-10"
}
],
"payables": [
{
"origin_key": "19b83b17-d36c-4edd-97fe-99af6a0a4a63",
"origin_type": "expense",
"description": "Taxa de Gestão - 2024/12",
"total_value": 14586,
"recognized_value": 14586,
"start_date": "2024-12-02",
"end_date": "2024-12-31",
"payment_date": "2025-01-08"
}
],
"cash_accounts": [
{
"account_key": "a41e4fa8-6950-485e-9a5b-70f21cc6774a",
"balance": 100000,
"unconcilied_cash_in": 0,
"unconcilied_cash_out": 0,
"account_branch": "0001",
"account_digit": "1",
"account_number": "372832",
"accounting_identification": 1,
"financial_institution": {
"code": "329",
"ispb": "32402502",
"name": "QI Sociedade de Crédito Direto"
}
}
]
}
完整 Composition
| 字段 | 类型 | 描述 |
|---|---|---|
composition_key | string | 投资组合的唯一标识 key |
status | string | 该投资组合的状态 |
composition_type | string | 该投资组合的类型,pre_quota/final_quota |
composition_date | string | 投资组合的参考日期 |
fund_class | object | Fund Class 对象 |
issuance_series | array | Issuance Series 对象列表 |
assets | array | Assets 对象列表 |
consolidated_assets | array | Consolidated Assets 对象列表 |
receivables | array | Receivables 对象列表 |
payables | array | Payables 对象列表 |
cash_accounts | array | Cash Accounts 对象列表 |
status_events | array | 投资组合的状态历史。见 Status Events |
Issuance Serie
| 字段 | 类型 | 描述 |
|---|---|---|
issuance_serie_key | string | 发行系列的唯一标识 key |
name | string | 该系列的名称 |
gross_net_worth | float | 该系列的总净资产(PL Bruto) |
net_net_worth | float | 该系列的净资产净额(PL Líquido) |
gross_quota_value | float |