# Get Corporate Actions - Stock Splits

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

  • Description

    Get stock split / reverse split history for a stock (HK stocks have extra fields), supports pagination

  • Parameters

    Parameter Type Description
    code str Stock code
    next_key str Pagination key
    num int Page size
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data dict When ret == RET_OK, returns stock split data dictionary
    str When ret != RET_OK, returns error description
    • The returned dictionary contains the following fields:

      Field Type Description
      next_key str Pagination key
      split_list list Stock split list
    • split_list fields (stock split entry):

      Field Type Description
      dir_deci_pub_date int Announcement date timestamp
      dir_deci_pub_date_str str Announcement date
      reform_type str Reorganization type
      rate str Rate
      ex_date int Ex-rights date timestamp
      ex_date_str str Ex-rights date
      sm_deci_date int Resolution date timestamp
      sm_deci_date_str str Resolution date
      temp_trade_begin_date int Temporary trading date timestamp
      temp_trade_begin_date_str str Temporary trading date
      simul_trade_begin_date int Parallel trading start date timestamp
      simul_trade_begin_date_str str Parallel trading start date
      simul_trade_end_date int Parallel trading end date timestamp
      simul_trade_end_date_str str Parallel trading end date
      event_status str Event process
      new_par_value float New par value
      temp_share_code str Temporary share code
      temp_share_abbr_name str Temporary share abbreviation
      new_trade_unit int New board lot size
      shares_after_effect float Shares after effect
  • 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

Interface Limit

  • Maximum 30 requests per 30 seconds.
  • Supports HK stocks, US stocks and funds.