基金持倉
獲取持有指定證券的基金列表,含持股數量和持股比例。
SDK Links
Python | longport.openapi.FundamentalContext.fund_holdings |
Rust | longport::fundamental::FundamentalContext#fund_holdings |
Go | FundamentalContext.FundHoldings |
Node.js | FundamentalContext#fundHoldings |
Parameters
SDK 方法參數。
| Name | Type | Required | Description |
|---|---|---|---|
| symbol | string | 是 | 證券代碼,例如 AAPL.US |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"lists": [
{
"symbol": "TSLT.US",
"code": "TSLT",
"name": "2x Long TSLA ETF",
"position_ratio": "101.02",
"report_date": "2026-05-07",
"currency": "USD"
}
]
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | 成功 | FundHoldersResponse |
| 400 | 請求錯誤 | None |
Schemas
FundHoldersResponse
| Name | Type | Required | Description |
|---|---|---|---|
| lists | object[] | 是 | 基金持倉列表, |
| ∟ symbol | string | 是 | 基金代碼(含市場後綴) |
| ∟ code | string | 否 | 基金簡碼 |
| ∟ name | string | 否 | 基金名稱 |
| ∟ position_ratio | string | 否 | 持倉佔比(%) |
| ∟ report_date | string | 否 | 報告日期 |
| ∟ currency | string | 否 | 貨幣 |