Skip to main content

Oracle (oracle)

Price feeds and oracle answer events.

6 queryable tables. Every table supports the standard Hasura query arguments — where, order_by, limit, offset, distinct_on — plus an _aggregate field.

Access: Team and Premium (Playground on lower plans)

Tables

answer_event

ColumnPostgres typeGraphQL type
consensus_timestampbigintbigint
log_indexintegerInt
feed_idbigintbigint
round_idnumericnumeric
answernumericnumeric
answer_decimalnumericnumeric
answer_updated_secondsnumericnumeric
payer_account_idbigintbigint
transaction_hashbyteabytea
inserted_attimestamptztimestamptz
query GetAnswerEvent {
oracle_answer_event(limit: 10) {
consensus_timestamp
log_index
feed_id
round_id
}
}

feed

ColumnPostgres typeGraphQL type
feed_idbigintbigint
feed_evm_addresstextString
descriptiontextString
decimalssmallintsmallint
is_trackedbooleanBoolean
first_seen_timestampbigintbigint
inserted_attimestamptztimestamptz
query GetFeed {
oracle_feed(limit: 10) {
feed_id
feed_evm_address
description
decimals
}
}

price

ColumnPostgres typeGraphQL type
sourcetextString
feed_keytextString
nametextString
pricenumericnumeric
decimalssmallintsmallint
price_decimalnumericnumeric
roundnumericnumeric
observed_timestampbigintbigint
updated_attimestamptztimestamptz
query GetPrice {
oracle_price(limit: 10) {
source
feed_key
name
price
}
}

supra_pair

ColumnPostgres typeGraphQL type
slotbyteabytea
pair_indexbigintbigint
pair_nametextString
is_trackedbooleanBoolean
inserted_attimestamptztimestamptz
query GetSupraPair {
oracle_supra_pair(limit: 10) {
slot
pair_index
pair_name
is_tracked
}
}

supra_price_event

ColumnPostgres typeGraphQL type
consensus_timestampbigintbigint
slotbyteabytea
pair_indexbigintbigint
round_msnumericnumeric
decimalssmallintsmallint
timestamp_msnumericnumeric
pricenumericnumeric
price_decimalnumericnumeric
payer_account_idbigintbigint
inserted_attimestamptztimestamptz
query GetSupraPriceEvent {
oracle_supra_price_event(limit: 10) {
consensus_timestamp
slot
pair_index
round_ms
}
}

watermark

ColumnPostgres typeGraphQL type
job_nametextString
last_processed_nsbigintbigint
updated_attimestamptztimestamptz
query GetWatermark {
oracle_watermark(limit: 10) {
job_name
last_processed_ns
updated_at
}
}