IActionSchema

Action schema registered via addActionSchema(). Defines event handler implementation and lifecycle callbacks for state management integration.

Actions provide a way to attach custom event handlers to strategies for:

  • State management (Redux, Zustand, MobX)
  • Event logging and monitoring
  • Real-time notifications (Telegram, Discord, email)
  • Analytics and metrics collection
  • Custom business logic triggers

Each action instance is created per strategy-frame pair and receives all events emitted during strategy execution. Multiple actions can be attached to a single strategy.

actionName: string

Unique action identifier for registration

note: string

Optional developer note for documentation

handler: TActionCtor | Partial<IPublicAction>

Action handler constructor (instantiated per strategy-frame pair)

callbacks: Partial<IActionCallbacks>

Optional lifecycle and event callbacks