What about a trade management function? These are called every tick.