Class ValuationController
java.lang.Object
net.finmath.smartcontract.valuation.service.controllers.ValuationController
- All Implemented Interfaces:
ValuationApi
Controller for the settlement valuation REST service.
TODO Refactor try/catch once openapi can generate exception handling
- Author:
- Christian Fries, Peter Kohl-Landgraf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<MarginResult> margin
(MarginRequest marginRequest) Request mapping for the settlementvaluationForProductAsFPMLOneCurve //* @param valueRequest The request //* @return String Json representing the valuation.org.springframework.http.ResponseEntity
<String> test()
Request mapping for testorg.springframework.http.ResponseEntity
<ValueResult> testProductValue
(org.springframework.web.multipart.MultipartFile tradeData) org.springframework.http.ResponseEntity
<ValueResult> value
(ValueRequest valueRequest) org.springframework.http.ResponseEntity
<ValueResult> valueAtTime
(ValueRequest valueRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.finmath.smartcontract.api.ValuationApi
_legacyMargin, _margin, _testProductValue, _value, _valueAtTime, getRequest, legacyMargin
-
Constructor Details
-
ValuationController
public ValuationController()
-
-
Method Details
-
margin
Request mapping for the settlementvaluationForProductAsFPMLOneCurve //* @param valueRequest The request //* @return String Json representing the valuation.- Specified by:
margin
in interfaceValuationApi
-
value
- Specified by:
value
in interfaceValuationApi
-
valueAtTime
- Specified by:
valueAtTime
in interfaceValuationApi
-
testProductValue
public org.springframework.http.ResponseEntity<ValueResult> testProductValue(org.springframework.web.multipart.MultipartFile tradeData) - Specified by:
testProductValue
in interfaceValuationApi
-
test
Request mapping for test- Returns:
- String "Connect successful".
-