From e74f8355e12f6461ef52b9bae475e4f1b26f5e2a Mon Sep 17 00:00:00 2001 From: samlin Date: Thu, 19 Sep 2024 20:06:47 +0800 Subject: [PATCH] feat: add end_date --- docs/tutor/TaiwanMarket/Chip.md | 28 +++++++++++++++++--- docs/tutor/TaiwanMarket/Derivative.md | 37 +++++++++++++++++---------- docs/tutor/TaiwanMarket/Technical.md | 5 +++- 3 files changed, 52 insertions(+), 18 deletions(-) diff --git a/docs/tutor/TaiwanMarket/Chip.md b/docs/tutor/TaiwanMarket/Chip.md index fa1838b..33a55ae 100644 --- a/docs/tutor/TaiwanMarket/Chip.md +++ b/docs/tutor/TaiwanMarket/Chip.md @@ -21,7 +21,7 @@ ---------------------------------- -#### 融資融劵表 TaiwanStockMarginPurchaseShortSale +#### 個股融資融劵表 TaiwanStockMarginPurchaseShortSale - 資料區間:2001-01-01 ~ now - 資料更新時間 **星期一至五 21:00**,實際更新時間以 API 資料為主 @@ -37,7 +37,7 @@ df = api.taiwan_stock_margin_purchase_short_sale( stock_id="2330", start_date='2020-04-02', - end_date='2020-04-12' + end_date='2020-04-12', ) ``` === "Python" @@ -49,6 +49,7 @@ "dataset": "TaiwanStockMarginPurchaseShortSale", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -67,6 +68,7 @@ dataset="TaiwanStockMarginPurchaseShortSale", data_id= "2330", start_date= "2020-01-02", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -207,6 +209,7 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_stock_margin_purchase_short_sale_total( start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -217,6 +220,7 @@ parameter = { "dataset": "TaiwanStockTotalMarginPurchaseShortSale", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -236,6 +240,7 @@ query = list( dataset="TaiwanStockTotalMarginPurchaseShortSale", start_date= "2020-01-02", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -286,7 +291,7 @@ df = api.taiwan_stock_institutional_investors( stock_id="2330", start_date='2020-04-01', - end_date='2020-04-12' + end_date='2020-04-12', ) ``` === "Python-request" @@ -298,6 +303,7 @@ "dataset": "TaiwanStockInstitutionalInvestorsBuySell", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -318,6 +324,7 @@ dataset="TaiwanStockInstitutionalInvestorsBuySell", data_id= "2330", start_date= "2020-04-01", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -437,6 +444,7 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_stock_institutional_investors_total( start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -447,6 +455,7 @@ parameter = { "dataset": "TaiwanStockTotalInstitutionalInvestors", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -466,6 +475,7 @@ query = list( dataset="TaiwanStockTotalInstitutionalInvestors", start_date= "2020-01-02", + end_date='2020-04-12', token = "" # 參考登入,獲取金鑰 ) ) @@ -525,6 +535,7 @@ "dataset": "TaiwanStockShareholding", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -545,6 +556,7 @@ dataset="TaiwanStockShareholding", data_id= "2330", start_date= "2020-01-02", + end_date="2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -691,6 +703,7 @@ "dataset": "TaiwanStockHoldingSharesPer", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -711,6 +724,7 @@ dataset="TaiwanStockHoldingSharesPer", data_id= "2330", start_date= "2020-01-02", + end_date='2020-04-12', token = "" # 參考登入,獲取金鑰 ) ) @@ -846,6 +860,7 @@ "dataset": "TaiwanStockSecuritiesLending", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -866,6 +881,7 @@ dataset="TaiwanStockSecuritiesLending", data_id="2330", start_date= "2020-01-02", + end_date='2020-04-12', token = "" # 參考登入,獲取金鑰 ) ) @@ -992,6 +1008,7 @@ "dataset": "TaiwanStockMarginShortSaleSuspension", "data_id": "0050", "start_date": "2015-01-01", + "end_date": "2015-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -1012,6 +1029,7 @@ dataset="TaiwanStockMarginShortSaleSuspension", data_id="0050", start_date= "2015-01-01", + end_date= "2015-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -1117,7 +1135,7 @@ df = api.taiwan_daily_short_sale_balances( stock_id="2330", start_date='2020-04-01', - end_date='2020-04-12' + end_date='2020-04-12', ) ``` === "Python-request" @@ -1129,6 +1147,7 @@ "dataset": "TaiwanDailyShortSaleBalances", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -1149,6 +1168,7 @@ dataset="TaiwanDailyShortSaleBalances", data_id="2330", start_date= "2020-01-02", + end_date='2020-04-12', token = "" # 參考登入,獲取金鑰 ) ) diff --git a/docs/tutor/TaiwanMarket/Derivative.md b/docs/tutor/TaiwanMarket/Derivative.md index 057e6b4..800fcde 100644 --- a/docs/tutor/TaiwanMarket/Derivative.md +++ b/docs/tutor/TaiwanMarket/Derivative.md @@ -89,7 +89,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_futures_daily( futures_id='TX', - start_date='2020-04-01' + start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -101,6 +102,7 @@ "dataset": "TaiwanFuturesDaily", "data_id":"TX", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -121,6 +123,7 @@ dataset="TaiwanFuturesDaily", data_id="TX", start_date= "2020-04-01", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -179,6 +182,7 @@ parameter = { "dataset": "TaiwanFuturesDaily", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -250,7 +254,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_option_daily( option_id='TXO', - start_date='2020-04-01' + start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -262,6 +267,7 @@ "dataset": "TaiwanOptionDaily", "data_id":"TXO", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -282,6 +288,7 @@ dataset="TaiwanOptionDaily", data_id="TXO", start_date= "2020-04-01", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -572,7 +579,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_futures_institutional_investors( data_id='TX', - start_date='2020-04-01' + start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -583,8 +591,8 @@ parameter = { "dataset": "TaiwanFuturesInstitutionalInvestors", "data_id": "TX",# "TXO" - "start_date": "2019-04-03", - "end_date": "2019-04-04", + "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } resp = requests.get(url, params=parameter) @@ -604,8 +612,8 @@ query = list( dataset="TaiwanFuturesInstitutionalInvestors", data_id="TX", - start_date= "2019-04-03", - end_date= "2019-04-04", + start_date= "2020-04-01", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -731,7 +739,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_option_institutional_investors( data_id='TXO', - start_date='2020-04-01' + start_date='2020-04-01', + end_date='2020-04-12', ) ``` === "Python-request" @@ -742,8 +751,8 @@ parameter = { "dataset": "TaiwanOptionInstitutionalInvestors", "data_id": "TXO", - "start_date": "2019-04-03", - "end_date": "2019-04-04", + "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } resp = requests.get(url, params=parameter) @@ -763,8 +772,8 @@ query = list( dataset="TaiwanOptionInstitutionalInvestors", data_id="TX",# "TXO" - start_date= "2019-04-03", - end_date= "2019-04-04", + start_date= "2020-04-01", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) ) @@ -893,6 +902,7 @@ df = api.taiwan_futures_dealer_trading_volume_daily( futures_id='TX', start_date='2020-07-01' + end_date='2020-07-12', ) ``` === "Python-request" @@ -1042,7 +1052,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_option_dealer_trading_volume_daily( option_id='TXO', - start_date='2020-07-01' + start_date='2020-07-01', + end_date='2020-07-12', ) ``` === "Pytho-request" diff --git a/docs/tutor/TaiwanMarket/Technical.md b/docs/tutor/TaiwanMarket/Technical.md index 9265736..2ae7799 100644 --- a/docs/tutor/TaiwanMarket/Technical.md +++ b/docs/tutor/TaiwanMarket/Technical.md @@ -878,7 +878,8 @@ # api.login(user_id='user_id',password='password') df = api.taiwan_stock_per_pbr( stock_id='2330', - start_date='2020-01-02' + start_date='2020-01-02', + end_date='2020-04-12', ) ``` === "Python-request" @@ -890,6 +891,7 @@ "dataset": "TaiwanStockPER", "data_id": "2330", "start_date": "2020-04-01", + "end_date": "2020-04-12", "token": "", # 參考登入,獲取金鑰 } data = requests.get(url, params=parameter) @@ -908,6 +910,7 @@ dataset="TaiwanStockPER", data_id= "2330", start_date= "2020-01-02", + end_date= "2020-04-12", token = "" # 參考登入,獲取金鑰 ) )