class_docstr: Tick filtering event operators that ``emit(time, price, size)``.
class_docstr_tok: ["Tick","filtering","event","operators","that","``","emit","(","time",",","price",",","size",")","``","."]
docstr: Aggregate ticks into time bars, where the timing of new bars
  is derived from a timer event.
  Emits a completed :class:`Bar`.
  
  This event stores a :class:`BarList` of all created bars in the
  ``bars`` property.
  
  Args:
      timer: Event for timing when a new bar starts.
docstr_tok: ["Aggregate","ticks","into","time","bars",",","where","the","timing","of","new","bars","is","derived","from","a","timer","event",".","Emits","a","completed",":","class",":","`","Bar","`",".","This","event","stores","a",":","class",":","`","BarList","`","of","all","created","bars","in","the","``","bars","``","property",".","Args",":","timer",":","Event","for","timing","when","a","new","bar","starts","."]
code: def timebars(self, timer: Event) -> "TimeBars":
      """
      Aggregate ticks into time bars, where the timing of new bars
      is derived from a timer event.
      Emits a completed :class:`Bar`.
  
      This event stores a :class:`BarList` of all created bars in the
      ``bars`` property.
  
      Args:
          timer: Event for timing when a new bar starts.
      """
      return TimeBars(timer, self)
  
imports: from dataclasses import dataclass, field
  from datetime import datetime
  from typing import ClassVar, List, Optional, Union
  from eventkit import Event, Op
  from ib_insync.contract import Contract
  from ib_insync.objects import DOMLevel, Dividends, FundamentalRatios, MktDepthData, OptionComputation, TickByTickAllLast, TickByTickBidAsk, TickByTickMidPoint, TickData
  from ib_insync.util import dataclassRepr, isNan
label_desc: Use image node_id 3 for calling the Tickfilter obj's underlying member method code with example usage: obj.timebars(timer) and returns: TimeBars