research_universe
curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{}'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe"
payload = {}
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({})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"ticker": "<string>",
"isin": "<string>",
"instrument_type": "<string>",
"cnpj": "<string>",
"cnpj_basis": "<string>",
"first_observed": "2023-12-25",
"last_observed": "2023-12-25",
"n_sessions": 123,
"setor_current": "<string>",
"built_at": "2023-11-07T05:31:56Z"
}
]{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}Research
research_universe
The research universe: one row per ticker+ISIN pair of listed shares and units traded on the B3 cash market since 2019-01-02 (the start of the tape), ordered by ticker then ISIN. Membership is the ISIN's own instrument code (ACN shares; CDA and UNT units, whose ticker must end in 11); subscription receipts, BDRs, funds and indices are outside it. The ISIN is the identity: a rename is a NEW row and nothing links it to the old one, and two tickers can share an ISIN (NEOE3 and NEOE3B). first_observed / last_observed / n_sessions are facts about SILO's tape, not listing or delisting dates (FCA dates are not historical); n_sessions far below the calendar span is a gap (NATU3). cnpj comes from CVM's published FCA ticker map and cnpj_basis says how: fca_ticker (that exact ticker), fca_issuer_stem (the ticker's 4-letter stem, when exactly one CNPJ holds an FCA ticker with it: an inference), or NULL (no link; cnpj and setor_current are NULL). setor_current is CVM's cadastro setor as of today, never the setor on a past date. Read the universe at a date T as the rows with first_observed <= T <= last_observed; a pair inside a gap still matches. Served from a view rebuilt daily: last_observed lags the tape by up to a day, built_at says when. Not trimmed: more than 1000 rows RAISES 22023.
**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.
POST
/
rpc
/
research_universe
research_universe
curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '{}'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe"
payload = {}
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({})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/research_universe', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"ticker": "<string>",
"isin": "<string>",
"instrument_type": "<string>",
"cnpj": "<string>",
"cnpj_basis": "<string>",
"first_observed": "2023-12-25",
"last_observed": "2023-12-25",
"n_sessions": 123,
"setor_current": "<string>",
"built_at": "2023-11-07T05:31:56Z"
}
]{
"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
application/json
This function takes no arguments; send {}.
Response
The result set, ticker, then ISIN. An unknown id is an empty array, not a 404 and never a guessed value.
Was this page helpful?