1 頁 (共 1 頁)

興櫃股票無法出現quote_callback 或 snapshots

發表於 : 2022-09-26, 11:09
webmic1209
sj.__version__ ==> '0.3.6.dev3'

問題有兩個
1. 上市上櫃股票可以獲得quote_callback(tick data), 但是興櫃可subscribe但是卻無法獲得quote_callback
2. 上市上櫃股票可以做api.snapshots, 但是興櫃做api.snapshots 讀出來的值皆為0

example:
[Snapshot(ts=1664190101469000000, code='2330', exchange='TSE', open=443.0, high=449.0, low=443.0, close=447.0, tick_type=<TickType.Sell: 'Sell'>, change_price=-8.0, change_rate=-1.76, change_type=<ChangeType.Down: 'Down'>, average_price=445.51, volume=1, total_volume=14149, amount=447000, total_amount=6303565500, yesterday_volume=0.0, buy_price=447.0, buy_volume=551.0, sell_price=447.5, sell_volume=139, volume_ratio=0.0)]
[Snapshot(ts=1664181000000000000, code='6617', exchange='', open=0.0, high=0.0, low=0.0, close=0.0, tick_type=<TickType.No: 'None'>, change_price=0.0, change_rate=0.0, change_type=<ChangeType.Unchanged: 'Unchanged'>, average_price=0.0, volume=0, total_volume=0, amount=0, total_amount=0, yesterday_volume=0.0, buy_price=0.0, buy_volume=0.0, sell_price=0.0, sell_volume=0, volume_ratio=0.0)]

Re: 興櫃股票無法出現quote_callback 或 snapshots

發表於 : 2022-09-28, 11:07
webmic1209
問題在幾天後 , 莫名的消失了
謝謝 目前沒問題