# 獲取ARK個股交易動態

get_ark_stock_dynamic(security)

  • 介紹

    獲取 ARK 個股交易動態,返回指定股票在 ARK 基金中的最新交易動態信息(連續同向交易、近期交易、最近一筆等)。

  • 參數

    參數 類型 說明
    security str 股票代碼(如 'US.TSLA')(必填)
  • 返回

    參數 類型 說明
    ret RET_CODE 接口調用結果
    data dict 當 ret == RET_OK,返回字典數據
    str 當 ret != RET_OK,返回錯誤描述
    • 數據格式如下:
      字段 類型 說明
      dynamic_type str 動態類型(見下方枚舉)
      transaction_count int 交易次數
      net_shares int 淨交易股數
      last_transaction_time str 最近交易時間(yyyy-MM-dd)
      "CONSECUTIVE_SAME_DIRECTION" 連續同向交易
      "RECENT_TRANSACTION" 近期交易
      "LAST_TRANSACTION" 最近一筆
      "NO_DYNAMIC" 無動態
  • Example

from futu import *

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

ret, data = quote_ctx.get_ark_stock_dynamic(security='US.TSLA')
if ret == RET_OK:
    for k, v in data.items():
        print(f"{k}: {v}")
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
dynamic_type: CONSECUTIVE_SAME_DIRECTION
transaction_count: 2
net_shares: 76041
last_transaction_time: 2026-06-22
1
2
3
4

接口限制

  • 30 秒內最多 60 次請求
  • 分頁請求僅首頁計入限頻統計