Skip to main content

Table Details

PropertyValue
Table Namerobinhood.assets.fungible_pnl_5min
Table StatusProduction-Ready
Unique Keyblock_timestamp, unique_id

Table Columns

Column NameData TypeDescription
token_typeVARCHAR(16777216)Token standard for the asset. One of erc20 (fungible) or the native currency symbol (e.g. eth)
addressVARCHAR(16777216)Wallet or contract address of the account
token_addressVARCHAR(16777216)Contract address of the token. Native currency is represented as the zero address
token_nameVARCHAR(16777216)Full name of the token (e.g. “USD Coin”, “Wrapped Ether”)
token_symbolVARCHAR(16777216)Ticker symbol of the token (e.g. “USDC”, “WETH”)
prev_balanceFLOATToken balance for this address before this event
balanceFLOATToken balance normalized by the token’s decimal precision
balance_changeFLOATChange in token balance from this event. Positive for inflows, negative for outflows
usd_exchange_rateFLOATUSD price per unit of the token at the time of the event
usd_balanceFLOATUSD value of the token balance, computed using the exchange rate at the time of the snapshot
usd_balance_changeFLOATUSD value of the balance change at the token price at time of event
usd_exchange_rate_latestFLOATMost recent available USD price per token unit, used to compute current unrealized PnL
usd_balance_latestFLOATCurrent USD value of the balance at the latest available price (balance × usd_exchange_rate_latest)
transaction_typeVARCHAR(16777216)Ethereum transaction envelope type. 0 = Legacy, 1 = Access List (EIP-2930), 2 = EIP-1559 dynamic fee
tokens_purchasedFLOATNumber of tokens acquired in this event (inflow quantity)
tokens_soldFLOATNumber of tokens disposed of in this event (outflow quantity)
average_costFLOATVolume-weighted average purchase price (VWAP) of the cost basis for current holdings
cumulative_costsFLOATRunning total of USD spent acquiring this token by this address up to and including this event
cumulative_quantitiesFLOATRunning total of token quantity acquired up to and including this event
cumulative_cost_from_purchasesFLOATCumulative USD cost from buy (inflow) events only. Excludes sell proceeds
cumulative_quantity_from_purchasesFLOATCumulative token quantity from buy (inflow) events only
realized_pnlFLOATTotal realized profit or loss up to this event: (sell_price − average_cost) × quantity_sold, summed across all sells
realized_pnl_this_blockFLOATRealized PnL from sell events in the current block only
unrealized_pnlFLOATUnrealized profit or loss of the position at the event-time price
unrealized_pnl_latestFLOATUnrealized profit or loss at the latest price: balance × (usd_exchange_rate_latest − average_cost). Zero when balance is zero
group_vwapFLOATVWAP of the current purchase group — average cost per token for the most recent cluster of buys before any intervening sells
group_idNUMBER(38,0)Identifier for the purchase group used to compute cost basis. Resets when balance falls to zero after a sell
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
unique_idVARCHAR(16777216)Allium’s deterministic unique identifier for this row
_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.