curl --request POST \
--url https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core",
"provider_id": "<string>",
"market_data_environment_names": [
"<string>"
],
"market_data_environment_name": "Example market data",
"contracts": [
{
"$type": "Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"asset_swap_spread": 123,
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"calendar_name": "<string>",
"coupon_rate": 123,
"end_to_end": true,
"notional": 123,
"payment_lag": 123,
"period_str": "<string>",
"rate_asset_name": "<string>",
"roll_date": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"initial_fx_rate": 123
}
],
"pricing_date": "2023-11-07T05:31:56Z",
"mkt_data_date": "2023-11-07T05:31:56Z",
"equity_indices_to_decompose": [
{
"key": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"value": true
}
]
}
'import requests
url = "https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts"
payload = {
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core",
"provider_id": "<string>",
"market_data_environment_names": ["<string>"],
"market_data_environment_name": "Example market data",
"contracts": [
{
"$type": "Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"asset_swap_spread": 123,
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"calendar_name": "<string>",
"coupon_rate": 123,
"end_to_end": True,
"notional": 123,
"payment_lag": 123,
"period_str": "<string>",
"rate_asset_name": "<string>",
"roll_date": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"initial_fx_rate": 123
}
],
"pricing_date": "2023-11-07T05:31:56Z",
"mkt_data_date": "2023-11-07T05:31:56Z",
"equity_indices_to_decompose": [
{
"key": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"value": True
}
]
}
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core',
provider_id: '<string>',
market_data_environment_names: ['<string>'],
market_data_environment_name: 'Example market data',
contracts: [
{
$type: 'Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core',
identifier: '<string>',
currency: '<string>',
expiration_date: '2023-11-07T05:31:56Z',
asset_swap_spread: 123,
bond_identifier: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
calendar_name: '<string>',
coupon_rate: 123,
end_to_end: true,
notional: 123,
payment_lag: 123,
period_str: '<string>',
rate_asset_name: '<string>',
roll_date: '2023-11-07T05:31:56Z',
start_date: '2023-11-07T05:31:56Z',
initial_fx_rate: 123
}
],
pricing_date: '2023-11-07T05:31:56Z',
mkt_data_date: '2023-11-07T05:31:56Z',
equity_indices_to_decompose: [
{
key: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
value: true
}
]
})
};
fetch('https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts', 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/Tradable/GetPricingDetailsForContracts",
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core',
'provider_id' => '<string>',
'market_data_environment_names' => [
'<string>'
],
'market_data_environment_name' => 'Example market data',
'contracts' => [
[
'$type' => 'Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core',
'identifier' => '<string>',
'currency' => '<string>',
'expiration_date' => '2023-11-07T05:31:56Z',
'asset_swap_spread' => 123,
'bond_identifier' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'calendar_name' => '<string>',
'coupon_rate' => 123,
'end_to_end' => true,
'notional' => 123,
'payment_lag' => 123,
'period_str' => '<string>',
'rate_asset_name' => '<string>',
'roll_date' => '2023-11-07T05:31:56Z',
'start_date' => '2023-11-07T05:31:56Z',
'initial_fx_rate' => 123
]
],
'pricing_date' => '2023-11-07T05:31:56Z',
'mkt_data_date' => '2023-11-07T05:31:56Z',
'equity_indices_to_decompose' => [
[
'key' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'value' => true
]
]
]),
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/Tradable/GetPricingDetailsForContracts"
payload := strings.NewReader("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\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/Tradable/GetPricingDetailsForContracts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts")
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsResponse, Derivitec.Web.Core",
"is_success": true,
"error_messages": [
"<string>"
],
"pricing_details": [
{}
]
}Retrieve pricing details for contracts.
Returns pricing details for multiple contracts. Contract-specific errors can be present; IsSuccess is false when any error message is present. The market-data override constraints are the same as the single-contract operation. This is read-only.
curl --request POST \
--url https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core",
"provider_id": "<string>",
"market_data_environment_names": [
"<string>"
],
"market_data_environment_name": "Example market data",
"contracts": [
{
"$type": "Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"asset_swap_spread": 123,
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"calendar_name": "<string>",
"coupon_rate": 123,
"end_to_end": true,
"notional": 123,
"payment_lag": 123,
"period_str": "<string>",
"rate_asset_name": "<string>",
"roll_date": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"initial_fx_rate": 123
}
],
"pricing_date": "2023-11-07T05:31:56Z",
"mkt_data_date": "2023-11-07T05:31:56Z",
"equity_indices_to_decompose": [
{
"key": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"value": true
}
]
}
'import requests
url = "https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts"
payload = {
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core",
"provider_id": "<string>",
"market_data_environment_names": ["<string>"],
"market_data_environment_name": "Example market data",
"contracts": [
{
"$type": "Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core",
"identifier": "<string>",
"currency": "<string>",
"expiration_date": "2023-11-07T05:31:56Z",
"asset_swap_spread": 123,
"bond_identifier": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"calendar_name": "<string>",
"coupon_rate": 123,
"end_to_end": True,
"notional": 123,
"payment_lag": 123,
"period_str": "<string>",
"rate_asset_name": "<string>",
"roll_date": "2023-11-07T05:31:56Z",
"start_date": "2023-11-07T05:31:56Z",
"initial_fx_rate": 123
}
],
"pricing_date": "2023-11-07T05:31:56Z",
"mkt_data_date": "2023-11-07T05:31:56Z",
"equity_indices_to_decompose": [
{
"key": {
"$type": "Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core",
"code": "<string>",
"market_identification_code": "<string>"
},
"value": True
}
]
}
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core',
provider_id: '<string>',
market_data_environment_names: ['<string>'],
market_data_environment_name: 'Example market data',
contracts: [
{
$type: 'Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core',
identifier: '<string>',
currency: '<string>',
expiration_date: '2023-11-07T05:31:56Z',
asset_swap_spread: 123,
bond_identifier: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
calendar_name: '<string>',
coupon_rate: 123,
end_to_end: true,
notional: 123,
payment_lag: 123,
period_str: '<string>',
rate_asset_name: '<string>',
roll_date: '2023-11-07T05:31:56Z',
start_date: '2023-11-07T05:31:56Z',
initial_fx_rate: 123
}
],
pricing_date: '2023-11-07T05:31:56Z',
mkt_data_date: '2023-11-07T05:31:56Z',
equity_indices_to_decompose: [
{
key: {
$type: 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
code: '<string>',
market_identification_code: '<string>'
},
value: true
}
]
})
};
fetch('https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts', 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/Tradable/GetPricingDetailsForContracts",
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core',
'provider_id' => '<string>',
'market_data_environment_names' => [
'<string>'
],
'market_data_environment_name' => 'Example market data',
'contracts' => [
[
'$type' => 'Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core',
'identifier' => '<string>',
'currency' => '<string>',
'expiration_date' => '2023-11-07T05:31:56Z',
'asset_swap_spread' => 123,
'bond_identifier' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'calendar_name' => '<string>',
'coupon_rate' => 123,
'end_to_end' => true,
'notional' => 123,
'payment_lag' => 123,
'period_str' => '<string>',
'rate_asset_name' => '<string>',
'roll_date' => '2023-11-07T05:31:56Z',
'start_date' => '2023-11-07T05:31:56Z',
'initial_fx_rate' => 123
]
],
'pricing_date' => '2023-11-07T05:31:56Z',
'mkt_data_date' => '2023-11-07T05:31:56Z',
'equity_indices_to_decompose' => [
[
'key' => [
'$type' => 'Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core',
'code' => '<string>',
'market_identification_code' => '<string>'
],
'value' => true
]
]
]),
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/Tradable/GetPricingDetailsForContracts"
payload := strings.NewReader("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\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/Tradable/GetPricingDetailsForContracts")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json-patch+json")
.body("{\n \"$type\": \"Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.riskportal.activeviam.com/api/Tradable/GetPricingDetailsForContracts")
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.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core\",\n \"provider_id\": \"<string>\",\n \"market_data_environment_names\": [\n \"<string>\"\n ],\n \"market_data_environment_name\": \"Example market data\",\n \"contracts\": [\n {\n \"$type\": \"Derivitec.Web.Core.Tradables.Ascot, Derivitec.Web.Core\",\n \"identifier\": \"<string>\",\n \"currency\": \"<string>\",\n \"expiration_date\": \"2023-11-07T05:31:56Z\",\n \"asset_swap_spread\": 123,\n \"bond_identifier\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"calendar_name\": \"<string>\",\n \"coupon_rate\": 123,\n \"end_to_end\": true,\n \"notional\": 123,\n \"payment_lag\": 123,\n \"period_str\": \"<string>\",\n \"rate_asset_name\": \"<string>\",\n \"roll_date\": \"2023-11-07T05:31:56Z\",\n \"start_date\": \"2023-11-07T05:31:56Z\",\n \"initial_fx_rate\": 123\n }\n ],\n \"pricing_date\": \"2023-11-07T05:31:56Z\",\n \"mkt_data_date\": \"2023-11-07T05:31:56Z\",\n \"equity_indices_to_decompose\": [\n {\n \"key\": {\n \"$type\": \"Derivitec.Web.Core.MarketData.InstrumentIdentifier, Derivitec.Web.Core\",\n \"code\": \"<string>\",\n \"market_identification_code\": \"<string>\"\n },\n \"value\": true\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"$type": "Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsResponse, Derivitec.Web.Core",
"is_success": true,
"error_messages": [
"<string>"
],
"pricing_details": [
{}
]
}Authorizations
OAuth2 access-token requested from AWS Cognito and provided as a Auth Bearer header
Body
JSON request with a non-empty-by-intent Contracts list, PricingDate, MktDataDate, optional MarketDataOverride, optional equity-index decomposition choices, and one unambiguous environment-selection form.
Contracts and valuation context used to request combined tabular pricing details.
Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsRequest, Derivitec.Web.Core Opaque identifier of a single market-data provider to use instead of either environment-name option.
Access classification associated with the selected market-data environment.
view, edit, owner, blocked Names of the market-data environments to use. Do not combine this list with the single-name or provider-ID alternatives.
Single market-data environment name to use instead of market_data_environment_names or provider_id.
"Example market data"
Contracts whose pricing details are requested.
Polymorphic base role shared by public contract definitions.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
- Option 62
- Option 63
- Option 64
- Option 65
- Option 66
- Option 67
- Option 68
- Option 69
- Option 70
- Option 71
- Option 72
- Option 73
- Option 74
- Option 75
- Option 76
- Option 77
- Option 78
- Option 79
- Option 80
- Option 81
- Option 82
- Option 83
- Option 84
- Option 85
- Option 86
- Option 87
- Option 88
- Option 89
- Option 90
- Option 91
- Option 92
- Option 93
- Option 94
- Option 95
- Option 96
- Option 97
- Option 98
- Option 99
- Option 100
- Option 101
- Option 102
- Option 103
- Option 104
- Option 105
- Option 106
- Option 107
- Option 108
- Option 109
- Option 110
Show child attributes
Show child attributes
Date on which the contracts' pricing details are evaluated.
Date of market data used for the pricing details.
Optional market-data substitutions supplied with pricing, risk, or report calculations.
Show child attributes
Show child attributes
Equity-index identifiers paired with flags controlling whether each index is decomposed in the result.
Show child attributes
Show child attributes
Response
Returns pricing details and errors.
Combined tabular pricing details returned for the requested contracts.
Derivitec.Web.Core.Tradables.ApiPricingDetailsForContractsResponse, 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.
Pricing-detail table returned for the requested contracts.
Was this page helpful?