現貨行情物件

BaseData Objects

@dataclass
class BaseData()

個股基本資料回覆

stock_code

股票代號 str

product_name

商品名稱 str

industry

產業別 str

security_type

證券別 str

stock_abnormal_code

股票異常代碼 str

reference_price

參考價 float

upper_limit_price

漲停價 float

lower_limit_price

跌停價 float

non_10_denomination

非10元面額 bool

abnormal_recommendation_note

異常推介個股註記 str

special_abnormal_security_note

特殊異常證券註記 str

day_trading_note

可現股當沖註記 str

exempt_short_selling_note

豁免平盤下融券賣出註記 str

exempt_borrowing_short_selling_note

豁免平盤下借券賣出註記 str

matching_cycle_seconds

撮合循環秒數 int

foreign_stock_identifier

外國股票識別碼 str

trading_unit

交易單位 int

trading_currency_code

交易幣別代號 str

OTCBaseData Objects

@dataclass
class OTCBaseData()

上櫃股票個股基本資料

stock_code

股票代號 str

product_name

商品名稱 str

industry

產業別 str

security_type

證券別 str

stock_abnormal_code

股票異常代碼 str

stock_type

類股註記 str

reference_price

參考價 float

upper_limit_price

漲停價 float

lower_limit_price

跌停價 float

non_10_denomination

非10元面額 bool

abnormal_recommendation_note

異常推介個股註記 str

special_abnormal_security_note

特殊異常證券註記 str

day_trading_note

可現股當沖註記 str

exempt_short_selling_note

豁免平盤下融券賣出註記 str

exempt_borrowing_short_selling_note

豁免平盤下借券賣出註記 str

matching_cycle_seconds

撮合循環秒數 int

trading_unit

交易單位 int

trading_currency_code

交易幣別代號 str

TickData Objects

@dataclass
class TickData()

個股競價交易即時行情資訊

stock_code

股票代號 str

match_time

撮合時間 str

limit_up_down_note

漲跌停註記 str (0: 一般 64:跌停成交 128:漲停成交)

status_note

狀態註記 str(4:收盤揭示 8:開盤揭示 16:逐筆撮合 32:延後收盤 64:延後開盤 128:試撮揭示 256:集合競價 512:一般揭示)

cumulative_volume

累計成交數量 int

trade_price

成交價 float

trade_volume

成交量 int

best_bid_price_1

最佳一檔買進價 float

best_bid_volume_1

最佳一檔買進量 int

best_bid_price_2

最佳二檔買進價 float

best_bid_volume_2

最佳二檔買進量 int

best_bid_price_3

最佳三檔買進價 float

best_bid_volume_3

最佳三檔買進量 int

best_bid_price_4

最佳四檔買進價 float

best_bid_volume_4

最佳四檔買進量 int

best_bid_price_5

最佳五檔買進價 float

best_bid_volume_5

最佳五檔買進量 int

best_ask_price_1

最佳一檔賣出價 float

best_ask_volume_1

最佳一檔賣出量 int

best_ask_price_2

最佳二檔賣出價 float

best_ask_volume_2

最佳二檔賣出量 int

best_ask_price_3

最佳三檔賣出價 float

best_ask_volume_3

最佳三檔賣出量 int

best_ask_price_4

最佳四檔賣出價 float

best_ask_volume_4

最佳四檔賣出量 int

best_ask_price_5

最佳五檔賣出價 float

best_ask_volume_5

最佳五檔賣出量 int

TickDataOpenClose Objects

@dataclass
class TickDataOpenClose()

個股競價交易開(收)盤價資料

stock_code

股票代號 str

open_price

開盤價格 float

high_price

最高成交價格 float

low_price

最低成交價格 float

last_trade_price

最近成交價 float

cumulative_volume

累計成交量 int

time

時間 str

IndexData Objects

@dataclass
class IndexData()

指數資料

index_code

指數代號 str

index_time

指數時間 str

latest_index

最新指數 float

BaseDataResponse Objects

@dataclass
class BaseDataResponse()

查詢個股基本資料回覆物件

ok

是否成功 bool

error

錯誤訊息 str

data

回覆物件 BaseData

TickDataResponse Objects

@dataclass
class TickDataResponse()

查詢個股競價交易即時行情資訊回覆物件

ok

是否成功 bool

error

錯誤訊息 str

data

回覆物件 TickData

TickDataOpenCloseResponse Objects

@dataclass
class TickDataOpenCloseResponse()

查詢個股競價交易開(收)盤價資料回覆物件

ok

是否成功 bool

error

錯誤訊息 str

data

回覆物件 TickDataOpenClose

IndexDataResponse Objects

@dataclass
class IndexDataResponse()

查詢指數回覆物件

ok

是否成功 bool

error

錯誤訊息 str

data

回覆物件 IndexData

OTCBaseDataResponse Objects

@dataclass
class OTCBaseDataResponse()

查詢上櫃股票個股基本資料回覆物件

ok

是否成功 bool

error

錯誤訊息 str

data

回覆物件 OTCBaseData