# Get ARK Fund Holding

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

  • Description

    Get ARK fund holdings, returning holding data for ARK ETFs, with support for viewing by holding/increase/decrease/open position/close position type, different time cycles, and multi-dimensional sorting.

  • Parameters

    Parameter Type Description
    holding_type ArkHoldingType Holding type, default holdings
    cycle_type ArkCycleType Cycle type, default last 1 day (ignored when holdingType=holdings)
    sort_field ArkFundHoldingSortField Sort field, default holding quantity
    sort_dir RankSortDir Sort direction, default descending
    count int Return count [1, 200], default 20
    page str Page cursor
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns data
    str When ret != RET_OK, returns error description
    • Data format:
      Field Type Description
      security str Stock code (e.g. 'US.TSLA', some securities may be N/A)
      name str Name
      shares int Holding quantity
      shares_change int Holding quantity change
      market_value float Holding market value (USD)
      weight float Holding weight (%)
      weight_change float Holding weight change (%)
  • 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'Total count: {all_count}')
    print(data)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
Total count: 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

API Limits

  • Maximum 60 requests within 30 seconds
  • Only the first page of paginated requests counts toward rate limiting