search_funds
curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"p_query": "",
"p_entity_type": null,
"p_limit": null
}
'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds"
payload = {
"p_query": "",
"p_entity_type": None,
"p_limit": 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_query: '', p_entity_type: null, p_limit: null})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"cnpj": "<string>",
"entity_type": "<string>",
"fund_name": "<string>",
"first_period": "2023-12-25",
"last_period": "2023-12-25",
"latest_aum": 123
}
]{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}{
"code": "22023",
"message": "<string>",
"details": "<string>",
"hint": "<string>"
}Funds
search_funds
Fund name or CNPJ search, largest latest NAV first. p_limit NULL (the default) returns every match and REFUSES (22023) when more match than the tier ceiling, 25 anonymous or 200 signed in: nothing is cut silently (until v80 the ceiling lowered p_limit without a word). p_limit 1..ceiling is an explicit head, the largest N funds by latest NAV. p_entity_type (fi, fidc, fii, fip, fiagro) narrows to one family.
Tier ceiling. At most 25 rows for anonymous callers and 200 for signed-in ones. When more match, the call REFUSES with SQLSTATE 22023, never a silently cut result: narrow the query, or ask for the first N with p_limit (1..ceiling).
POST
/
rpc
/
search_funds
search_funds
curl --request POST \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"p_query": "",
"p_entity_type": null,
"p_limit": null
}
'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds"
payload = {
"p_query": "",
"p_entity_type": None,
"p_limit": 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_query: '', p_entity_type: null, p_limit: null})
};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/rpc/search_funds', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));[
{
"cnpj": "<string>",
"entity_type": "<string>",
"fund_name": "<string>",
"first_period": "2023-12-25",
"last_period": "2023-12-25",
"latest_aum": 123
}
]{
"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
Was this page helpful?