curl --request POST \
--url https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core",
"market_data_environment_name": "Example market data",
"provider_id": "<string>",
"bond": {
"$type": "Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"par_value": 123,
"issuer": "<string>",
"issuer_id": "<string>",
"dated_date": "2023-11-07T05:31:56Z",
"first_coupon_date": "2023-11-07T05:31:56Z",
"penultimate_coupon_date": "2023-11-07T05:31:56Z",
"maturity_date": "2023-11-07T05:31:56Z",
"roll_date": "2023-11-07T05:31:56Z",
"end_to_end": true,
"settlement_lag": 123,
"coupon_rate": 123,
"calendar": "<string>",
"next_coupon_index": 123,
"bond_coupons": [
{
"$type": "Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core",
"coupon_leg_start_date": "2023-11-07T05:31:56Z",
"coupon_leg_end_date": "2023-11-07T05:31:56Z",
"coupon_leg_first_coupon_date": "2023-11-07T05:31:56Z",
"coupon_leg_penultimate_coupon_date": "2023-11-07T05:31:56Z",
"fixed_coupon_rate": 123,
"coupon_index_id": "<string>",
"index_fixing_lag": 123,
"index_multiplier": 123,
"coupon_floor": 123,
"coupon_cap": 123
}
],
"redemption_rate": 123,
"is_trs": true,
"traded_price": 123,
"funding_currency": "<string>",
"trs_expiration_date": "2023-11-07T05:31:56Z"
},
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap"
payload = {
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core",
"market_data_environment_name": "Example market data",
"provider_id": "<string>",
"bond": {
"$type": "Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"par_value": 123,
"issuer": "<string>",
"issuer_id": "<string>",
"dated_date": "2023-11-07T05:31:56Z",
"first_coupon_date": "2023-11-07T05:31:56Z",
"penultimate_coupon_date": "2023-11-07T05:31:56Z",
"maturity_date": "2023-11-07T05:31:56Z",
"roll_date": "2023-11-07T05:31:56Z",
"end_to_end": True,
"settlement_lag": 123,
"coupon_rate": 123,
"calendar": "<string>",
"next_coupon_index": 123,
"bond_coupons": [
{
"$type": "Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core",
"coupon_leg_start_date": "2023-11-07T05:31:56Z",
"coupon_leg_end_date": "2023-11-07T05:31:56Z",
"coupon_leg_first_coupon_date": "2023-11-07T05:31:56Z",
"coupon_leg_penultimate_coupon_date": "2023-11-07T05:31:56Z",
"fixed_coupon_rate": 123,
"coupon_index_id": "<string>",
"index_fixing_lag": 123,
"index_multiplier": 123,
"coupon_floor": 123,
"coupon_cap": 123
}
],
"redemption_rate": 123,
"is_trs": True,
"traded_price": 123,
"funding_currency": "<string>",
"trs_expiration_date": "2023-11-07T05:31:56Z"
},
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
$type: 'Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core',
market_data_environment_name: 'Example market data',
provider_id: '<string>',
bond: {
$type: 'Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core',
identifier: '<string>',
currency: '<string>',
expiration_date: '2023-11-07T05:31:56Z',
bond_identifier: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
par_value: 123,
issuer: '<string>',
issuer_id: '<string>',
dated_date: '2023-11-07T05:31:56Z',
first_coupon_date: '2023-11-07T05:31:56Z',
penultimate_coupon_date: '2023-11-07T05:31:56Z',
maturity_date: '2023-11-07T05:31:56Z',
roll_date: '2023-11-07T05:31:56Z',
end_to_end: true,
settlement_lag: 123,
coupon_rate: 123,
calendar: '<string>',
next_coupon_index: 123,
bond_coupons: [
{
$type: 'Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core',
coupon_leg_start_date: '2023-11-07T05:31:56Z',
coupon_leg_end_date: '2023-11-07T05:31:56Z',
coupon_leg_first_coupon_date: '2023-11-07T05:31:56Z',
coupon_leg_penultimate_coupon_date: '2023-11-07T05:31:56Z',
fixed_coupon_rate: 123,
coupon_index_id: '<string>',
index_fixing_lag: 123,
index_multiplier: 123,
coupon_floor: 123,
coupon_cap: 123
}
],
redemption_rate: 123,
is_trs: true,
traded_price: 123,
funding_currency: '<string>',
trs_expiration_date: '2023-11-07T05:31:56Z'
},
start_date: '2023-11-07T05:31:56Z',
end_date: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'$type' => 'Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core',
'market_data_environment_name' => 'Example market data',
'provider_id' => '<string>',
'bond' => [
'$type' => 'Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core',
'identifier' => '<string>',
'currency' => '<string>',
'expiration_date' => '2023-11-07T05:31:56Z',
'bond_identifier' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'par_value' => 123,
'issuer' => '<string>',
'issuer_id' => '<string>',
'dated_date' => '2023-11-07T05:31:56Z',
'first_coupon_date' => '2023-11-07T05:31:56Z',
'penultimate_coupon_date' => '2023-11-07T05:31:56Z',
'maturity_date' => '2023-11-07T05:31:56Z',
'roll_date' => '2023-11-07T05:31:56Z',
'end_to_end' => true,
'settlement_lag' => 123,
'coupon_rate' => 123,
'calendar' => '<string>',
'next_coupon_index' => 123,
'bond_coupons' => [
[
'$type' => 'Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core',
'coupon_leg_start_date' => '2023-11-07T05:31:56Z',
'coupon_leg_end_date' => '2023-11-07T05:31:56Z',
'coupon_leg_first_coupon_date' => '2023-11-07T05:31:56Z',
'coupon_leg_penultimate_coupon_date' => '2023-11-07T05:31:56Z',
'fixed_coupon_rate' => 123,
'coupon_index_id' => '<string>',
'index_fixing_lag' => 123,
'index_multiplier' => 123,
'coupon_floor' => 123,
'coupon_cap' => 123
]
],
'redemption_rate' => 123,
'is_trs' => true,
'traded_price' => 123,
'funding_currency' => '<string>',
'trs_expiration_date' => '2023-11-07T05:31:56Z'
],
'start_date' => '2023-11-07T05:31:56Z',
'end_date' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap"
payload := strings.NewReader("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapResponse, Derivitec.Web.Core",
"is_success": true,
"error_messages": [
"<string>"
],
"date_coupon_map": [
{
"$type": "Derivitec.Web.Core.Tradables.DateCouponMap, Derivitec.Web.Core",
"date": "<string>",
"coupon": 123
}
]
}Retrieve dated coupons for a bond definition.
Use this operation when a complete public bond contract and its accompanying market-data container are
already available and dated coupon values are needed between two dates. Provider selection defaults to the
caller’s organisation. StartDate and EndDate are interpreted as calendar dates. This read-only
operation completes before returning and can report contract or market-data validation errors with available entries.
curl --request POST \
--url https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core",
"market_data_environment_name": "Example market data",
"provider_id": "<string>",
"bond": {
"$type": "Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"par_value": 123,
"issuer": "<string>",
"issuer_id": "<string>",
"dated_date": "2023-11-07T05:31:56Z",
"first_coupon_date": "2023-11-07T05:31:56Z",
"penultimate_coupon_date": "2023-11-07T05:31:56Z",
"maturity_date": "2023-11-07T05:31:56Z",
"roll_date": "2023-11-07T05:31:56Z",
"end_to_end": true,
"settlement_lag": 123,
"coupon_rate": 123,
"calendar": "<string>",
"next_coupon_index": 123,
"bond_coupons": [
{
"$type": "Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core",
"coupon_leg_start_date": "2023-11-07T05:31:56Z",
"coupon_leg_end_date": "2023-11-07T05:31:56Z",
"coupon_leg_first_coupon_date": "2023-11-07T05:31:56Z",
"coupon_leg_penultimate_coupon_date": "2023-11-07T05:31:56Z",
"fixed_coupon_rate": 123,
"coupon_index_id": "<string>",
"index_fixing_lag": 123,
"index_multiplier": 123,
"coupon_floor": 123,
"coupon_cap": 123
}
],
"redemption_rate": 123,
"is_trs": true,
"traded_price": 123,
"funding_currency": "<string>",
"trs_expiration_date": "2023-11-07T05:31:56Z"
},
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap"
payload = {
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core",
"market_data_environment_name": "Example market data",
"provider_id": "<string>",
"bond": {
"$type": "Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"par_value": 123,
"issuer": "<string>",
"issuer_id": "<string>",
"dated_date": "2023-11-07T05:31:56Z",
"first_coupon_date": "2023-11-07T05:31:56Z",
"penultimate_coupon_date": "2023-11-07T05:31:56Z",
"maturity_date": "2023-11-07T05:31:56Z",
"roll_date": "2023-11-07T05:31:56Z",
"end_to_end": True,
"settlement_lag": 123,
"coupon_rate": 123,
"calendar": "<string>",
"next_coupon_index": 123,
"bond_coupons": [
{
"$type": "Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core",
"coupon_leg_start_date": "2023-11-07T05:31:56Z",
"coupon_leg_end_date": "2023-11-07T05:31:56Z",
"coupon_leg_first_coupon_date": "2023-11-07T05:31:56Z",
"coupon_leg_penultimate_coupon_date": "2023-11-07T05:31:56Z",
"fixed_coupon_rate": 123,
"coupon_index_id": "<string>",
"index_fixing_lag": 123,
"index_multiplier": 123,
"coupon_floor": 123,
"coupon_cap": 123
}
],
"redemption_rate": 123,
"is_trs": True,
"traded_price": 123,
"funding_currency": "<string>",
"trs_expiration_date": "2023-11-07T05:31:56Z"
},
"start_date": "2023-11-07T05:31:56Z",
"end_date": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json-patch+json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json-patch+json'},
body: JSON.stringify({
$type: 'Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core',
market_data_environment_name: 'Example market data',
provider_id: '<string>',
bond: {
$type: 'Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core',
identifier: '<string>',
currency: '<string>',
expiration_date: '2023-11-07T05:31:56Z',
bond_identifier: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
par_value: 123,
issuer: '<string>',
issuer_id: '<string>',
dated_date: '2023-11-07T05:31:56Z',
first_coupon_date: '2023-11-07T05:31:56Z',
penultimate_coupon_date: '2023-11-07T05:31:56Z',
maturity_date: '2023-11-07T05:31:56Z',
roll_date: '2023-11-07T05:31:56Z',
end_to_end: true,
settlement_lag: 123,
coupon_rate: 123,
calendar: '<string>',
next_coupon_index: 123,
bond_coupons: [
{
$type: 'Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core',
coupon_leg_start_date: '2023-11-07T05:31:56Z',
coupon_leg_end_date: '2023-11-07T05:31:56Z',
coupon_leg_first_coupon_date: '2023-11-07T05:31:56Z',
coupon_leg_penultimate_coupon_date: '2023-11-07T05:31:56Z',
fixed_coupon_rate: 123,
coupon_index_id: '<string>',
index_fixing_lag: 123,
index_multiplier: 123,
coupon_floor: 123,
coupon_cap: 123
}
],
redemption_rate: 123,
is_trs: true,
traded_price: 123,
funding_currency: '<string>',
trs_expiration_date: '2023-11-07T05:31:56Z'
},
start_date: '2023-11-07T05:31:56Z',
end_date: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'$type' => 'Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core',
'market_data_environment_name' => 'Example market data',
'provider_id' => '<string>',
'bond' => [
'$type' => 'Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core',
'identifier' => '<string>',
'currency' => '<string>',
'expiration_date' => '2023-11-07T05:31:56Z',
'bond_identifier' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'par_value' => 123,
'issuer' => '<string>',
'issuer_id' => '<string>',
'dated_date' => '2023-11-07T05:31:56Z',
'first_coupon_date' => '2023-11-07T05:31:56Z',
'penultimate_coupon_date' => '2023-11-07T05:31:56Z',
'maturity_date' => '2023-11-07T05:31:56Z',
'roll_date' => '2023-11-07T05:31:56Z',
'end_to_end' => true,
'settlement_lag' => 123,
'coupon_rate' => 123,
'calendar' => '<string>',
'next_coupon_index' => 123,
'bond_coupons' => [
[
'$type' => 'Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core',
'coupon_leg_start_date' => '2023-11-07T05:31:56Z',
'coupon_leg_end_date' => '2023-11-07T05:31:56Z',
'coupon_leg_first_coupon_date' => '2023-11-07T05:31:56Z',
'coupon_leg_penultimate_coupon_date' => '2023-11-07T05:31:56Z',
'fixed_coupon_rate' => 123,
'coupon_index_id' => '<string>',
'index_fixing_lag' => 123,
'index_multiplier' => 123,
'coupon_floor' => 123,
'coupon_cap' => 123
]
],
'redemption_rate' => 123,
'is_trs' => true,
'traded_price' => 123,
'funding_currency' => '<string>',
'trs_expiration_date' => '2023-11-07T05:31:56Z'
],
'start_date' => '2023-11-07T05:31:56Z',
'end_date' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json-patch+json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap"
payload := strings.NewReader("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json-patch+json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.riskportal.activeviam.com/api/Bond/GetDateCouponMap")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json-patch+json'
request.body = "{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core\",\n \"market_data_environment_name\": \"Example market data\",\n \"provider_id\": \"<string>\",\n \"bond\": {\n \"$type\": \"Derivitec.Web.Core.Tradables.Bond, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"par_value\": 123,\n \"issuer\": \"<string>\",\n \"issuer_id\": \"<string>\",\n \"dated_date\": \"2023-11-07T05:31:56Z\",\n \"first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"maturity_date\": \"2023-11-07T05:31:56Z\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"end_to_end\": true,\n \"settlement_lag\": 123,\n \"coupon_rate\": 123,\n \"calendar\": \"<string>\",\n \"next_coupon_index\": 123,\n \"bond_coupons\": [\n {\n \"$type\": \"Derivitec.Web.Core.StaticData.BondCoupon, Derivitec.Web.Core\",\n \"coupon_leg_start_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_end_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_first_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"coupon_leg_penultimate_coupon_date\": \"2023-11-07T05:31:56Z\",\n \"fixed_coupon_rate\": 123,\n \"coupon_index_id\": \"<string>\",\n \"index_fixing_lag\": 123,\n \"index_multiplier\": 123,\n \"coupon_floor\": 123,\n \"coupon_cap\": 123\n }\n ],\n \"redemption_rate\": 123,\n \"is_trs\": true,\n \"traded_price\": 123,\n \"funding_currency\": \"<string>\",\n \"trs_expiration_date\": \"2023-11-07T05:31:56Z\"\n },\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"end_date\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"$type": "Derivitec.Web.Core.Tradables.ApiGetDateCouponMapResponse, Derivitec.Web.Core",
"is_success": true,
"error_messages": [
"<string>"
],
"date_coupon_map": [
{
"$type": "Derivitec.Web.Core.Tradables.DateCouponMap, Derivitec.Web.Core",
"date": "<string>",
"coupon": 123
}
]
}Authorizations
OAuth2 access-token requested from AWS Cognito and provided as a Auth Bearer header
Body
The polymorphic public Bond contract, supplied MktData container, calendar-date StartDate/EndDate, and at most one provider selector; concrete Bond JSON shapes are not enumerated here.
Bond, market data, and date interval used to request dated coupon values.
Derivitec.Web.Core.Tradables.ApiGetDateCouponMapRequest, Derivitec.Web.Core Name of the market-data environment to use. Supply either this name or provider_id, not both.
"Example market data"
Opaque identifier of the market-data provider to use. Supply either this identifier or market_data_environment_name, not both.
Polymorphic contract role for bonds that can produce cash flows.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Show child attributes
Show child attributes
Serializable collection of the market data required by a valuation request.
Show child attributes
Show child attributes
Lower date bound of the requested coupon map; inclusivity is not defined here.
Upper date bound of the requested coupon map; inclusivity is not defined here.
Response
Returns date/coupon pairs with any contract or market-data validation errors.
Dated coupon values returned for the requested bond and interval.
Derivitec.Web.Core.Tradables.ApiGetDateCouponMapResponse, Derivitec.Web.Core Whether the operation completed successfully. The default is true; error outcomes set it to false.
true
Messages explaining operation-level failures. The collection is empty by default.
Date-and-coupon entries returned for the bond.
Show child attributes
Show child attributes
Was this page helpful?