# Get ARK Active Transaction

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

  • Description

    Get ARK active transaction aggregation, returning ARK fund active trading records (including change amount and change shares), with support for filtering by holding change type, cycle selection, and sorting.

  • Parameters

    Parameter Type Description
    holding_type ArkActiveTransactionHoldingType Holding change type, default increase holdings
    cycle_type ArkCycleType Cycle type, default last 1 day
    sort_field ArkActiveTransactionSortField Sort field, default change amount
    sort_dir RankSortDir Sort direction, default descending
    count int Return count [1, 200], default 50
    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
      change_amount float Change amount (USD)
      change_shares int Change quantity (shares)
  • Example

from futu import *

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

ret, data, next_page, all_count = quote_ctx.get_ark_active_transaction(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  change_amount  change_shares
0  US.AMZN       亚马逊      9631518.0          41141
1  US.PLTR  Palantir      9482340.0          81254
1
2
3
4

API Limits

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