# 獲取拆合股

get_corporate_actions_stock_splits(code, next_key=None, num=None)

  • 介紹

    獲取股票的拆合股歷史記錄(港股有額外欄位),支援分頁

  • 參數

    參數 類型 說明
    code str 股票代碼
    next_key str 分頁標識
    num int 每頁數量
  • 返回

    參數 類型 說明
    ret RET_CODE 介面調用結果
    data dict 當 ret == RET_OK,返回拆合股數據字典
    str 當 ret != RET_OK,返回錯誤描述
    • 返回字典包含以下欄位:

      欄位 類型 說明
      next_key str 分頁標識
      split_list list 拆合股列表
    • split_list 欄位(拆合股條目):

      欄位 類型 說明
      dir_deci_pub_date int 公告日時間戳
      dir_deci_pub_date_str str 公告日
      reform_type str 重組方式
      rate str 比率
      ex_date int 除權日時間戳
      ex_date_str str 除權日
      sm_deci_date int 決議日時間戳
      sm_deci_date_str str 決議日
      temp_trade_begin_date int 臨時買賣日時間戳
      temp_trade_begin_date_str str 臨時買賣日
      simul_trade_begin_date int 並行買賣開始日時間戳
      simul_trade_begin_date_str str 並行買賣開始日
      simul_trade_end_date int 並行買賣結束日時間戳
      simul_trade_end_date_str str 並行買賣結束日
      event_status str 事件進程
      new_par_value float 新面值
      temp_share_code str 臨時證券代碼
      temp_share_abbr_name str 臨時證券簡稱
      new_trade_unit int 新買賣單位
      shares_after_effect float 生效後股數
  • Example

from futu import *
import pandas as pd
quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_corporate_actions_stock_splits("HK.00700", num=3)
if ret == RET_OK:
    df = pd.DataFrame(data.get('split_list', []))
    print(df.to_string(index=False))
else:
    print('error:', data)
quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
  • Output
dir_deci_pub_date dir_deci_pub_date_str reform_type rate    ...  temp_share_abbr_name  new_trade_unit  shares_after_effect
        1395158400            2014-03-19       Split 1->5    ...               Tencent             100         9319999970.0
1
2

介面限制

  • 每 30 秒內最多請求 30 次。
  • 支援港股、美股正股及基金。