curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"p_id": "<string>",
"p_from": null,
"p_to": null
}
'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues"
payload = {
"p_id": "<string>",
"p_from": None,
"p_to": None
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({p_id: '<string>', p_from: null, p_to: null})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"cd_cvm": "<string>",
"cnpj": "<string>",
"company": "<string>",
"reference_date": "2023-12-25",
"version": 123,
"security_type": "<string>",
"issue_name": "<string>",
"issue_date": "2023-12-25",
"maturity_date": "2023-12-25",
"quantity": 123,
"issue_value": 123,
"outstanding_balance": 123,
"transfer_restricted": true,
"convertible": true,
"redeemable": true,
"terms_text": "<string>",
"source": "<string>"
}
]{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}debt_issues
The debt issues (debentures, commercial notes, CRI, CRA, …) a listed company describes in its CVM FRE, item outros valores mobiliários, yearly from 2010: security type, the issue name as filed, issue date, maturity, quantity, value issued, outstanding balance at the reference date, three flags, and terms_text. One row is one issue as filed, often several series; CVM publishes no ticker, ISIN or series code, so a row does not join to a traded debenture. Only companies that file an FRE (listed issuers) are covered. Rate and indexer exist only in terms_text, free text served as filed and NEVER parsed. The newest version of each reference date is served, which is not point-in-time; reference_date is not a filing date. An empty flag stays NULL. p_id is required and resolves as api.financials resolves it (ticker through CVM’s FCA map, 14-digit CNPJ or CVM code, never a name); an id that resolves to nothing returns no rows. p_from / p_to bound the reference date (NULL = no bound). Newest reference date first, then maturity. More than 1000 rows RAISES 22023 (never trimmed).
Row cap. A window producing more than 1000 rows raises SQLSTATE 22023 naming this function. Nothing is trimmed to fit — PostgREST would silently cut the response at 1000 and a cut-short series is indistinguishable from one that simply ends. This function does not page — narrow the window instead.
curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"p_id": "<string>",
"p_from": null,
"p_to": null
}
'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues"
payload = {
"p_id": "<string>",
"p_from": None,
"p_to": None
}
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({p_id: '<string>', p_from: null, p_to: null})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/debt_issues', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"cd_cvm": "<string>",
"cnpj": "<string>",
"company": "<string>",
"reference_date": "2023-12-25",
"version": 123,
"security_type": "<string>",
"issue_name": "<string>",
"issue_date": "2023-12-25",
"maturity_date": "2023-12-25",
"quantity": 123,
"issue_value": 123,
"outstanding_balance": 123,
"transfer_restricted": true,
"convertible": true,
"redeemable": true,
"terms_text": "<string>",
"source": "<string>"
}
]{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}Authorizations
Body
Response
The result set, newest reference_date first, then nearest maturity. An unknown id is an empty array, not a 404 and never a guessed value.
Was this page helpful?