Skip to content

V0.0.53

Compare
Choose a tag to compare
@tej87681088 tej87681088 released this 17 Nov 02:33
· 66 commits to main since this release
3a31340

tej-tool-api 1.0.16、zipline-tej 0.0.53、alphalens-tej 0.0.4版本更新

版本更新方式

在IDE中依序輸入以下3行程式以更新版本

!pip install --upgrade zipline-tej
!pip install --upgrade tej-tool-api
!pip install --upgrade alphalens-tej

此次更新的範圍

  1. tej-tool-api 1.0.15 -> 1.0.16
  2. zipline-tej 0.0.51 -> 0.0.53
  3. alphalens-tej 0.0.3 -> 0.0.4

以下會簡單說明此次更新的細項

tej-tool-api 1.0.16 更新項目

zipline-tej 0.0.53 更新項目

  • 修正ingest時會出現extension_args not found的問題。
  • 修正zipline.data.data_portal.get_fundamentalsTejToolAPI.get_history_data資料不一致的問題。
  • 配合交易資料_股票日交易註記資訊(TWN/APISTKATTR)資料修改,get_universe(zipline.sources.TEJ_Api_Data.get_universe)的kwargs內容有所修改。
    • 主產業別(中)(main_ind_c):

      • 新增產業別:"一般產業"與"金融與證券業"
    • 主產業別(英)(main_ind_e):

      • 新增產業別:"General Industry"與"Financial and Securities Industry"
      • 修改產業名稱:
      "OTC32 Cultural & Creative Industry Index"->"OTC32 Cultural & Creative Industry"
      "M3700 TSE Sports and Leisure Subindex"->"M3700 TSE Sports and Leisure"
      "M3800 TSE Household Subindex"->"M3800 TSE Household"
      "OTC37 OTC Sports and Leisure Subindex"->"OTC37 OTC Sports and Leisure"
      "OTC38 OTC Household Subindex"->"OTC38 OTC Household"
      
    • 子產業別(英)(sub_ind_e):

      • 修改產業名稱:
      "M2335 TSE Green Energy and Environmental Services Subindex"->"M2335 TSE Green Energy and Environmental Services"
      "M2336 TSE Digital and Cloud Services Subindex"->"M2336 TSE Digital and Cloud Services"
      "O2335 OTC Green Energy and Environmental Services Subindex"->"O2335 OTC Green Energy and Environmental Services"
      "O2336 OTC Digital and Cloud Services Subindex"->"O2336 OTC Digital and Cloud Services"
      
    • 證券種類(中)(stktp_c):

      • [新增種類] 新增"封閉型基金"、"國外ETF"、"普通股-海外"、"REIT"。
      • [修改定義] 修改"ETF"與"普通股"的定義。
      • [更名] "TDR"更改為"台灣存託憑證"。
    • 證券種類(英)(stktp_e): 

      • [新增種類] 新增"Close End Fund"、"Foreign ETF"、"Common Stock-Foreign"、"REIT"。
      • [修改定義] 修改"ETF"與"Foreign ETF"的定義。
    • 詳細參考:

alphalens-tej 0.0.4 更新項目

  • 修正特定環境下(python=3.10、pandas=1.5.3、scipy=1.11.3、numpy=1.23.5),使用alphalens.utils.get_clean_factor_and_forward_returns會出現"IndexError: invalid index to scalar variable"的問題。

其他

  • 修正交易資料_股票日交易註記資訊(TWN/APISTKATTR)證券屬性資料表(TWN/APISTOCK)樣本不一致的問題。
  • alphalens-tej、zipline-tej、pyfolio-tej現在可支援Python 3.8~3.10。
  • Python3.11請使用zipline-tej 0.0.54rc0版本。
  • 董事長與高階主管變動事件(TWN/APIDIRCHG)欄位更名:no -> chg_name
  • 私募應募人與公司的關係(TWN/APISTKPRV)欄位更名:no -> prv_no