curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants \
--header 'apikey: <api-key>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"trade_date": "2023-12-25",
"ticker": "<string>",
"broker_code": "<string>",
"broker_name": "<string>",
"quantity_lent": 123,
"quantity_borrowed": 123,
"quantity_net": 123,
"lender_rate_pct": 123,
"borrower_rate_pct": 123,
"internal_legs": 123,
"internal_qty": 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>"
}lending_participants
Per (ticker, session, brokerage) securities-lending flow: quantity lent, borrowed and net, with rates. broker_* identifies the B3 PARTICIPANT intermediating, not the beneficial owner; internal_legs / internal_qty measure how much is that broker crossing its own clients. Do not read a large borrow as the broker being short.
Paging. A GET view pages normally with limit/offset (and Range). Every response is cut at 1000 rows server-side regardless of tier; read Content-Range to detect it (0-999/* is a truncated page, and Prefer: count=exact turns the * into the total).
curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants \
--header 'apikey: <api-key>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants"
headers = {"apikey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {apikey: '<api-key>'}};
fetch('https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://zcjbtpxuhdekpwcxmepn.supabase.co/rest/v1/lending_participants")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"trade_date": "2023-12-25",
"ticker": "<string>",
"broker_code": "<string>",
"broker_name": "<string>",
"quantity_lent": 123,
"quantity_borrowed": 123,
"quantity_net": 123,
"lender_rate_pct": 123,
"borrower_rate_pct": 123,
"internal_legs": 123,
"internal_qty": 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
The publishable key (sb_publishable_…), on every request. It is NOT a JWT — sending it as Authorization: Bearer is rejected as an invalid JWT. It identifies the project, not you, and maps to the Postgres anon role.
Query Parameters
Columns to return, comma separated. Omit for all of them.
Sort, e.g. trade_date.desc. Always order a paged read, or limit/offset walk an undefined sequence.
Rows to return. The server cuts every response at 1000 whatever you ask for.
x <= 1000Rows to skip. Pairs with limit and order to page.
PostgREST filter on trade_date — eq., neq., gt., gte., lt., lte., in., is. (e.g. trade_date=eq.<value>).
PostgREST filter on ticker — eq., neq., gt., gte., lt., lte., in., is. (e.g. ticker=eq.<value>).
PostgREST filter on broker_code — eq., neq., gt., gte., lt., lte., in., is. (e.g. broker_code=eq.<value>).
PostgREST filter on broker_name — eq., neq., gt., gte., lt., lte., in., is. (e.g. broker_name=eq.<value>).
PostgREST filter on quantity_lent — eq., neq., gt., gte., lt., lte., in., is. (e.g. quantity_lent=eq.<value>).
PostgREST filter on quantity_borrowed — eq., neq., gt., gte., lt., lte., in., is. (e.g. quantity_borrowed=eq.<value>).
PostgREST filter on quantity_net — eq., neq., gt., gte., lt., lte., in., is. (e.g. quantity_net=eq.<value>).
PostgREST filter on lender_rate_pct — eq., neq., gt., gte., lt., lte., in., is. (e.g. lender_rate_pct=eq.<value>).
PostgREST filter on borrower_rate_pct — eq., neq., gt., gte., lt., lte., in., is. (e.g. borrower_rate_pct=eq.<value>).
PostgREST filter on internal_legs — eq., neq., gt., gte., lt., lte., in., is. (e.g. internal_legs=eq.<value>).
PostgREST filter on internal_qty — eq., neq., gt., gte., lt., lte., in., is. (e.g. internal_qty=eq.<value>).
Response
Matching rows.
Was this page helpful?