Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

從2024/10/25後無法取得債卷ETL的歷史資料 #132

Open
songhwi opened this issue Nov 16, 2024 · 1 comment
Open

從2024/10/25後無法取得債卷ETL的歷史資料 #132

songhwi opened this issue Nov 16, 2024 · 1 comment

Comments

@songhwi
Copy link

songhwi commented Nov 16, 2024

遇到多支債券ETF無法取得歷史資料
但即時資訊又正常
以00679B為例結果.煩請協助確認

1.取得歷史資料回傳空值
`

import twstock
from twstock import Stock
oStock = Stock('00679B')
oStock.fetch_from(2023,10)
[]`

2.取得realtime資料正常
`

oStock=twstock.realtime.get('00679B')
oStock
{'timestamp': 1731652200.0, 'info': {'code': '00679B', 'channel': '00679B.tw', 'name': '元大美債20年', 'fullname': '元大美國政府20年期(以上)債券ETF傘型證券投資信託基金之元大美國政府20年期(以上)債券證券投資信託基金', 'time': '2024-11-15 14:30:00'}, 'realtime': {'latest_trade_price': '29.1200', 'trade_volume': '1685', 'accumulate_trade_volume': '50891', 'best_bid_price': ['29.1200', '29.1100', '29.1000', '29.0900', '29.0800'], 'best_bid_volume': ['649', '1937', '2274', '2020', '4476'], 'best_ask_price': ['29.1300', '29.1400', '29.1500', '29.1600', '29.1700'], 'best_ask_volume': ['25', '1084', '1059', '4940', '5699'], 'open': '29.2000', 'high': '29.2700', 'low': '29.1200'}, 'success': True}
`

@songhwi
Copy link
Author

songhwi commented Nov 16, 2024

我自己覺得可能不是程式的問題.是源頭的歷史資料表沒有抄到部份股號, 但不知如何確認,其他股號都正常

oStock = Stock('00929')
oStock.fetch_31()
[Data(date=datetime.datetime(2024, 9, 30, 0, 0), capacity=139221552, turnover=2646507356, open=19.11, high=19.12, low=18.94, close=18.94, change=-0.26, transaction=57974), Data(date=datetime.datetime(2024, 10, 1, 0, 0), capacity=114191570, ....(略)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant