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.

~ by mdavey on September 22, 2013.

4 Responses to “Airplane Madness Coding – Financial Market Simulation”

  1. did you use scala?

  2. sorry, I just saw that you used Rx, would love to see the code. thinking about sharing?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: