curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/derivatives \
--header 'Authorization: Bearer <token>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/derivatives"
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/derivatives', 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>"
}
}
}Derivatives
Options, termo and futures: chains, histories, exercises, the DI1 settlement.
Example: /v2/derivatives?id=PETRL&kind=chain
Kinds:
chain: api.option_chain: calls and puts of one prefix on one session, by expiry, strike, side. One call holds the chain, served in pages; a chain above the SQL tier ceiling (200 anonymous, 1,000 signed in) is refused: narrow with a longer id (one expiry month, e.g. PETRL), date or expiry_from.history: api.option_history: one option code’s daily quotes, oldest first. Refuses above 1000 rows: narrow from/to.exercises: api.option_exercises: exercise prints for a prefix, oldest first. Paged by date windows; a window above the SQL tier ceiling (500 anonymous, 1,000 signed in) is halved.termo: api.termo_history: one termo code’s daily quotes, oldest first. Refuses above 1000 rows: narrow from/to.futures: api.future_series: one DI1, DOL or WDO contract through time, oldest first. Refuses above 1000 rows.futures_nth: api.future_nth_series: the Nth nearest contract of a root (id: DI1, DOL or WDO) through time, oldest first. Each row is that contract’s published row with its ticker, so the roll shows in the ticker column; nothing is adjusted or spliced, and the price jumps at each roll. Refuses above 1000 rows.futures_curve: api.future_curve: every contract of a root (id, default DI1) on one session, nearest first.di_settlement: api.di_settlement (a GET view): DI1 settlement rate, previous rate, open interest per session and contract, newest first. With no id, every contract, paged with order + limit + offset.
With no from, a dated kind reads the last 12 months to to.
id per kind: chain and exercises take an option prefix (at least 3 characters, e.g. PETR); history and termo one B3 code (codneg); futures one outright contract (DI1F27, DOLF27); futures_nth a root (DI1, DOL or WDO), with rank; futures_curve a root (DI1, DOL or WDO; none: DI1); di_settlement one DI1 contract (none: every contract).
chain and exercises refuse above a tier ceiling (chain 200 anonymous, exercises 500, both 1,000 signed in); nothing is cut. chain refuses (over_limit, tier_cap); exercises halves its date window and tries again, and refuses only a single day that is still over the ceiling.
Exercises are exercise events, not quotes. DI1 rates are % a.a. on 252 business days, as B3 settles them; nothing is derived.
GET /v2/derivatives?help describes the main parameters, ?help=all adds the hidden ones.
curl --request GET \
--url https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/derivatives \
--header 'Authorization: Bearer <token>'import requests
url = "https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2/derivatives"
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/derivatives', 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
chain: one session's option chain for a prefix. history: one option's daily quotes. exercises: option exercise events for a prefix. termo: one forward (termo) code's quotes. futures: one futures contract's daily settlement. futures_nth: the Nth nearest contract of a root through time (rank 2 = the 2nd contract), each row with its ticker, nothing adjusted. futures_curve: every contract of a root on one session. di_settlement: DI1 settlement rates per session and contract. Default: chain.
chain, history, exercises, termo, futures, futures_nth, futures_curve, di_settlement By kind: chain, exercises take an option prefix, at least 3 characters (PETR); history takes one option code (codneg); termo takes one termo code (codneg); futures takes one outright futures contract (DI1F27, DOLF27); futures_nth takes a futures root, DI1, DOL or WDO (with rank: 2 = the 2nd contract); futures_curve takes a futures root, DI1, DOL or WDO (none: DI1); di_settlement takes one DI1 contract (none: every contract). Required for kinds chain, history, exercises, termo, futures, futures_nth. Default: none.
Hidden parameter (?help=all lists it). kind futures_nth: which contract, by maturity, on each session. 1 = the nearest contract alive (the contract of the session's own month is left out, as it matures on that month's first business day), 2 = the next, and so on. Default: the SQL default, 1 (the nearest contract alive).
x >= 0Was this page helpful?