# MarketWatcher()

Real time market updates such as ticks and candlesticks are listened through the MidaMarketWatcher class.

  • Interface
class MidaMarketWatcher {
    constructor (parameters: MidaMarketWatcherParameters);
    
    getSymbolDirectives (symbol: string): MidaMarketWatcherDirectives | undefined;
    watch (symbol: string, directives: MidaMarketWatcherDirectives): Promise<void>;
    unwatch (symbol: string): Promise<void>;
}
  • Interface
type MidaMarketWatcherParameters = {
    tradingAccount: MidaTradingAccount;
};