Skip to content

Commit

Permalink
feat: add end_date
Browse files Browse the repository at this point in the history
  • Loading branch information
samlin17 committed Sep 19, 2024
1 parent b576a36 commit e74f835
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 18 deletions.
28 changes: 24 additions & 4 deletions docs/tutor/TaiwanMarket/Chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


----------------------------------
#### 融資融劵表 TaiwanStockMarginPurchaseShortSale
#### 個股融資融劵表 TaiwanStockMarginPurchaseShortSale

- 資料區間:2001-01-01 ~ now
- 資料更新時間 **星期一至五 21:00**,實際更新時間以 API 資料為主
Expand All @@ -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"
Expand All @@ -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)
Expand All @@ -67,6 +68,7 @@
dataset="TaiwanStockMarginPurchaseShortSale",
data_id= "2330",
start_date= "2020-01-02",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -217,6 +220,7 @@
parameter = {
"dataset": "TaiwanStockTotalMarginPurchaseShortSale",
"start_date": "2020-04-01",
"end_date": "2020-04-12",
"token": "", # 參考登入,獲取金鑰
}
data = requests.get(url, params=parameter)
Expand All @@ -236,6 +240,7 @@
query = list(
dataset="TaiwanStockTotalMarginPurchaseShortSale",
start_date= "2020-01-02",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -318,6 +324,7 @@
dataset="TaiwanStockInstitutionalInvestorsBuySell",
data_id= "2330",
start_date= "2020-04-01",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -447,6 +455,7 @@
parameter = {
"dataset": "TaiwanStockTotalInstitutionalInvestors",
"start_date": "2020-04-01",
"end_date": "2020-04-12",
"token": "", # 參考登入,獲取金鑰
}
data = requests.get(url, params=parameter)
Expand All @@ -466,6 +475,7 @@
query = list(
dataset="TaiwanStockTotalInstitutionalInvestors",
start_date= "2020-01-02",
end_date='2020-04-12',
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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)
Expand All @@ -545,6 +556,7 @@
dataset="TaiwanStockShareholding",
data_id= "2330",
start_date= "2020-01-02",
end_date="2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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)
Expand All @@ -711,6 +724,7 @@
dataset="TaiwanStockHoldingSharesPer",
data_id= "2330",
start_date= "2020-01-02",
end_date='2020-04-12',
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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)
Expand All @@ -866,6 +881,7 @@
dataset="TaiwanStockSecuritiesLending",
data_id="2330",
start_date= "2020-01-02",
end_date='2020-04-12',
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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)
Expand All @@ -1012,6 +1029,7 @@
dataset="TaiwanStockMarginShortSaleSuspension",
data_id="0050",
start_date= "2015-01-01",
end_date= "2015-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -1149,6 +1168,7 @@
dataset="TaiwanDailyShortSaleBalances",
data_id="2330",
start_date= "2020-01-02",
end_date='2020-04-12',
token = "" # 參考登入,獲取金鑰
)
)
Expand Down
37 changes: 24 additions & 13 deletions docs/tutor/TaiwanMarket/Derivative.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -121,6 +123,7 @@
dataset="TaiwanFuturesDaily",
data_id="TX",
start_date= "2020-04-01",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -179,6 +182,7 @@
parameter = {
"dataset": "TaiwanFuturesDaily",
"start_date": "2020-04-01",
"end_date": "2020-04-12",
"token": "", # 參考登入,獲取金鑰
}
data = requests.get(url, params=parameter)
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -282,6 +288,7 @@
dataset="TaiwanOptionDaily",
data_id="TXO",
start_date= "2020-04-01",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -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 = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -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 = "" # 參考登入,獲取金鑰
)
)
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion docs/tutor/TaiwanMarket/Technical.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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)
Expand All @@ -908,6 +910,7 @@
dataset="TaiwanStockPER",
data_id= "2330",
start_date= "2020-01-02",
end_date= "2020-04-12",
token = "" # 參考登入,獲取金鑰
)
)
Expand Down

0 comments on commit e74f835

Please sign in to comment.