Skip to main content

Table Details

PropertyValue
Table Namehyperevm.assets.fungible_pnl
Table StatusProduction-Ready
Unique Keyblock_timestamp, unique_id

Table Columns

Column NameData TypeDescription
token_typeVARCHAR(16777216)Type of the token (e.g., ERC20, native).
addressVARCHAR(16777216)The wallet or contract address holding the token.
token_addressVARCHAR(16777216)The contract address of the token.
token_nameVARCHAR(16777216)Name of the token.
token_symbolVARCHAR(16777216)Symbol of the token.
prev_balanceFLOATThe token balance before this transaction, normalized by token decimals.
balanceFLOATThe token balance after this transaction, normalized by token decimals.
balance_changeFLOATThe change in token balance from this transaction.
usd_exchange_rateFLOATThe USD exchange rate of the token at the time of the transaction.
usd_balanceFLOATThe USD value of the token balance at the time of the transaction.
usd_balance_changeFLOATThe change in USD value of the token balance from this transaction.
usd_exchange_rate_latestFLOATThe latest available USD exchange rate of the token.
usd_balance_latestFLOATThe USD value of the token balance using the latest exchange rate.
transaction_typeVARCHAR(16777216)The type of transaction (e.g., buy, sell, transfer).
tokens_purchasedFLOATThe amount of tokens purchased in this transaction.
tokens_soldFLOATThe amount of tokens sold in this transaction.
average_costFLOATThe volume-weighted average cost basis per token.
cumulative_costsFLOATThe cumulative USD cost of all token acquisitions and disposals.
cumulative_quantitiesFLOATThe cumulative quantity of tokens acquired and disposed.
cumulative_cost_from_purchasesFLOATThe cumulative USD cost from purchase transactions only.
cumulative_quantity_from_purchasesFLOATThe cumulative quantity of tokens from purchase transactions only.
realized_pnlFLOATThe cumulative realized profit and loss in USD.
realized_pnl_this_blockFLOATThe realized profit and loss in USD from this block only.
unrealized_pnlFLOATThe unrealized profit and loss in USD based on the exchange rate at transaction time.
unrealized_pnl_latestFLOATThe unrealized profit and loss in USD based on the latest exchange rate.
group_vwapFLOATThe volume-weighted average price for the current position group.
group_idNUMBER(38,0)Identifier for the position group, incremented when a position is fully closed and reopened.
block_timestampTIMESTAMP_NTZ(9)The timestamp of the block containing this transaction.
block_numberNUMBER(38,0)The block number containing this transaction.
unique_idVARCHAR(16777216)Unique identifier for each PnL record.
_created_atTIMESTAMP_NTZ(9)Timestamp of when the entry was created in the database.
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the entry was last updated in the database.