# 獲取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 次請求
  • 分頁請求僅首頁計入限頻統計