FinMind 2.0.0__tar.gz → 2.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/data/data_loader.py +49 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/data.py +3 -0
- {finmind-2.0.0/finmind.egg-info → finmind-2.0.1}/PKG-INFO +1 -1
- {finmind-2.0.0 → finmind-2.0.1/finmind.egg-info}/PKG-INFO +1 -1
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/_version.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/crawler/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/crawler/base.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/crawler/commodities.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/crawler/demo.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/crawler/government_bonds.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/data/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/data/data_subscriber.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/data/finmind_api.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/bias.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/continue_holding.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/institutional_investors_follower.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/institutional_investors_over_buy.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/kd.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/kd_crossover.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/ma_cross_orver.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/indicators/short_sale_margin_purchase_ratio.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/plotting/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/plotting/bar.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/plotting/kline.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/plotting/line.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/plotting/pie.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/indicators.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/info.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/plot.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/schema/rule.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/base.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/bias.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/continue_holding.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/institutional_investors_follower.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/kd.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/kd_crossover.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/ma_crossover.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/macd_crossover.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/max_min_period_bias.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/naive_kd.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/short_sale_margin_purchase_ratio.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/strategies/utils.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/templates/post.html +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/utility/__init__.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/utility/request.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/FinMind/utility/rule.py +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/LICENSE +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/README.md +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/finmind.egg-info/SOURCES.txt +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/finmind.egg-info/dependency_links.txt +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/finmind.egg-info/requires.txt +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/finmind.egg-info/top_level.txt +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/pyproject.toml +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/setup.cfg +0 -0
- {finmind-2.0.0 → finmind-2.0.1}/setup.py +0 -0
|
@@ -509,6 +509,55 @@ class DataLoader(FinMindApi):
|
|
|
509
509
|
)
|
|
510
510
|
return stock_institutional_investors
|
|
511
511
|
|
|
512
|
+
def taiwan_stock_institutional_investors_wide(
|
|
513
|
+
self,
|
|
514
|
+
stock_id: str = "",
|
|
515
|
+
start_date: str = "",
|
|
516
|
+
end_date: str = "",
|
|
517
|
+
timeout: int = None,
|
|
518
|
+
use_async: bool = False,
|
|
519
|
+
stock_id_list: typing.List[str] = None,
|
|
520
|
+
) -> pd.DataFrame:
|
|
521
|
+
"""get 個股三大法人買賣表(寬表)
|
|
522
|
+
|
|
523
|
+
與 taiwan_stock_institutional_investors 相同資料,改為寬表(橫式):
|
|
524
|
+
每個交易日一列,各法人別買進、賣出攤平成獨立欄位。欄位涵蓋所有歷史
|
|
525
|
+
法人別分類,尚未存在的年代該欄為 0(自營商於 2014-12-01 由合併拆為
|
|
526
|
+
自行買賣/避險、外資自營商於 2018-01-15 起提供)。
|
|
527
|
+
|
|
528
|
+
:param stock_id (str): 股票代號("2330")
|
|
529
|
+
:param start_date (str): 起始日期("2018-01-01")
|
|
530
|
+
:param end_date (str): 結束日期("2021-03-06")
|
|
531
|
+
:param timeout (int): timeout seconds, default None
|
|
532
|
+
|
|
533
|
+
:return: 個股三大法人買賣表(寬表)TaiwanStockInstitutionalInvestorsBuySellWide
|
|
534
|
+
:rtype pd.DataFrame
|
|
535
|
+
:rtype column date (str): 日期
|
|
536
|
+
:rtype column stock_id (str): 股票代碼
|
|
537
|
+
:rtype column Foreign_Investor_buy (int): 外資買進
|
|
538
|
+
:rtype column Foreign_Investor_sell (int): 外資賣出
|
|
539
|
+
:rtype column Foreign_Dealer_Self_buy (int): 外資自營商買進
|
|
540
|
+
:rtype column Foreign_Dealer_Self_sell (int): 外資自營商賣出
|
|
541
|
+
:rtype column Investment_Trust_buy (int): 投信買進
|
|
542
|
+
:rtype column Investment_Trust_sell (int): 投信賣出
|
|
543
|
+
:rtype column Dealer_buy (int): 自營商買進(合併,舊制)
|
|
544
|
+
:rtype column Dealer_sell (int): 自營商賣出(合併,舊制)
|
|
545
|
+
:rtype column Dealer_self_buy (int): 自營商買進(自行買賣)
|
|
546
|
+
:rtype column Dealer_self_sell (int): 自營商賣出(自行買賣)
|
|
547
|
+
:rtype column Dealer_Hedging_buy (int): 自營商買進(避險)
|
|
548
|
+
:rtype column Dealer_Hedging_sell (int): 自營商賣出(避險)
|
|
549
|
+
"""
|
|
550
|
+
stock_institutional_investors_wide = self.get_data(
|
|
551
|
+
dataset=Dataset.TaiwanStockInstitutionalInvestorsBuySellWide,
|
|
552
|
+
data_id=stock_id,
|
|
553
|
+
start_date=start_date,
|
|
554
|
+
end_date=end_date,
|
|
555
|
+
timeout=timeout,
|
|
556
|
+
use_async=use_async,
|
|
557
|
+
data_id_list=stock_id_list,
|
|
558
|
+
)
|
|
559
|
+
return stock_institutional_investors_wide
|
|
560
|
+
|
|
512
561
|
def taiwan_stock_institutional_investors_total(
|
|
513
562
|
self, start_date: str, end_date: str = "", timeout: int = None
|
|
514
563
|
) -> pd.DataFrame:
|
|
@@ -7,6 +7,9 @@ class Dataset(str, Enum):
|
|
|
7
7
|
TaiwanStockInstitutionalInvestorsBuySell = (
|
|
8
8
|
"TaiwanStockInstitutionalInvestorsBuySell"
|
|
9
9
|
)
|
|
10
|
+
TaiwanStockInstitutionalInvestorsBuySellWide = (
|
|
11
|
+
"TaiwanStockInstitutionalInvestorsBuySellWide"
|
|
12
|
+
)
|
|
10
13
|
TaiwanStockTotalInstitutionalInvestors = (
|
|
11
14
|
"TaiwanStockTotalInstitutionalInvestors"
|
|
12
15
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|