# Ticks listener

Ticks can be listened through the watchTicks directive.

  • Example
import { MidaMarketWatcher, } from "@reiryoku/mida";

const marketWatcher = new MidaMarketWatcher({ tradingAccount: myAccount, });

await marketWatcher.watch("BTCUSDT", { watchTicks: true, });
marketWatcher.on("tick", (event) => {
    const { tick, } = event.descriptor;
    const btcUsdtBid = tick.bid;
    const btcUsdtAsk = tick.ask;
});