請問目前scanners的功能是失效了嗎?
我想抓昨天成交值前10名但是卻回傳空值
以下是我的部分程式碼及結果
amount_rank = api.scanners(
scanner_type = sj.constant.ScannerType.AmountRank, #指定所要抓取的排行類型
count = 15, #抓排行前COUNT名
#date=str(yday) #抓昨天的排行
date='2022-08-17'
)
print(amount_rank)
======result===========
Response Code: 0 | Event Code: 0 | Info: host '203.66.91.161:80', IP 203.66.91.161:80 (host 1 of 1) (host connection attempt 1 of 1) (total connection attempt 1 of 1) | Event: Session up
(OES, OTC, TSE)
1
2022-08-17
[]
Traceback (most recent call last):
File "test.py", line 394, in <module>
stock_list.append(amount_rank['code'])
IndexError: list index out of range