# 获取ARK基金持仓

get_ark_fund_holding(holding_type=None, cycle_type=None, sort_field=None, sort_dir=None, count=None, page=None)

  • 介绍

    获取 ARK 基金持仓,返回 ARK 旗下 ETF 的持仓数据,支持按持仓/增持/减持/建仓/清仓类型查看,支持不同时间周期和多维度排序。

  • 参数

    参数 类型 说明
    holding_type ArkHoldingType 持仓类型,默认持仓
    cycle_type ArkCycleType 周期类型,默认近 1 天(holdingType=持仓时忽略)
    sort_field ArkFundHoldingSortField 排序字段,默认持仓数量
    sort_dir RankSortDir 排序方向,默认降序
    count int 返回数量 [1, 200],默认 20
    page str 翻页游标
  • 返回

    参数 类型 说明
    ret RET_CODE 接口调用结果
    data pd.DataFrame 当 ret == RET_OK,返回数据
    str 当 ret != RET_OK,返回错误描述
    • 数据格式如下:
      字段 类型 说明
      security str 股票代码(如 'US.TSLA',部分标的可能为 N/A)
      name str 名称
      shares int 持仓数量
      shares_change int 持仓数量变动
      market_value float 持仓市值(美元)
      weight float 持仓占比(%)
      weight_change float 持仓占比变动(%)
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data, next_page, all_count = quote_ctx.get_ark_fund_holding(count=2)
if ret == RET_OK:
    print(f'总数据量: {all_count}')
    print(data)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
总数据量: 2
  security                       name    shares  shares_change  market_value  weight  weight_change
0      N/A                        N/A  62494591       15631862  6.249459e+07    0.45           0.12
1  US.RXRX  Recursion Pharmaceuticals  31671298         -71280  1.007147e+08    0.73           0.01
1
2
3
4

接口限制

  • 30 秒内最多 60 次请求
  • 分页请求仅首页计入限频统计