投资组合 - 获取
投资组合列表
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。 |
start_date | 查询范围的开始日期,若提供 end_date 则必填。格式:YYYY-MM-DD。 |
end_date | 查询范围的结束日期,若提供 start_date 则必填。格式:YYYY-MM-DD。 |
注意
按日期过滤有两种方式:
- 通过 query param 字段 reference_date 查询特定日期。
- 通过 query param 字段 start_date 和 end_date 查询时间段。
Response Body
{
"data": [
{
"composition_key": "f2208257-1489-4937-8862-031bca34016f",
"status": "confirmed",
"type": "pre_quota",
"composition_date": "2024-11-13",
"fund_class": {
"name": "A SAMPLE CLASS",
"fund_class_key": "5dac941c-c779-4049-a4ee-7cee583b6860",
"document_number": "18.687.469/0001-06"
}
},
{
"composition_key": "f2208257-1489-4937-8862-031bca34016f",
"status": "confirmed",
"type": "final_quota",
"composition_date": "2024-11-13",
"fund_class": {
"name": "A SAMPLE CLASS",
"fund_class_key": "5dac941c-c779-4049-a4ee-7cee583b6860",
"document_number": "18.687.469/0001-06"
}
}
],
"limit": 50,
"page": 0,
"is_last_page": true
}
分页对象
| 字段 | 类型 | 描述 |
|---|---|---|
data | array | Composition 对象列表 |
limit | int | 每页返回的对象数量上限 |
page | int | 当前返回的页码 |
is_last_page | boolean | 表示当前页是否为最后一页 |
Composition
| 字段 | 类型 | 描述 |
|---|---|---|
composition_key | string | 投资组合的唯一标识键 |
status | string | 该投资组合的状态 |
type | string | 该投资组合的类型,pre_quota/final_quota |
composition_date | string | 投资组合的参考日期 |
fund_class | object | Fund Class 对象 |
Fund Class
| 字段 | 类型 | 描述 | 字符数 |
|---|---|---|---|
name | string | 基金类别名称 | 最多 255 |
fund_class_key | string | 基金类别的唯一标识键 | 36 |
document_number | string | 基金类别的 CNPJ | - |