# Hook: onPeriodUpdate()

Called when the last live candlestick of a watched symbol is updated. The hook is active only for the symbols with watchPeriods directive enabled and for the timeframes specified in the timeframes directive. 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 onPeriodUpdate (period: MidaPeriod): Promise<void>;