| | |
| | | API_TYPE_CODE_ATRRIBUTE = "code_attribute" # 代码属性 |
| | | API_TYPE_CODE_TRADE_STATE = "code_trade_state" # 代码交易状态 |
| | | API_TYPE_GET_ENV = "get_env" # 获取环境信息 |
| | | API_TYPE_SYNC_L1_TARGET_CODES = "sync_l1_subscript_codes" # 同步L1需要订阅的代码 |
| | | |
| | | |
| | | class ActionCallback(object): |
| | |
| | | pass |
| | | |
| | | def OnGetEnvInfo(self, client_id, request_id, data): |
| | | pass |
| | | |
| | | def OnSyncL2SubscriptCodes(self, client_id, request_id): |
| | | pass |
| | | |
| | | |
| | |
| | | cls.action_callback.OnGetCodeTradeState(client_id, request_id, data) |
| | | elif content_type == API_TYPE_GET_ENV: |
| | | cls.action_callback.OnGetEnvInfo(client_id, request_id, data) |
| | | elif content_type == API_TYPE_GET_ENV: |
| | | cls.action_callback.OnSyncL2SubscriptCodes(client_id, request_id) |
| | | except Exception as e: |
| | | logging.exception(e) |
| | | pass |