Package net.finmath.smartcontract.api
Interface PlainSwapEditorApi
- All Known Implementing Classes:
PlainSwapEditorController
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2024-12-05T10:54:56.542156+01:00[Europe/Berlin]")
@Validated
public interface PlainSwapEditorApi
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.springframework.http.ResponseEntity
<String> _changeDataset
(@Valid String body) POST /plain-swap-editor/change-dataset : Request a saved contract.default org.springframework.http.ResponseEntity
<ValueResult> _evaluateFromPlainSwapEditor
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/evaluate-from-editor : Request mapping for valuation of the trade data coming from the editor.default org.springframework.http.ResponseEntity
<String> _generatePlainSwapSdcml
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/generate-xml : Request mapping for generation of the trade data SDCmLdefault org.springframework.http.ResponseEntity
<List<CashflowPeriod>> _getFixedSchedule
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-fixed-schedule : Request payment schedule for the fixed leg defined in the editor.default org.springframework.http.ResponseEntity
<List<CashflowPeriod>> _getFloatingSchedule
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-floating-schedule : Request payment schedule for the floating leg defined in the editor.default org.springframework.http.ResponseEntity
<Double> _getParRate
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-par-rate : Request the par rate for the swap defined in the editor.GET /plain-swap-editor/get-saved-contracts : Request the list of saved contracts.GET /plain-swap-editor/get-saved-market-data : Request the list of saved market data.default org.springframework.http.ResponseEntity
<MarketDataSet> GET /plain-swap-editor/grab-market-data : Request mapping for transferring the active dataset to the clientdefault org.springframework.http.ResponseEntity
<PlainSwapOperationRequest> _loadContract
(@Valid String body) POST /plain-swap-editor/load-contract : Request a saved contract.default org.springframework.http.ResponseEntity
<ValueResult> _refreshMarketData
(@Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/refresh-market-data : Request mapping for valuation of the trade data coming from the editor.default org.springframework.http.ResponseEntity
<String> _saveContract
(@Valid SaveContractRequest saveContractRequest) POST /plain-swap-editor/save-contract : Request to save a contract.default org.springframework.http.ResponseEntity
<String> _uploadMarketData
(org.springframework.web.multipart.MultipartFile tradeData) POST /plain-swap-editor/upload-market-data : Request to upload market datadefault org.springframework.http.ResponseEntity
<String> changeDataset
(String body) default org.springframework.http.ResponseEntity
<ValueResult> evaluateFromPlainSwapEditor
(PlainSwapOperationRequest plainSwapOperationRequest) default org.springframework.http.ResponseEntity
<String> generatePlainSwapSdcml
(PlainSwapOperationRequest plainSwapOperationRequest) default org.springframework.http.ResponseEntity
<List<CashflowPeriod>> getFixedSchedule
(PlainSwapOperationRequest plainSwapOperationRequest) default org.springframework.http.ResponseEntity
<List<CashflowPeriod>> getFloatingSchedule
(PlainSwapOperationRequest plainSwapOperationRequest) default org.springframework.http.ResponseEntity
<Double> getParRate
(PlainSwapOperationRequest plainSwapOperationRequest) default Optional
<org.springframework.web.context.request.NativeWebRequest> default org.springframework.http.ResponseEntity
<MarketDataSet> default org.springframework.http.ResponseEntity
<PlainSwapOperationRequest> loadContract
(String body) default org.springframework.http.ResponseEntity
<ValueResult> refreshMarketData
(PlainSwapOperationRequest plainSwapOperationRequest) default org.springframework.http.ResponseEntity
<String> saveContract
(SaveContractRequest saveContractRequest) default org.springframework.http.ResponseEntity
<String> uploadMarketData
(org.springframework.web.multipart.MultipartFile tradeData)
-
Method Details
-
getRequest
-
_changeDataset
@RequestMapping(method=POST, value="/plain-swap-editor/change-dataset", produces={"text/plain","application/json"}, consumes="application/json") default org.springframework.http.ResponseEntity<String> _changeDataset(@Valid @RequestBody(required=false) @Valid String body) POST /plain-swap-editor/change-dataset : Request a saved contract.- Parameters:
body
- (optional)- Returns:
- Fetch successful. (status code 200) or unexpected error (status code 200)
-
changeDataset
-
_evaluateFromPlainSwapEditor
@RequestMapping(method=POST, value="/plain-swap-editor/evaluate-from-editor", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<ValueResult> _evaluateFromPlainSwapEditor(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/evaluate-from-editor : Request mapping for valuation of the trade data coming from the editor.- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- Valuation successful. (status code 200) or unexpected error (status code 200)
-
evaluateFromPlainSwapEditor
default org.springframework.http.ResponseEntity<ValueResult> evaluateFromPlainSwapEditor(PlainSwapOperationRequest plainSwapOperationRequest) -
_generatePlainSwapSdcml
@RequestMapping(method=POST, value="/plain-swap-editor/generate-xml", produces={"text/plain","application/json"}, consumes="application/json") default org.springframework.http.ResponseEntity<String> _generatePlainSwapSdcml(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/generate-xml : Request mapping for generation of the trade data SDCmL- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- SDCmL was generated (status code 200) or unexpected error (status code 200)
-
generatePlainSwapSdcml
default org.springframework.http.ResponseEntity<String> generatePlainSwapSdcml(PlainSwapOperationRequest plainSwapOperationRequest) -
_getFixedSchedule
@RequestMapping(method=POST, value="/plain-swap-editor/get-fixed-schedule", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<List<CashflowPeriod>> _getFixedSchedule(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-fixed-schedule : Request payment schedule for the fixed leg defined in the editor.- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- Schedule generation successful. (status code 200) or unexpected error (status code 200)
-
getFixedSchedule
default org.springframework.http.ResponseEntity<List<CashflowPeriod>> getFixedSchedule(PlainSwapOperationRequest plainSwapOperationRequest) -
_getFloatingSchedule
@RequestMapping(method=POST, value="/plain-swap-editor/get-floating-schedule", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<List<CashflowPeriod>> _getFloatingSchedule(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-floating-schedule : Request payment schedule for the floating leg defined in the editor.- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- Schedule generation successful. (status code 200) or unexpected error (status code 200)
-
getFloatingSchedule
default org.springframework.http.ResponseEntity<List<CashflowPeriod>> getFloatingSchedule(PlainSwapOperationRequest plainSwapOperationRequest) -
_getParRate
@RequestMapping(method=POST, value="/plain-swap-editor/get-par-rate", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<Double> _getParRate(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/get-par-rate : Request the par rate for the swap defined in the editor.- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- Schedule generation successful. (status code 200) or unexpected error (status code 200)
-
getParRate
default org.springframework.http.ResponseEntity<Double> getParRate(PlainSwapOperationRequest plainSwapOperationRequest) -
_getSavedContracts
@RequestMapping(method=GET, value="/plain-swap-editor/get-saved-contracts", produces="application/json") default org.springframework.http.ResponseEntity<List<String>> _getSavedContracts()GET /plain-swap-editor/get-saved-contracts : Request the list of saved contracts.- Returns:
- Fetch successful. (status code 200) or unexpected error (status code 200)
-
getSavedContracts
-
_getSavedMarketData
@RequestMapping(method=GET, value="/plain-swap-editor/get-saved-market-data", produces="application/json") default org.springframework.http.ResponseEntity<List<String>> _getSavedMarketData()GET /plain-swap-editor/get-saved-market-data : Request the list of saved market data.- Returns:
- Fetch successful. (status code 200) or unexpected error (status code 200)
-
getSavedMarketData
-
_grabMarketData
@RequestMapping(method=GET, value="/plain-swap-editor/grab-market-data", produces="application/json") default org.springframework.http.ResponseEntity<MarketDataSet> _grabMarketData()GET /plain-swap-editor/grab-market-data : Request mapping for transferring the active dataset to the client- Returns:
- Valuation successful. (status code 200) or unexpected error (status code 200)
-
grabMarketData
-
_loadContract
@RequestMapping(method=POST, value="/plain-swap-editor/load-contract", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<PlainSwapOperationRequest> _loadContract(@Valid @RequestBody(required=false) @Valid String body) POST /plain-swap-editor/load-contract : Request a saved contract.- Parameters:
body
- (optional)- Returns:
- Fetch successful. (status code 200) or unexpected error (status code 200)
-
loadContract
default org.springframework.http.ResponseEntity<PlainSwapOperationRequest> loadContract(String body) -
_refreshMarketData
@RequestMapping(method=POST, value="/plain-swap-editor/refresh-market-data", produces="application/json", consumes="application/json") default org.springframework.http.ResponseEntity<ValueResult> _refreshMarketData(@Valid @RequestBody(required=false) @Valid PlainSwapOperationRequest plainSwapOperationRequest) POST /plain-swap-editor/refresh-market-data : Request mapping for valuation of the trade data coming from the editor.- Parameters:
plainSwapOperationRequest
- (optional)- Returns:
- Valuation successful. (status code 200) or unexpected error (status code 200)
-
refreshMarketData
default org.springframework.http.ResponseEntity<ValueResult> refreshMarketData(PlainSwapOperationRequest plainSwapOperationRequest) -
_saveContract
@RequestMapping(method=POST, value="/plain-swap-editor/save-contract", produces={"text/plain","application/json"}, consumes="application/json") default org.springframework.http.ResponseEntity<String> _saveContract(@Valid @RequestBody(required=false) @Valid SaveContractRequest saveContractRequest) POST /plain-swap-editor/save-contract : Request to save a contract.- Parameters:
saveContractRequest
- (optional)- Returns:
- Save successful. (status code 200) or unexpected error (status code 200)
-
saveContract
default org.springframework.http.ResponseEntity<String> saveContract(SaveContractRequest saveContractRequest) -
_uploadMarketData
@RequestMapping(method=POST, value="/plain-swap-editor/upload-market-data", produces={"text/plain","application/json"}, consumes="multipart/form-data") default org.springframework.http.ResponseEntity<String> _uploadMarketData(@RequestPart(value="tradeData",required=true) org.springframework.web.multipart.MultipartFile tradeData) POST /plain-swap-editor/upload-market-data : Request to upload market data- Parameters:
tradeData
- (required)- Returns:
- Upload successful. (status code 200) or unexpected error (status code 200)
-
uploadMarketData
default org.springframework.http.ResponseEntity<String> uploadMarketData(org.springframework.web.multipart.MultipartFile tradeData)
-