Skip to main content

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.

Request

HTTP MethodGET
HTTP URL/v1/asset/fund

Parameters

Content-Type: application/json; charset=utf-8

NameTypeRequiredDescription
symbolstring[]NOFund code, in ISIN format, E.g:HK0000676327 ISIN explain

Request Example

# 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

{
"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

StatusDescriptionSchema
200Successfund_rsp
400Internal ErrorNone

Schemas

fund_rsp

NameTypeRequiredDescription
listobject[]falsestock holding information
∟ account_channelstringtrueaccount type
∟ fund_infoobject[]falseFund Details
∟∟ symbolstringtrueFund ISIN code
∟∟ current_net_asset_valuestringtruecurrent Equity
∟∟ net_asset_value_daystringtruecurrent Equity time
∟∟ symbol_namestringtrueFund name
∟∟ currencystringtrueCurrency
∟∟ cost_net_asset_valuestringtrueNet Cost