Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Domain Model Financial Trading application

my company is thinking about implementing a new financial compliance trading application which is an application that would check all trades that would be executed by the company. A very simple check might be "Don't Invest in Stocks that sell Alcohol" for example.

We need to define a financial business object model and then design the actual rule engine. Some potential data models would be Security, Trade, Derivative, etc.

My question does any one know where I could look at some Financial Domain Model already written that would be a good starting place for us to begin our analysis?

We don't want to re-invent the wheel and coming up with an existing financial object model would be very helpful. Thanks all

like image 592
Peter Delaney Avatar asked Feb 15 '10 16:02

Peter Delaney


2 Answers

You could check out the FPML spec. for some ideas about how to model your data. However, I'd recommend only browsing it to get an idea of the domain objects you might need - Don't try to copy it as it's almost certainly too complex / detailed for your needs.

In fact for domain-specific data such as you describe I've found it's almost always better to build rather than buy (cheaper, faster, easier to change, easier to understand, better fit within your fitm). However, you might want to consider a 3rd party engine for implementing your actual rules component (e.g. Drools).

like image 143
Adamski Avatar answered Nov 13 '22 12:11

Adamski


Well, your problem domain is rather different, because you basically want an rule-driven system, but if you want to see a very good object model for financial applications, see Quantlib. It's open-source, and it's extremely well documented. It approaches the problem from a option pricing perspective, but it might give you some ideas anyway. As an example, see how they have modelled a swap.

like image 35
omerkudat Avatar answered Nov 13 '22 14:11

omerkudat