I am trying to learn F# and would like to create a platform to test trading strategies. Usually brokers API broadcasts C# events every time a tick in the book is updated. What is the proper functional way to listen to C# events and react to those? Is there an established way to abstract the implementation out from the way ticks are dispatched being able to use the same code to test online (from events) and offline (from database and or files)?
Any reference to established techniques and functional design?
Thanks in advance