Skip to main content
POST
credit_market_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_code
string | null
required
p_from
string<date> | null

Defaults to (CURRENT_DATE - 365).

p_to
string<date> | null

Defaults to CURRENT_DATE.

p_as_of
string<date-time> | null

Defaults to now().

Response

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

instrument_code
string | null
trade_date
string<date> | null
settlement_date
string<date> | null
trade_classification
string | null
isin
string | null
issuer_name
string | null
quantity
number | null
min_price
number | null
avg_price
number | null
max_price
number | null
last_price
number | null
reference_price
number | null
trade_count
number | null
volume_brl
number | null
oscillation_pct
number | null
units
object | null
capture_id
string<uuid> | null
payload_sha256
string | null
row_sha256
string | null
observed_at
string<date-time> | null
available_at
string<date-time> | null
source
string | null