Airplane Madness Coding – Financial Market Simulation
A few people may have realised that I’m flying more this year. As anyone who flies a lot will know, there are only so many movies you can watch, and work document one can read/write/review. At a certain point, I find the need to code :) Recently (whatever timeframe that means🙂 ) I’ve decide to attempt to merge all the mad spike/proof of concept idea’s I’ve had over the last n years into a financial market simulation. Essentially, the concept is to take the various ideals I’ve kicked around in the many silo’s of finance, and weld them together to construct a simulation offering the normal high level actors such as banks, ECN’s, hedge funds etc. Obviously, given the Rx revival on this blog, Rx is a key pattern in the construction of the simulation world.
Initially, I’ve decided to avoid any IPC, and simply constructed an in-memory message bus’s to connect the actors within a single process (and sub actors within an actor leveraging separate message bus’s), offering a faster speed of development in-flight :) In the future, I expect this to change to allow the solution to scale.
Pricing and execution are supported (basic) within the simulator today, risk and hedge will follow soon. Banks can be configured to run plain pricing engines with a model at one end of the bank spectrum, with the other offer algo type strategies to generate instrument pricing.