事件狀態用於了解系統回傳錯誤訊息,有助於確保順暢的通訊、即時處理問題並保護安全性。
| 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 | A getter is missing for a property in data. | 資料屬性缺少 getter。 |
| Q032 | Access to the attribute is not allowed. | 嘗試存取不允許的屬性 |
| Q033 | The specified facade_name was not found in the module. | 模組中找不到指定的 facade_name |
| Q034 | An exception occurred during the facade callback execution. | Facade Callback執行期間發生例外 |
| Q035 | The HTTP response status is not 200 in static data. | 靜態資料 HTTP 回應狀態不是 200 |
| Q036 | An exception occurred during static data fetch or parsing. | 靜態資料抓取或解析時發生例外 |
| Q037 | The static data was retrieved but is empty. | 靜態資料取得成功但為空 |
| Q038 | An exception occurred during periodic static data fetch. | 靜態資料週期抓取時發生例外 |
| Q039 | Failed to parse the product file in static data. | 靜態資料商品檔解析失敗 |
| Q040 | The sub_id format is invalid in static data unsubscribe. | 靜態資料退訂的 sub_id 格式無效 |
| Q041 | The specified minute value is not supported in KBar. | KBar 不支援指定的 minute 值 |
| Q042 | The KBar subscription already exists for this symbol and minute. | 重複訂閱相同 KBar的 Symbol 與 Minute |
| Q043 | The sub_id to unsubscribe was not found in KBar. | 取消訂閱的 KBar sub_id 不存在 |
| Q044 | The subscription ID is invalid in KBar data. | KBar資料的訂閱 ID 無效 |