OnTick event is not getting fired in Kite 3.0

I have assigned a method to OnTick delegate and it is not firing. Whereas it was working fine in Kite previous version, but after upgrading to Kite 3.0 it is not. Could you please verify ?
  • MAG
    MAG edited February 2018
    Check for syntax error if you are migrating from kite 2.0 to kite 3.0
    def on_ticks( ws , ticks ) : # KIte 3.0
    def on_tick( tick , ws ) : # Kite 2.0

    And the callback assignment also changes
    kws.on_ticks = on_ticks # Kite 3.0
    instead of
    kws.on_tick = on_tick # kite 2.0

    and the method name and callback assignement is 'ticks' - plural in kite 3.0
    you need not change the method name ontick to onticks if your callback assignment reads
    kws.on_ticks = on_tick
    But you would need to change the ( tick , ws )
    to ( ws , ticks ) in the method definition.

    Made the same mistake myself.
Sign In or Register to comment.