28 lines
696 B
TypeScript
28 lines
696 B
TypeScript
export type OperationalEventType =
|
|
| 'SIMPLE_SETUP_UPDATE'
|
|
| 'ORDER_FAILURE'
|
|
| 'PARITY_WARNING'
|
|
| 'RECONCILIATION_DEGRADED'
|
|
| 'INSUFFICIENT_BUYING_POWER'
|
|
| 'EXCHANGE_STATE_MISMATCH'
|
|
| 'CAPITAL_LEDGER_DRIFT'
|
|
| 'EXIT_FILL_COHERENCE_VIOLATION'
|
|
| 'RECOVERY_SL_MISSING'
|
|
| 'SYSTEM_ERROR';
|
|
|
|
export type OperationalEventSeverity = 'INFO' | 'WARN' | 'ERROR';
|
|
|
|
export interface OperationalEvent {
|
|
id: string;
|
|
type: OperationalEventType;
|
|
severity: OperationalEventSeverity;
|
|
message: string;
|
|
profileId?: string;
|
|
userId?: string;
|
|
symbol?: string;
|
|
setupId?: string;
|
|
tradeId?: string;
|
|
orderId?: string;
|
|
timestamp: number;
|
|
}
|