事件

事件狀態用於了解系統回傳錯誤訊息,有助於確保順暢的通訊、即時處理問題並保護安全性。

Quote 即時行情(加值)

StatusCode Description Source
Q001 The quote_type parameter is missing in subscription. 訂閱時缺少 quote_type 參數
Q002 The symbol parameter is empty in subscription. 訂閱時 Symbol 參數為空
Q003 The session parameter must be an integer in subscription. 訂閱時 Session 參數必須為整數
Q004 The version parameter is missing in subscription. 訂閱時缺少 version 參數
Q005 The subscription type is invalid. 訂閱時quote type無效
Q006 Failed to fetch permission in WebSocket. WebSocket 權限取得失敗
Q007 WebSocket permission request failed due to an HTTP error or timeout. WebSocket 權限請求因 HTTP 錯誤或逾時而失敗
Q008 WebSocket permission response could not be parsed as JSON. WebSocket 權限回應無法解析成 JSON
Q009 The permission is not allowed by rule in WebSocket. WebSocket 權限不符合規則
Q010 The subscription was rejected in WebSocket. WebSocket 訂閱被拒絕
Q011 The subscription was rejected due to missing permission in WebSocket. WebSocket 訂閱因缺少權限而被拒絕
Q012 The subscription exceeded the topic limit in WebSocket. WebSocket 訂閱超過主題上限
Q013 The subscription ID is duplicated in WebSocket. WebSocket 訂閱 ID 重複
Q014 The quote type is invalid for WebSocket subscription. WebSocket 訂閱的 quote_type 無效
Q015 The sub_id is invalid for WebSocket subscription. WebSocket 訂閱的 sub_id 無效
Q016 The parameter is invalid for WebSocket subscription. WebSocket 訂閱參數無效
Q017 The WebSocket connection timed out or failed. WebSocket 連線逾時或失敗
Q018 Failed to decode JSON data in WebSocket. WebSocket JSON 資料解析失敗
Q019 A WebSocket reconnection attempt failed. WebSocket 重連嘗試失敗
Q020 An exception occurred during WebSocket resubscription. WebSocket 重新訂閱時發生例外
Q021 The maximum number of WebSocket reconnection attempts was reached. 已達 WebSocket 重連最大次數
Q022 An exception occurred during callback execution. Callback執行時發生例外
Q023 The callback function is invalid. Callback函式無效
Q024 The callback has too many parameters. Callback參數數量過多
Q025 The callback parameter type does not match the expected version. Callback參數型別與版本不符
Q026 The subscription type is not supported in callback. Callback不支援此訂閱型別
Q027 The callback version is not supported. 不支援的Callback版本
Q028 The market type is invalid in data access. 資料存取的市場型別無效
Q029 The specified Facade class was not found. 指定的 Facade 類別不存在
Q030 An exception occurred while executing the Facade callback. Facade Callback執行時發生例外
Q031 The specified facade_name was not found in the module. 模組中找不到指定的 facade_name
Q032 A getter is missing for a property in data. 資料屬性缺少getter
Q033 Access to the attribute is not allowed. 嘗試存取不允許的屬性
Q034 The HTTP response status is not 200 in static data. 靜態資料 HTTP 回應狀態不是 200
Q035 An exception occurred during static data fetch or parsing. 靜態資料抓取或解析時發生例外
Q036 The static data was retrieved but is empty. 靜態資料取得成功但為空
Q037 An exception occurred during periodic static data fetch. 靜態資料週期抓取時發生例外
Q038 Failed to parse the product file in static data. 靜態資料商品檔解析失敗
Q039 The sub_id format is invalid in static data unsubscribe. 靜態資料退訂的sub_id格式無效
Q040 The specified minute value is not supported in KBar. KBar不支援指定的minute值
Q041 The KBar subscription already exists for this symbol and minute. 重複訂閱相同KBar的Symbol與Minute
Q042 The sub_id to unsubscribe was not found in KBar. 取消訂閱的KBar sub_id不存在
Q043 The subscription ID is invalid in KBar data. KBar資料的訂閱ID無效
Q044 WebSocket error occurred WebSocket連線發生錯誤
Q045 WebSocket connection closed WebSocket連線已關閉

Quote 即時行情(原始)

StatusCode Description Source
SW000 Operation completed successfully. 操作成功
SW001 StarWave connection is disconnected. StarWave連線已中斷
SW002 StarWave login failed. StarWave登入失敗
SW003 Subscription request failed. 訂閱請求失敗
SW004 Subscription request was rejected. 訂閱請求被拒絕
SW005 Unsubscription request failed. 取消訂閱請求失敗
SW006 Subscription limit has been reached. 已達訂閱數量上限
SW007 Login attempt failed after all applicable channels were exhausted or further retries were skipped due to an account-level error. 登入失敗,本輪嘗試已結束;可能是所有適用通道皆嘗試失敗,或因帳號層級錯誤而停止後續嘗試
SW008 No valid authentication source is available for this StarWave connection object. StarWave 連線物件沒有有效的登入驗證來源
SW009 No available connection channel was returned by the server. 伺服器未回傳可用的連線 Channels
SW010 Login credentials are missing because the user ID or password is empty. 缺少登入憑證,帳號或密碼為空值
SW011 Login not attempted because the gate check failed. 登入未執行,因連線前置檢查失敗