# Hook: onTick()

Called when a new market tick is available for a watched symbol. The hook is active only for the symbols with watchTicks directive enabled. This hook is queued, this means that there can be only one hook call at time and the next hook call will wait for the current one to resolve.

  • Interface
class MidaTradingSystem {
    protected onTick (tick: MidaTick): Promise<void>;
}