Skip to main content

Table Details

PropertyValue
Table Namecelo.lending.interest_rates
Table StatusProduction-Ready
Unique Keyblock_timestamp, unique_id
Clustering Key(s)block_timestamp::date

Table Columns

Column NameData TypeDescription
projectVARCHAR(16777216)Name of the lending project (e.g., ‘aave’, ‘morpho’).
protocolVARCHAR(16777216)Specific protocol version or variant (e.g., ‘aave_v3’, ‘morpho_blue’).
noteVARCHAR(16777216)[TODO: Add description for note]
contract_addressVARCHAR(16777216)Address of the main protocol contract.
market_addressVARCHAR(16777216)Address of the specific lending market. This field is the ID of the market for Morpho Blue protocol.
token_addressVARCHAR(16777216)Address of the loan token in the market.
token_nameVARCHAR(16777216)Name of the loan token.
token_symbolVARCHAR(16777216)Symbol of the loan token.
token_decimalsNUMBER(38,0)Number of decimals of the loan token.
usd_exchange_rateFLOATUSD exchange rate of the loan token at the time of the rate update.
supply_apyFLOATAnnual Percentage Yield for suppliers/lenders, expressed as a percentage.
stable_borrow_apyFLOATAnnual Percentage Yield for stable-rate borrowers, expressed as a percentage. Only applicable for protocols with stable rates like Aave.
variable_borrow_apyFLOATAnnual Percentage Yield for variable-rate borrowers, expressed as a percentage.
cumulative_supply_interestFLOATCumulative index tracking interest earned by suppliers over time (liquidityIndex in Aave). Only applicable for certain protocols like Aave.
cumulative_borrow_interestFLOATCumulative index tracking interest accumulated for borrowers over time (variableBorrowIndex in Aave). Only applicable for certain protocols like Aave.
outstanding_loansFLOATTotal amount of tokens borrowed from the market, normalized by token decimals.
outstanding_loans_usdFLOATUSD value of the total borrowed tokens.
supplied_amountFLOATTotal amount of tokens supplied to the market, normalized by token decimals.
supplied_amount_usdFLOATUSD value of the total supplied tokens.
available_liquidityFLOATAmount of tokens available for borrowing, normalized by token decimals.
available_liquidity_usdFLOATUSD value of the tokens available for borrowing.
trace_paramsVARIANTRaw parameters from the trace call that provided the interest rate data.
logs_paramsVARIANTRaw parameters from the event logs that provided the interest rate data.
transaction_hashVARCHAR(16777216)Transaction hash where the interest rate update occurred.
transaction_indexNUMBER(38,0)Index of the transaction in the block.
block_timestampTIMESTAMP_NTZ(9)Timestamp of the block when the interest rate was updated.
block_numberNUMBER(38,0)Block number when the interest rate was updated.
block_hashVARCHAR(16777216)Hash of the block when the interest rate was updated.
unique_idVARCHAR(16777216)Unique identifier for the interest rate update event.
_created_atTIMESTAMP_NTZ(9)Timestamp of when the record was created.
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the record was last updated.