Topic/reqs 689

* End-to-end test for variation margin calculation. 
* API is included.