Skip to content

Commit

Permalink
Merge pull request #36 from FinMind/35-add-分k-package-usage
Browse files Browse the repository at this point in the history
Add kbar package example
  • Loading branch information
linsamtw authored Nov 25, 2023
2 parents 74b5915 + c3c49c2 commit c41839d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/tutor/TaiwanMarket/Technical.md
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,17 @@
#### 一次拿特定日期,所有資料(只限 [backer、sponsor](https://finmindtrade.com/analysis/#/Sponsor/sponsor) 使用)

!!! example
=== "Package"
```python
from FinMind.data import DataLoader

api = DataLoader()
# api.login_by_token(api_token='token')
# api.login(user_id='user_id',password='password')
df = api.taiwan_stock_10year(
start_date='2020-04-06',
)
```
=== "Python-request"
```python
import requests
Expand Down Expand Up @@ -992,6 +1003,18 @@
- 資料更新時間 **星期一至五 15:50**,實際更新時間以 API 資料為主

!!! example
=== "Package"
```python
from FinMind.data import DataLoader

api = DataLoader()
# api.login_by_token(api_token='token')
# api.login(user_id='user_id',password='password')
df = api.taiwan_stock_bar(
stock_id='2330',
date="2023-09-22"
)
```
=== "Python-request"
```python
import requests
Expand Down

0 comments on commit c41839d

Please sign in to comment.