Skip to main content

Table Details

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

Table Columns

Column NameData TypeDescription
token_typeVARCHAR(16777216)Token standard or category (e.g. erc20, erc721, native).
addressVARCHAR(16777216)Blockchain account address this record pertains to.
token_addressVARCHAR(16777216)Contract address of the token. On EVM chains native currency is represented as the zero address.
token_nameVARCHAR(16777216)Human-readable name of the token.
token_symbolVARCHAR(16777216)Ticker symbol of the token.
balanceFLOATDecimal-adjusted token balance held by the address.
prev_balanceFLOATToken balance held by the address immediately before this transaction.
balance_changeFLOATChange in token balance produced by this transaction.
usd_exchange_rateFLOATUSD price of one unit of the token at the record’s timestamp.
usd_balanceFLOATUSD value of the balance at the record’s timestamp.
usd_balance_changeFLOATChange in USD value of the address’s balance produced by this transaction.
usd_exchange_rate_latestFLOATLatest available USD price of one unit of the token.
usd_balance_latestFLOATUSD value of the address’s balance valued at the latest available price.
transaction_typeVARCHAR(16777216)Type or category of the transaction that produced this record.
tokens_purchasedFLOATQuantity of tokens purchased in this transaction.
tokens_soldFLOATQuantity of tokens sold in this transaction.
average_costFLOATAverage USD cost basis per token unit held by the address, updated as positions change.
cumulative_costsFLOATRunning total USD cost of tokens acquired by the address.
cumulative_quantitiesFLOATRunning total quantity of tokens acquired by the address.
realized_pnlFLOATCumulative realized profit and loss (USD) from tokens the address has sold.
realized_pnl_this_txFLOATRealized profit and loss (USD) attributable to this transaction.
unrealized_pnlFLOATUnrealized profit and loss (USD) on the address’s remaining holdings at this record’s time.
unrealized_pnl_latestFLOATUnrealized profit and loss (USD) on the address’s holdings valued at the latest available price.
block_timestampTIMESTAMP_NTZ(9)Timestamp (UTC) of the block that contains this record.
block_numberNUMBER(38,0)Sequential number of the block that contains this record. Starts at 0 (genesis) and increments by 1 per block.
block_hashVARCHAR(16777216)Cryptographic hash of the block header that contains this record. Uniquely identifies a block.
unique_idVARCHAR(16777216)Allium’s deterministic unique identifier for this row, generated from the fields that uniquely identify the record. Stable across full refreshes.