curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning \
--header 'Authorization: Bearer <token>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
"<unknown>"
],
"meta": {
"resource": "<string>",
"kind": "<string>",
"request": {},
"id_known": true,
"endpoint": "<string>",
"source": "<string>",
"data_through": "2023-12-25",
"coverage_dataset": "<string>",
"data_through_error": "<string>",
"tier": "anonymous",
"tier_cap_reached": true
},
"next_page_url": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "row_cap",
"message": "<string>",
"target": "<string>",
"innererror": {
"sqlstate": "<string>",
"hint": "<string>",
"details": "<string>"
}
}
}Positioning
Who is short, lending or flowing in? Short interest, lending trades and brokers, investor flow.
Example: /v2/positioning?id=PETR4
Kinds:
short_interest: api.short_interest (a GET view), newest first. With no id, every ticker, paged with order + limit + offset.short_by_sector: api.short_interest_by_sector (a GET view), newest first.lending: api.lending_trades (a GET view): count, quantity, rates and how many brokers stood on each leg, newest first.lending_brokers: api.lending_participants (a GET view): per broker, quantity lent, borrowed and net, and how much it crossed its own clients, newest first.investor_flow: api.investor_flow (a GET view): buy, sell and net by investor type, newest first.
With no from, a dated kind reads the last 3 months to to.
B3 keeps about 21 business days of the lending book and publishes no archive: history starts when SILO began capturing, and a missed session is lost, not late.
Short interest reads only B3’s own Total rows of the open-position book (is_total), never the per-market rows added up. Read pct_float with float_basis: index_free_float and shares_outstanding are different denominators.
lending_brokers: the broker is the B3 participant on the leg (doador / tomador), not the beneficial owner; about 75% of trades carry the same broker on both legs. Never read a large borrow as the broker being short.
investor_flow is in R$ thousands, differenced from B3’s month-to-date snapshots; a row with flow_basis unknown_opening_snapshot carries null flows on purpose.
GET /v2/positioning?help describes the main parameters, ?help=all adds the hidden ones.
curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning \
--header 'Authorization: Bearer <token>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/positioning', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
"<unknown>"
],
"meta": {
"resource": "<string>",
"kind": "<string>",
"request": {},
"id_known": true,
"endpoint": "<string>",
"source": "<string>",
"data_through": "2023-12-25",
"coverage_dataset": "<string>",
"data_through_error": "<string>",
"tier": "anonymous",
"tier_cap_reached": true
},
"next_page_url": "<string>"
}{
"error": {
"code": "bad_request",
"reason": "row_cap",
"message": "<string>",
"target": "<string>",
"innererror": {
"sqlstate": "<string>",
"hint": "<string>",
"details": "<string>"
}
}
}Authorizations
Query Parameters
short_interest: the short balance per ticker and session, with % of float and days to cover. short_by_sector: the short balance by B3 sector. lending: daily lending trades per ticker. lending_brokers: per ticker, session and broker, quantity lent and borrowed. investor_flow: daily net flow by investor type. Default: short_interest.
short_interest, short_by_sector, lending, lending_brokers, investor_flow Was this page helpful?