interface.ts 414 B

123456789101112131415161718
  1. /**
  2. * 事件key
  3. */
  4. export enum EventKey {
  5. QuotePushNotify, // 行情推送通知
  6. QuoteServerReconnectNotify, // 行情服务重连成功通知
  7. LoginNotify, // 用户登入通知
  8. LogoutNotify, // 用户登出通知
  9. MoneyChangedNotify, // 资金变动通知
  10. }
  11. /**
  12. * 事件消息
  13. */
  14. export interface EventMessage {
  15. keys: (keyof typeof EventKey)[];
  16. callback: (data: unknown) => void;
  17. }