Realtime TWSE 台股盤中即時資訊

擷取上市即時盤的股價資訊

class grs.RealtimeTWSE(no, date=None)

Bases: grs.realtime2.Realtime

Real time fetch TWSE stock data. 擷取上市即時盤的股價資訊

Parameters:
Return type:

dict

data

整理後的資料

Return type:dict
Returns:
best_ask_list:

最佳五檔買出價量資訊(list

best_bid_list:

最佳五檔賣進價量資訊(list

best_ask_price:

最佳買出價格(float

best_ask_volume:
 

最佳買出數量(int

best_bid_price:

最佳買進價格(float

best_bid_volume:
 

最佳買進數量(int

open:

開盤價格(float

highest:

最高價(float

lowest:

最低價(float

price:

該盤成交價格(float

limit_up:

漲停價(float

limit_down:

跌停價(float

volume:

該盤成交量(int

volume_acc:

累計成交量(int

yesterday_price:
 

昨日收盤價格(float

diff:

漲跌價, 漲跌百分比(tuple

info:

相關資訊(dict

name:股票名稱(str
full_name:公司完整名稱(str
no:股票代碼(str
ticker:交易代碼(str
exchange:上市、上櫃(str
raw

原始資料

Return type:dict

擷取上櫃即時盤的股價資訊

class grs.RealtimeOTC(no, date=None)

Bases: grs.realtime2.Realtime

Real time fetch OTC stock data. 擷取上櫃即時盤的股價資訊

Parameters:
Return type:

dict

data

整理後的資料

Return type:dict
Returns:
best_ask_list:

最佳五檔買出價量資訊(list

best_bid_list:

最佳五檔賣進價量資訊(list

best_ask_price:

最佳買出價格(float

best_ask_volume:
 

最佳買出數量(int

best_bid_price:

最佳買進價格(float

best_bid_volume:
 

最佳買進數量(int

open:

開盤價格(float

highest:

最高價(float

lowest:

最低價(float

price:

該盤成交價格(float

limit_up:

漲停價(float

limit_down:

跌停價(float

volume:

該盤成交量(int

volume_acc:

累計成交量(int

yesterday_price:
 

昨日收盤價格(float

diff:

漲跌價, 漲跌百分比(tuple

info:

相關資訊(dict

name:股票名稱(str
full_name:公司完整名稱(str
no:股票代碼(str
ticker:交易代碼(str
exchange:上市、上櫃(str
raw

原始資料

Return type:dict

擷取大盤即時盤的股價資訊

class grs.RealtimeWeight(date=None, delay=0)

Real time fetch OTC stock data. 擷取指數即時盤的股價資訊

Parameters:
  • date (datetime) – 時間
  • delay (int) – 延遲回傳
Return type:

dict

Returns:

t00:加權指數(dict
o00:櫃檯指數(dict
FRMSA:寶島指數(dict

data

整理後的資料

Return type:dict
Returns:
open:

開盤價格(float

highest:

最高價(float

lowest:

最低價(float

price:

該盤成交價格(float

volume:

該盤成交量(int

volume_acc:

累計成交量(int

yesterday_price:
 

昨日收盤價格(float

diff:

漲跌價, 漲跌百分比(tuple

info:

相關資訊(dict

name:股票名稱(str
no:股票代碼(str
ticker:交易代碼(str
exchange:上市、上櫃(str
raw

原始資料

Return type:dict

擷取工具

class grs.realtime2.Realtime(no, date, delay=0)

Real time fetch TWSE, OTC stock data. 上市、上櫃即時盤擷取工具

Parameters:
  • no (str) – 股票代碼
  • date (datetime) – 時間
  • delay (int) – 延遲回傳
Return type:

dict

data

整理後的資料

Return type:dict
Returns:
best_ask_list:

最佳五檔買出價量資訊(list

best_bid_list:

最佳五檔賣進價量資訊(list

best_ask_price:

最佳買出價格(float

best_ask_volume:
 

最佳買出數量(int

best_bid_price:

最佳買進價格(float

best_bid_volume:
 

最佳買進數量(int

open:

開盤價格(float

highest:

最高價(float

lowest:

最低價(float

price:

該盤成交價格(float

limit_up:

漲停價(float

limit_down:

跌停價(float

volume:

該盤成交量(int

volume_acc:

累計成交量(int

yesterday_price:
 

昨日收盤價格(float

diff:

漲跌價, 漲跌百分比(tuple

info:

相關資訊(dict

name:股票名稱(str
full_name:公司完整名稱(str
no:股票代碼(str
ticker:交易代碼(str
exchange:上市、上櫃(str
raw

原始資料

Return type:dict