Get Fund Positions
The API is used to obtain fund position information including account, fund code, holding share, cost net worth, current net worth, and currency.
SDK Links
Python  | longport.openapi.TradeContext.fund_positions | 
Rust  | longport::trade::TradeContext#fund_positions | 
Go  | TradeContext.FundPositions | 
Node.js  | TradeContext#fundPositions | 
Request 
| HTTP Method | GET | 
| HTTP URL | /v1/asset/fund | 
Parameters 
Content-Type: application/json; charset=utf-8
| Name | Type | Required | Description | 
|---|---|---|---|
| symbol | string[] | NO | Fund code, in ISIN format, E.g:HK0000676327 ISIN explain | 
Request Example 
python
# Get Fund Position
# https://open.longportapp.com/docs/trade/asset/fund
from longport.openapi import TradeContext, Config
config = Config.from_env()
ctx = TradeContext(config)
resp = ctx.fund_positions()
print(resp)Response 
Response Headers 
- Content-Type: application/json
 
Response Example 
json
{
  "code": 0,
  "data": {
    "list": [
      {
        "account_channel": "lb",
        "fund_info": [
          {
            "symbol": "HK0000447943",
            "symbol_name": "GAOTENG EMERGING MARKETS PLUS  LONG/SHORT FIXED INCOME ALPHA FUND",
            "currency": "USD",
            "holding_units": "5.000",
            "current_net_asset_value": "0",
            "cost_net_asset_value": "0.00",
            "net_asset_value_day": "1649865600"
          }
        ]
      }
    ]
  }
}Response Status 
| Status | Description | Schema | 
|---|---|---|
| 200 | Success | fund_rsp | 
| 400 | Internal Error | None | 
Schemas 
fund_rsp 
| Name | Type | Required | Description | 
|---|---|---|---|
| list | object[] | false | stock holding information | 
| ∟ account_channel | string | true | account type | 
| ∟ fund_info | object[] | false | Fund Details | 
| ∟∟ symbol | string | true | Fund ISIN code | 
| ∟∟ current_net_asset_value | string | true | current Equity | 
| ∟∟ net_asset_value_day | string | true | current Equity time | 
| ∟∟ symbol_name | string | true | Fund name | 
| ∟∟ currency | string | true | Currency | 
| ∟∟ cost_net_asset_value | string | true | Net Cost |