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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<SwapFlowScheduleResponse> generateFlowSchedule(SwapFlowScheduleRequest swapFlowScheduleRequest) org.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, waitMethods inherited from interface net.finmath.smartcontract.api.ValuationApi
_generateFlowSchedule, _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:
marginin interfaceValuationApi
-
value
- Specified by:
valuein interfaceValuationApi
-
valueAtTime
- Specified by:
valueAtTimein interfaceValuationApi
-
testProductValue
public org.springframework.http.ResponseEntity<ValueResult> testProductValue(org.springframework.web.multipart.MultipartFile tradeData) - Specified by:
testProductValuein interfaceValuationApi
-
generateFlowSchedule
public org.springframework.http.ResponseEntity<SwapFlowScheduleResponse> generateFlowSchedule(SwapFlowScheduleRequest swapFlowScheduleRequest) - Specified by:
generateFlowSchedulein interfaceValuationApi
-
test
Request mapping for test- Returns:
- String "Connect successful".
-