Skip to main content
POST
trade_consolidated_history

Authorizations

apikey
string
header
required

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.

Body

application/json
p_ticker
string | null
required
p_from
string<date> | null

Defaults to (CURRENT_DATE - 365).

p_to
string<date> | null

Defaults to CURRENT_DATE.

p_after
string | null

Defaults to NULL::text.

Response

The result set, oldest first. An unknown id is an empty array, not a 404 and never a guessed value.

ticker
string | null
trade_date
string<date> | null
isin
string | null
segment
string | null
min_price
number | null
max_price
number | null
avg_price
number | null
last_price
number | null
ref_price
number | null
oscillation_pct
number | null
trade_count
integer<int64> | null
quantity
integer<int64> | null
notional_brl
number | null
file_status
string | null
source
string | null