{"id":7972,"date":"2026-07-01T17:40:03","date_gmt":"2026-07-01T15:40:03","guid":{"rendered":"https:\/\/eodhd.com\/financial-apis\/?p=7972"},"modified":"2026-07-01T17:49:32","modified_gmt":"2026-07-01T15:49:32","slug":"credit-and-sovereign-risk-data-api","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api","title":{"rendered":"Credit and Sovereign Risk Data API"},"content":{"rendered":"<p><!-- Credit & Sovereign Risk Data API \u2014 public docs article for eodhd.com\/financial-apis\/credit-sovereign-risk-data-api --><br \/>\n<!-- Suggested meta description (Yoast\/Rank Math): --><br \/>\n<!-- Credit and sovereign risk API: corporate bond distress (NY Fed CMDI), HQM corporate yields, CFTC CDS market aggregates, sovereign risk premiums, ratings, CDS and default spreads from official public sources. --><\/p>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">The EODHD Credit and Sovereign Risk Data API brings credit-market and sovereign-risk indicators into one API, drawn entirely from official public sources. It closes a long-standing gap in EODHD coverage for credit analysts, sovereign-risk and EM macro desks, quant researchers, corporate treasury, and academic users.<\/p>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Seven endpoints are grouped into three themes: corporate credit conditions (the NY Fed corporate bond distress index and the HQM corporate yield curve), CDS market aggregates (weekly CFTC swaps data), and sovereign risk (risk premiums, credit ratings, CDS spreads, and rating-based default spreads). All seven share the same authentication, the same JSON response envelope, and a cost of one API call per request.<\/p>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\"><!--TOC--><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-overview\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Overview<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">All endpoints live under a common base path:<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/{group}\/{dataset}?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-corporate-credit-conditions\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Corporate Credit Conditions<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">This theme measures the health of the US corporate bond market from two angles: a market-distress index published by the New York Fed, and the high-quality corporate yield curve published by the US Treasury through FRED. Together they show whether corporate credit is functioning normally and what investment-grade issuers are paying to borrow across maturities.<\/p>\n\n\n\n<h3 id=\"h-corporate-bond-market-distress-index-cmdi\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">Corporate Bond Market Distress Index (CMDI)<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">The Corporate Bond Market Distress Index from the New York Fed summarises stress in the US corporate bond market on a scale from 0 to 1, where higher values indicate greater distress. Three series are returned per week: the whole-market index, the investment-grade sub-index, and the high-yield sub-index. The series is published weekly.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Pagination by page[offset] and page[limit]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>api_token<\/td><td>Yes<\/td><td>Your EODHD API token<\/td><\/tr><tr><td>filter[from]<\/td><td>No<\/td><td>Start date, YYYY-MM-DD, inclusive<\/td><\/tr><tr><td>filter[to]<\/td><td>No<\/td><td>End date, YYYY-MM-DD, inclusive, on or after filter[from]<\/td><\/tr><tr><td>page[limit]<\/td><td>No<\/td><td>Rows per page, 1 to 100, default 20<\/td><\/tr><tr><td>page[offset]<\/td><td>No<\/td><td>Rows to skip, default 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?api_token=YOUR_TOKEN&amp;filter[from]=2026-01-01&amp;filter[to]=2026-06-01\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"as_of_date\": \"2026-06-19T00:00:00+00:00\",\n      \"market_cmdi\": 0.13,\n      \"ig_cmdi\": 0.23,\n      \"hy_cmdi\": 0.06,\n      \"source\": \"ny_fed\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 1120,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"corporate_bond_market_distress_index\",\n    \"source\": \"ny_fed\",\n    \"frequency\": \"weekly\",\n    \"attribution\": \"\u00a9 Federal Reserve Bank of New York. Content from the New York Fed subject to the Terms of Use at newyorkfed.org.\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/corporate\/cmdi?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Observation week<\/td><\/tr><tr><td>market_cmdi<\/td><td>number<\/td><td>Whole-market distress index, 0 to 1<\/td><\/tr><tr><td>ig_cmdi<\/td><td>number<\/td><td>Investment-grade sub-index, 0 to 1<\/td><\/tr><tr><td>hy_cmdi<\/td><td>number<\/td><td>High-yield sub-index, 0 to 1<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, ny_fed<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"h-hqm-corporate-yield-curve\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">HQM Corporate Yield Curve<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">The High Quality Market corporate bond yield curve, published by the US Treasury and distributed through FRED, gives par yields and spot rates for AAA-to-A rated US corporate bonds across the maturity spectrum. Yields are in percent and the series is published monthly. Available maturities are 1, 2, 3, 5, 7, 10, 15, 20, 25, and 30 years, each in a par and a spot variant.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Pagination by page[offset] and page[limit]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>api_token<\/td><td>Yes<\/td><td>Your EODHD API token<\/td><\/tr><tr><td>filter[tenor]<\/td><td>No<\/td><td>One or more maturities in years: 1, 2, 3, 5, 7, 10, 15, 20, 25, 30<\/td><\/tr><tr><td>filter[type]<\/td><td>No<\/td><td>Yield type: par or spot<\/td><\/tr><tr><td>filter[from]<\/td><td>No<\/td><td>Start date, YYYY-MM-DD, inclusive<\/td><\/tr><tr><td>filter[to]<\/td><td>No<\/td><td>End date, YYYY-MM-DD, inclusive, on or after filter[from]<\/td><\/tr><tr><td>page[limit]<\/td><td>No<\/td><td>Rows per page, 1 to 100, default 20<\/td><\/tr><tr><td>page[offset]<\/td><td>No<\/td><td>Rows to skip, default 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?api_token=YOUR_TOKEN&amp;filter[tenor]=2,5,10&amp;filter[type]=par&amp;filter[from]=2026-01-01&amp;filter[to]=2026-06-01\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[tenor]<\/span>=<span class='orange bold filter[tenor]'>2,5,10<\/span>&<span class='white bold'>filter[type]<\/span>=<span class='orange bold filter[type]'>par<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[tenor]<\/span>=<span class='orange bold filter[tenor]'>2,5,10<\/span>&<span class='white bold'>filter[type]<\/span>=<span class='orange bold filter[type]'>par<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[tenor]<\/span>=<span class='orange bold filter[tenor]'>2,5,10<\/span>&<span class='white bold'>filter[type]<\/span>=<span class='orange bold filter[type]'>par<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[tenor]<\/span>=<span class='orange bold filter[tenor]'>2,5,10<\/span>&<span class='white bold'>filter[type]<\/span>=<span class='orange bold filter[type]'>par<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[tenor]<\/span>=<span class='orange bold filter[tenor]'>2,5,10<\/span>&<span class='white bold'>filter[type]<\/span>=<span class='orange bold filter[type]'>par<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"series_id\": \"HQMCB2YRP\",\n      \"tenor_years\": 2,\n      \"yield_type\": \"par\",\n      \"as_of_date\": \"2026-05-01T00:00:00+00:00\",\n      \"yield_value\": 4.37,\n      \"source\": \"fred\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 7126,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"hqm_corporate_yield_curve\",\n    \"source\": \"fred\",\n    \"frequency\": \"monthly\",\n    \"attribution\": \"U.S. Department of the Treasury, HQM Corporate Bond Yield Curve, retrieved from FRED, Federal Reserve Bank of St. Louis (public domain).\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/corporate\/hqm-yields?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>series_id<\/td><td>string<\/td><td>FRED series identifier<\/td><\/tr><tr><td>tenor_years<\/td><td>number<\/td><td>Maturity in years<\/td><\/tr><tr><td>yield_type<\/td><td>string<\/td><td>par or spot<\/td><\/tr><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Observation month<\/td><\/tr><tr><td>yield_value<\/td><td>number<\/td><td>Yield in percent<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, fred<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-cds-market-aggregates\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">CDS Market Aggregates<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">This endpoint exposes aggregate credit-default-swap market activity from the CFTC Weekly Swaps Report. Notional volumes are reported in millions of US dollars and broken down by credit grade or by cleared status, across geographic regions. The data is published weekly with a lag of about seventeen days after the reference week.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Pagination by page[offset] and page[limit]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>api_token<\/td><td>Yes<\/td><td>Your EODHD API token<\/td><\/tr><tr><td>filter[metric]<\/td><td>No<\/td><td>Volume metric. Currently gross_notional<\/td><\/tr><tr><td>filter[dimension]<\/td><td>No<\/td><td>Breakdown dimension: grade or cleared_status<\/td><\/tr><tr><td>filter[from]<\/td><td>No<\/td><td>Start date, YYYY-MM-DD, inclusive<\/td><\/tr><tr><td>filter[to]<\/td><td>No<\/td><td>End date, YYYY-MM-DD, inclusive, on or after filter[from]<\/td><\/tr><tr><td>page[limit]<\/td><td>No<\/td><td>Rows per page, 1 to 100, default 20<\/td><\/tr><tr><td>page[offset]<\/td><td>No<\/td><td>Rows to skip, default 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?api_token=YOUR_TOKEN&amp;filter[metric]=gross_notional&amp;filter[dimension]=grade&amp;filter[from]=2026-01-01&amp;filter[to]=2026-06-01\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[metric]<\/span>=<span class='orange bold filter[metric]'>gross_notional<\/span>&<span class='white bold'>filter[dimension]<\/span>=<span class='orange bold filter[dimension]'>grade<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[metric]<\/span>=<span class='orange bold filter[metric]'>gross_notional<\/span>&<span class='white bold'>filter[dimension]<\/span>=<span class='orange bold filter[dimension]'>grade<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[metric]<\/span>=<span class='orange bold filter[metric]'>gross_notional<\/span>&<span class='white bold'>filter[dimension]<\/span>=<span class='orange bold filter[dimension]'>grade<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[metric]<\/span>=<span class='orange bold filter[metric]'>gross_notional<\/span>&<span class='white bold'>filter[dimension]<\/span>=<span class='orange bold filter[dimension]'>grade<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[metric]<\/span>=<span class='orange bold filter[metric]'>gross_notional<\/span>&<span class='white bold'>filter[dimension]<\/span>=<span class='orange bold filter[dimension]'>grade<\/span>&<span class='white bold'>filter[from]<\/span>=<span class='orange bold filter[from]'>2026-01-01<\/span>&<span class='white bold'>filter[to]<\/span>=<span class='orange bold filter[to]'>2026-06-01<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"as_of_date\": \"2026-06-12T00:00:00+00:00\",\n      \"release_date\": \"2026-06-29T00:00:00+00:00\",\n      \"metric\": \"gross_notional\",\n      \"breakdown_dimension\": \"cleared_status\",\n      \"breakdown_value\": \"Cleared\",\n      \"region\": \"North America\",\n      \"usd_notional_mn\": 1986548,\n      \"source\": \"cftc\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 75,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"cds_market_aggregates\",\n    \"source\": \"cftc\",\n    \"frequency\": \"weekly\",\n    \"attribution\": \"Source: CFTC Weekly Swaps Report (public domain). Values in millions USD. Lag: T+17 days.\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/cds-market\/aggregates?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Reference week<\/td><\/tr><tr><td>release_date<\/td><td>string (date-time)<\/td><td>Date the CFTC published the figure<\/td><\/tr><tr><td>metric<\/td><td>string<\/td><td>Volume metric, gross_notional<\/td><\/tr><tr><td>breakdown_dimension<\/td><td>string<\/td><td>grade or cleared_status<\/td><\/tr><tr><td>breakdown_value<\/td><td>string<\/td><td>The value within the breakdown dimension<\/td><\/tr><tr><td>region<\/td><td>string<\/td><td>Asia, Europe, North America, Other Regions, or TOTAL<\/td><\/tr><tr><td>usd_notional_mn<\/td><td>number<\/td><td>Notional volume in millions of USD<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, cftc<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-sovereign-risk\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Sovereign Risk<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">The sovereign theme covers country-level credit risk, built on the annually updated Damodaran dataset at NYU Stern. Four endpoints cover 157 countries: risk premiums, credit ratings, CDS spreads, and a rating-to-default-spread lookup table. These are annual snapshots. Use filter[as_of] to pick a specific yearly snapshot; the latest is returned by default.<\/p>\n\n\n\n<h3 id=\"h-sovereign-risk-premium\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">Sovereign Risk Premium<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Country risk premium, equity risk premium, adjusted default spread, the corporate tax rate, and the sovereign CDS level where available, per country. All spread and premium values are decimal fractions, so 0.028 means 2.8 percent.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Pagination by page[offset] and page[limit]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Parameter<\/th><th>Required<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>api_token<\/td><td>Yes<\/td><td>Your EODHD API token<\/td><\/tr><tr><td>filter[country]<\/td><td>No<\/td><td>Country by ISO 3166 alpha-3 code, for example USA, or by name<\/td><\/tr><tr><td>filter[region]<\/td><td>No<\/td><td>Restrict to a Damodaran region, for example Europe<\/td><\/tr><tr><td>filter[as_of]<\/td><td>No<\/td><td>Snapshot date, YYYY-MM-DD<\/td><\/tr><tr><td>page[limit]<\/td><td>No<\/td><td>Rows per page, 1 to 100, default 20<\/td><\/tr><tr><td>page[offset]<\/td><td>No<\/td><td>Rows to skip, default 0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?api_token=YOUR_TOKEN&amp;filter[country]=USA\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>USA<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>USA<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>USA<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>USA<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>USA<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"country_iso3\": \"USA\",\n      \"country_name\": \"United States\",\n      \"as_of_date\": \"2026-01-01T00:00:00+00:00\",\n      \"moodys_rating\": \"Aa1\",\n      \"adj_default_spread\": 0.002334,\n      \"country_risk_premium\": 0.002334,\n      \"equity_risk_premium\": 0.0446,\n      \"corporate_tax_rate\": 0.25,\n      \"sovereign_cds\": 0.004,\n      \"source\": \"damodaran\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 157,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"sovereign_risk_premium\",\n    \"source\": \"damodaran\",\n    \"frequency\": \"annual\",\n    \"attribution\": \"Damodaran, NYU Stern (annual). Source: https:\/\/pages.stern.nyu.edu\/~adamodar\/\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/risk-premium?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>country_iso3<\/td><td>string<\/td><td>ISO 3166 alpha-3 country code<\/td><\/tr><tr><td>country_name<\/td><td>string<\/td><td>Country name<\/td><\/tr><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Snapshot date of the annual dataset<\/td><\/tr><tr><td>moodys_rating<\/td><td>string<\/td><td>Moody&#8217;s local-currency rating<\/td><\/tr><tr><td>adj_default_spread<\/td><td>number<\/td><td>Adjusted default spread, decimal fraction<\/td><\/tr><tr><td>country_risk_premium<\/td><td>number<\/td><td>Country risk premium, decimal fraction<\/td><\/tr><tr><td>equity_risk_premium<\/td><td>number<\/td><td>Total equity risk premium, decimal fraction<\/td><\/tr><tr><td>corporate_tax_rate<\/td><td>number<\/td><td>Marginal corporate tax rate, decimal fraction<\/td><\/tr><tr><td>sovereign_cds<\/td><td>number or null<\/td><td>Sovereign CDS level, decimal fraction, null where no liquid market<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, damodaran<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"h-sovereign-credit-ratings\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">Sovereign Credit Ratings<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Moody&#8217;s, S&amp;P, and Fitch local-currency ratings per country, as compiled in the annual Damodaran dataset.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Filters filter[country] and filter[as_of]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?api_token=YOUR_TOKEN&amp;filter[country]=Germany\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>Germany<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>Germany<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>Germany<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>Germany<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>Germany<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"country_iso3\": \"DEU\",\n      \"country_name\": \"Germany\",\n      \"as_of_date\": \"2026-01-01T00:00:00+00:00\",\n      \"moodys_rating\": \"Aaa\",\n      \"sp_rating\": \"AAA\",\n      \"fitch_rating\": \"AAA\",\n      \"source\": \"damodaran\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 157,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"sovereign_credit_rating\",\n    \"source\": \"damodaran\",\n    \"frequency\": \"annual\",\n    \"attribution\": \"Damodaran, NYU Stern (annual, sourced from Moody's, S&amp;P, Fitch).\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/credit-ratings?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>country_iso3<\/td><td>string<\/td><td>ISO 3166 alpha-3 country code<\/td><\/tr><tr><td>country_name<\/td><td>string<\/td><td>Country name<\/td><\/tr><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Snapshot date of the annual dataset<\/td><\/tr><tr><td>moodys_rating<\/td><td>string<\/td><td>Moody&#8217;s rating<\/td><\/tr><tr><td>sp_rating<\/td><td>string<\/td><td>S&amp;P rating<\/td><\/tr><tr><td>fitch_rating<\/td><td>string<\/td><td>Fitch rating<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, damodaran<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"h-sovereign-cds-spreads\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">Sovereign CDS Spreads<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Sovereign 10-year CDS spreads per country, plus a variant net of Switzerland, as decimal fractions. The value is null where there is no liquid sovereign CDS market for that country.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Filters filter[country] and filter[as_of]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?api_token=YOUR_TOKEN&amp;filter[country]=France\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>France<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>France<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>France<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>France<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[country]<\/span>=<span class='orange bold filter[country]'>France<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"country_iso3\": \"FRA\",\n      \"country_name\": \"France\",\n      \"as_of_date\": \"2026-01-01T00:00:00+00:00\",\n      \"moodys_rating\": \"Aa3\",\n      \"cds_spread\": 0.0035,\n      \"cds_spread_net_of_switzerland\": 0.0028,\n      \"source\": \"damodaran\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 157,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"sovereign_cds_spread\",\n    \"source\": \"damodaran\",\n    \"frequency\": \"annual\",\n    \"attribution\": \"Damodaran, NYU Stern (annual). Sovereign 10Y CDS spreads where the market is liquid; NULL where no liquid market.\"\n  },\n  \"links\": { \"next\": \"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/cds-spreads?page[offset]=20&amp;page[limit]=20\" }\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>country_iso3<\/td><td>string<\/td><td>ISO 3166 alpha-3 country code<\/td><\/tr><tr><td>country_name<\/td><td>string<\/td><td>Country name<\/td><\/tr><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Snapshot date of the annual dataset<\/td><\/tr><tr><td>moodys_rating<\/td><td>string<\/td><td>Moody&#8217;s rating<\/td><\/tr><tr><td>cds_spread<\/td><td>number or null<\/td><td>Sovereign 10Y CDS spread, decimal fraction, null where illiquid<\/td><\/tr><tr><td>cds_spread_net_of_switzerland<\/td><td>number or null<\/td><td>CDS spread net of Switzerland, decimal fraction<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, damodaran<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 id=\"h-rating-default-spreads\" class=\"docs-content__heading docs-content__heading--h3 wp-block-heading\">Rating Default Spreads<\/h3>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">A lookup table mapping each Moody&#8217;s rating notch to a default spread, as a decimal fraction. Values are normalised from basis points, so 60 basis points is returned as 0.006. Twenty rating buckets are covered, from Aaa to Ca.<\/p>\n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code class=\"\">https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?api_token=YOUR_TOKEN<\/code><\/pre>\n<\/div>\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Method GET. Authentication by api_token. Cost one API call per request. Filters filter[rating] and filter[as_of]. Response is a JSON envelope with data, meta, and links.<\/p>\n\n\n    <div class=\"api-key\" data-feed=\"EOD Historical Data\">\n                <div class=\"api-key__topbar\">\n            <div class=\"api-key__tablist\" role=\"tablist\">\n                                                                        <button\n                        class=\"api-key__tab api-key__tab--active\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"url\"                    >URL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"curl\"                    >cURL<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"php\"                    >PHP<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"python\"                    >Python<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"r\"                    >R<\/button>\n                                                                            <button\n                        class=\"api-key__tab\"\n                        type=\"button\"\n                        role=\"tab\"\n                        data-tab=\"chatgpt\" data-actions=\"false\"                    >Chat GPT<\/button>\n                                                <\/div>\n            <div class=\"api-key__actions\">\n                <button class=\"api-key__btn api-key__btn--copy\" type=\"button\" aria-label=\"Copy\">\n                    <svg viewBox=\"0 0 20 20\" width=\"18\" height=\"18\" class=\"api-key__btn-icon api-key__btn-icon--default\"><use xlink:href=\"\/img\/icons\/copy.svg#copy\"\/><\/svg>\n                    <img decoding=\"async\" class=\"api-key__btn-icon api-key__btn-icon--success\" src=\"\/img\/approve_ico.svg\" alt=\"\" width=\"14\" height=\"14\" loading=\"eager\">\n                <\/button>\n                <button class=\"api-key__btn api-key__btn--view\" type=\"button\" aria-label=\"Open in new tab\" data-url=\"https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?api_token=YOUR_TOKEN&amp;filter[rating]=Aaa\">\n                    <svg viewBox=\"0 0 20 21\" width=\"18\" height=\"18\"><use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"\/><\/svg>\n                <\/button>\n            <\/div>\n        <\/div>\n        \n        <div class=\"api-key__panels\">\n                                                                        <div class=\"api-key__panel api-key__panel--active\" data-panel=\"url\">\n                                            <pre class=\"api-key__code\"><code>https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[rating]<\/span>=<span class='orange bold filter[rating]'>Aaa<\/span><\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"curl\">\n                                                                    <pre class=\"api-key__code\"><code>curl --location &quot;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[rating]<\/span>=<span class='orange bold filter[rating]'>Aaa<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&quot;<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"php\">\n                                                                    <pre class=\"api-key__code\"><code>$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL =&gt; &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[rating]<\/span>=<span class='orange bold filter[rating]'>Aaa<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;,\n    CURLOPT_RETURNTRANSFER =&gt; true,\n    CURLOPT_ENCODING =&gt; &#039;&#039;,\n    CURLOPT_MAXREDIRS =&gt; 10,\n    CURLOPT_TIMEOUT =&gt; 0,\n    CURLOPT_FOLLOWLOCATION =&gt; true,\n    CURLOPT_HTTP_VERSION =&gt; CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST =&gt; &#039;GET&#039;,\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo &#039;Error. &#039;.$e-&gt;getMessage();\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"python\">\n                                                                    <pre class=\"api-key__code\"><code>import requests\n\nurl = f&#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[rating]<\/span>=<span class='orange bold filter[rating]'>Aaa<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\ndata = requests.get(url).json()\n\nprint(data)<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"r\">\n                                                                    <pre class=\"api-key__code\"><code>library(httr)\nlibrary(jsonlite)\n\nurl &lt;- &#039;https:\/\/eodhd.com\/api\/credit-risk\/sovereign\/default-spreads?<span class='white bold'>api_token<\/span>=<span class='orange bold api_token'>YOUR_TOKEN<\/span>&<span class='white bold'>filter[rating]<\/span>=<span class='orange bold filter[rating]'>Aaa<\/span>&<span class='white bold'>fmt<\/span>=<span class='orange bold fmt'>json<\/span>&#039;\nresponse &lt;- GET(url)\n\nif (http_type(response) == &quot;application\/json&quot;) {\n    content &lt;- content(response, &quot;text&quot;, encoding = &quot;UTF-8&quot;)\n    cat(content)\n} else {\n    cat(&quot;Error while receiving data\\n&quot;)\n}<\/code><\/pre>\n                        <div class=\"api-key__register\">(<a href=\"\/register\">Sign up<\/a> for free to get an API token)<\/div>\n                                    <\/div>\n                                                                            <div class=\"api-key__panel\" data-panel=\"chatgpt\">\n                                            <div class=\"api-key__chatgpt\">\n                            New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                            Simply describe how you want to use our data, and get a working piece of code.\n                            Don&rsquo;t forget to replace the API token with your own.<br><br>\n                            <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                            <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                                How to use it (YouTube)\n                            <\/a>\n                        <\/div>\n                                    <\/div>\n                                    <\/div>\n    <\/div>\n    \n\n\n<div class=\"code-block\">\n<pre class=\"docs-content__code-block wp-block-code\"><code lang=\"json\" class=\"language-json\">{\n  \"data\": [\n    {\n      \"rating\": \"A1\",\n      \"as_of_date\": \"2026-01-01T00:00:00+00:00\",\n      \"default_spread\": 0.005993,\n      \"source\": \"damodaran\"\n    }\n  ],\n  \"meta\": {\n    \"total\": 20,\n    \"page\": { \"offset\": 0, \"limit\": 20 },\n    \"dataset\": \"rating_default_spread\",\n    \"source\": \"damodaran\",\n    \"frequency\": \"annual\",\n    \"attribution\": \"Damodaran, NYU Stern (annual). Rating-to-default-spread lookup table; values normalised from basis points to fractions (e.g. 60bp -&gt; 0.006).\"\n  },\n  \"links\": []\n}<\/code><\/pre>\n<\/div>\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Field<\/th><th>Type<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>rating<\/td><td>string<\/td><td>Moody&#8217;s rating notch, Aaa to Ca<\/td><\/tr><tr><td>as_of_date<\/td><td>string (date-time)<\/td><td>Snapshot date of the annual dataset<\/td><\/tr><tr><td>default_spread<\/td><td>number<\/td><td>Default spread for the rating, decimal fraction<\/td><\/tr><tr><td>source<\/td><td>string<\/td><td>Upstream provider, damodaran<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-funding-stress\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Funding Stress<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Credit-market funding-stress indicators are planned as a second wave of this API, coming Q3 2026. In the meantime, US money-market funding-stress spreads \u2014 such as EFFR minus SOFR and SOFR relative to the Federal Reserve target range \u2014 are already available today through the EODHD Interest Rates API at https:\/\/eodhd.com\/financial-apis\/us-treasury-ust-interest-rates-api-beta.<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-coverage-frequency-and-lag\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Coverage, Frequency, and Lag<\/h2>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Dataset<\/th><th>Endpoint<\/th><th>Source<\/th><th>Frequency<\/th><th>Coverage<\/th><\/tr><\/thead><tbody><tr><td>Corporate bond market distress index<\/td><td>corporate\/cmdi<\/td><td>NY Fed<\/td><td>Weekly<\/td><td>Market, investment-grade, high-yield<\/td><\/tr><tr><td>HQM corporate yield curve<\/td><td>corporate\/hqm-yields<\/td><td>US Treasury via FRED<\/td><td>Monthly<\/td><td>Tenors 1 to 30 years, par and spot<\/td><\/tr><tr><td>CDS market aggregates<\/td><td>cds-market\/aggregates<\/td><td>CFTC Weekly Swaps Report<\/td><td>Weekly, T+17 days<\/td><td>By grade and cleared status, five regions<\/td><\/tr><tr><td>Sovereign risk premium<\/td><td>sovereign\/risk-premium<\/td><td>Damodaran, NYU Stern<\/td><td>Annual<\/td><td>157 countries<\/td><\/tr><tr><td>Sovereign credit ratings<\/td><td>sovereign\/credit-ratings<\/td><td>Damodaran, NYU Stern<\/td><td>Annual<\/td><td>157 countries<\/td><\/tr><tr><td>Sovereign CDS spreads<\/td><td>sovereign\/cds-spreads<\/td><td>Damodaran, NYU Stern<\/td><td>Annual<\/td><td>157 countries, liquid markets<\/td><\/tr><tr><td>Rating default spreads<\/td><td>sovereign\/default-spreads<\/td><td>Damodaran, NYU Stern<\/td><td>Annual<\/td><td>20 rating buckets<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-endpoint-reference\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Endpoint Reference<\/h2>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Endpoint<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>\/api\/credit-risk\/corporate\/cmdi<\/td><td>NY Fed corporate bond market distress index, weekly<\/td><\/tr><tr><td>\/api\/credit-risk\/corporate\/hqm-yields<\/td><td>HQM corporate yield curve, par and spot, monthly<\/td><\/tr><tr><td>\/api\/credit-risk\/cds-market\/aggregates<\/td><td>CFTC CDS market notional aggregates, weekly<\/td><\/tr><tr><td>\/api\/credit-risk\/sovereign\/risk-premium<\/td><td>Country and equity risk premiums, tax rate, sovereign CDS<\/td><\/tr><tr><td>\/api\/credit-risk\/sovereign\/credit-ratings<\/td><td>Moody&#8217;s, S&amp;P, and Fitch sovereign ratings<\/td><\/tr><tr><td>\/api\/credit-risk\/sovereign\/cds-spreads<\/td><td>Sovereign 10Y CDS spreads<\/td><\/tr><tr><td>\/api\/credit-risk\/sovereign\/default-spreads<\/td><td>Rating-to-default-spread lookup table<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-response-codes\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Response Codes<\/h2>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Code<\/th><th>Meaning<\/th><\/tr><\/thead><tbody><tr><td>200<\/td><td>Success. Response body carries data, meta, and links<\/td><\/tr><tr><td>401<\/td><td>Missing or invalid api_token<\/td><\/tr><tr><td>403<\/td><td>Token is valid but the plan does not include access to these endpoints<\/td><\/tr><tr><td>422<\/td><td>Invalid parameter \u2014 malformed date, page[limit] above 100, end date before start date, an out-of-range filter value, or a filter key that does not belong to the endpoint<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-attribution-and-licensing\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Attribution and Licensing<\/h2>\n\n\n\n<p class=\"docs-content__text wp-block-paragraph\">Every response carries the required attribution string for its source in the meta.attribution field. When redistributing or displaying this data, reproduce the attribution for the relevant source as shown below.<\/p>\n\n\n\n<figure class=\"docs-content__table-wrap wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Source<\/th><th>Required attribution<\/th><\/tr><\/thead><tbody><tr><td>NY Fed CMDI<\/td><td>\u00a9 Federal Reserve Bank of New York. Content from the New York Fed subject to the Terms of Use at newyorkfed.org.<\/td><\/tr><tr><td>HQM via FRED<\/td><td>U.S. Department of the Treasury, HQM Corporate Bond Yield Curve, retrieved from FRED, Federal Reserve Bank of St. Louis<\/td><\/tr><tr><td>CFTC<\/td><td>Source: CFTC Weekly Swaps Report<\/td><\/tr><tr><td>Damodaran<\/td><td>Damodaran, NYU Stern (annual). Source: https:\/\/pages.stern.nyu.edu\/~adamodar\/<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 id=\"h-methodology-and-limitations\" class=\"docs-content__heading docs-content__heading--h2 wp-block-heading\">Methodology and Limitations<\/h2>\n\n\n\n<ul class=\"docs-content__list wp-block-list\">\n<li>Units differ by dataset. Sovereign risk premiums, default spreads, CDS spreads, and tax rates are decimal fractions, so 0.006 means 60 basis points or 0.6 percent. The CMDI is an index between 0 and 1. HQM yields are in percent. CDS market aggregates are notional volumes in millions of US dollars in the usd_notional_mn field.<\/li>\n\n\n\n<li>The four sovereign datasets are annual snapshots from the Damodaran dataset. Use filter[as_of] with a date to select a specific yearly snapshot; the most recent snapshot is returned by default.<\/li>\n\n\n\n<li>Sovereign CDS values are null for countries without a liquid sovereign CDS market, rather than zero.<\/li>\n\n\n\n<li>CDS market aggregates currently expose the gross_notional metric, broken down by grade or by cleared_status across five regions, and are published weekly by the CFTC with a lag of about seventeen days after the reference week.<\/li>\n\n\n\n<li>The HQM corporate yield curve is monthly. Available maturities are 1, 2, 3, 5, 7, 10, 15, 20, 25, and 30 years, each in a par and a spot variant.<\/li>\n\n\n\n<li>Filter keys are endpoint-specific. Passing a filter key that does not belong to an endpoint, an out-of-range value, or a malformed date returns 422.<\/li>\n<\/ul>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"docs-content__text has-text-align-center wp-block-paragraph\"><a class=\"btn btn--orange\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Sign up &amp; Get Data<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The EODHD Credit and Sovereign Risk Data API brings credit-market and sovereign-risk indicators into one API, drawn entirely from official public sources. It closes a long-standing gap in EODHD coverage for credit analysts, sovereign-risk and EM macro desks, quant researchers, corporate treasury, and academic users. Seven endpoints are grouped into three themes: corporate credit conditions [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[72],"tags":[184,186,185,182,187,183],"class_list":["post-7972","post","type-post","status-publish","format-standard","hentry","category-fundamental-and-economic-financial-data-api","tag-cds-spreads","tag-corporate-bond-yields","tag-credit-ratings","tag-credit-risk-data","tag-fixed-income-data","tag-sovereign-risk"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.6 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Credit and Sovereign Risk Data API | EODHD APIs Documentation<\/title>\n<meta name=\"description\" content=\"Credit &amp; Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings &amp; CDS spreads.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Credit and Sovereign Risk Data API\" \/>\n<meta property=\"og:description\" content=\"Credit &amp; Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings &amp; CDS spreads.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\" \/>\n<meta property=\"og:site_name\" content=\"Stock Price Data, Financial and Stock Market API\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-01T15:40:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-01T15:49:32+00:00\" \/>\n<meta name=\"author\" content=\"a.pletnev\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"a.pletnev\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\"},\"author\":{\"name\":\"a.pletnev\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d\"},\"headline\":\"Credit and Sovereign Risk Data API\",\"datePublished\":\"2026-07-01T15:40:03+00:00\",\"dateModified\":\"2026-07-01T15:49:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\"},\"wordCount\":2129,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"keywords\":[\"CDS spreads\",\"corporate bond yields\",\"credit ratings\",\"credit risk data\",\"fixed income data\",\"sovereign risk\"],\"articleSection\":[\"2. Fundamental &amp; Economic Data\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\",\"name\":\"Credit and Sovereign Risk Data API | EODHD APIs Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\"},\"datePublished\":\"2026-07-01T15:40:03+00:00\",\"dateModified\":\"2026-07-01T15:49:32+00:00\",\"description\":\"Credit & Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings & CDS spreads.\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-apis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Credit and Sovereign Risk Data API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"name\":\"Historical Stock Prices and Fundamental Financial Data APIs | EODHD\",\"description\":\"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d\",\"name\":\"a.pletnev\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g\",\"caption\":\"a.pletnev\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Credit and Sovereign Risk Data API | EODHD APIs Documentation","description":"Credit & Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings & CDS spreads.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api","og_locale":"en_US","og_type":"article","og_title":"Credit and Sovereign Risk Data API","og_description":"Credit & Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings & CDS spreads.","og_url":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api","og_site_name":"Stock Price Data, Financial and Stock Market API","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2026-07-01T15:40:03+00:00","article_modified_time":"2026-07-01T15:49:32+00:00","author":"a.pletnev","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"a.pletnev","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api"},"author":{"name":"a.pletnev","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d"},"headline":"Credit and Sovereign Risk Data API","datePublished":"2026-07-01T15:40:03+00:00","dateModified":"2026-07-01T15:49:32+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api"},"wordCount":2129,"publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"keywords":["CDS spreads","corporate bond yields","credit ratings","credit risk data","fixed income data","sovereign risk"],"articleSection":["2. Fundamental &amp; Economic Data"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api","url":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api","name":"Credit and Sovereign Risk Data API | EODHD APIs Documentation","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/#website"},"datePublished":"2026-07-01T15:40:03+00:00","dateModified":"2026-07-01T15:49:32+00:00","description":"Credit & Sovereign Risk Data API: NY Fed corporate bond distress, HQM yields, CFTC CDS aggregates, sovereign risk premiums, ratings & CDS spreads.","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-apis\/credit-and-sovereign-risk-data-api#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-apis"},{"@type":"ListItem","position":2,"name":"Credit and Sovereign Risk Data API"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-apis\/#website","url":"https:\/\/eodhd.com\/financial-apis\/","name":"Historical Stock Prices and Fundamental Financial Data APIs | EODHD","description":"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API","publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-apis\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-apis\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/ed3193541c25b73e823a83bdcdb09b5d","name":"a.pletnev","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/020e454749b61223b72b1bf96e7978ccdd1e39b04585b29698da3767a193a57d?s=96&d=mm&r=g","caption":"a.pletnev"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8NjB1-24A","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/comments?post=7972"}],"version-history":[{"count":2,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7972\/revisions"}],"predecessor-version":[{"id":7974,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7972\/revisions\/7974"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/media?parent=7972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/categories?post=7972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/tags?post=7972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}