> ## Documentation Index
> Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UpnlWalletItem

Wallet-based UPNL result for a token

## Fields

<ResponseField name="cost_basis" type="float">
  Cost basis per token
</ResponseField>

<ResponseField name="contract_metadata" type="object">
  Token contract metadata

  Type: [`TokenContractMetadata`](/api-reference/streaming-api/types/token-contract-metadata)

  <Expandable title="properties">
    <ResponseField name="contract_name" type="string">
      Name of the token contract
    </ResponseField>

    <ResponseField name="contract_address" type="string">
      Address of the token contract
    </ResponseField>

    <ResponseField name="contract_decimals" type="int">
      Number of decimal places for the token
    </ResponseField>

    <ResponseField name="contract_ticker_symbol" type="string">
      Ticker symbol of the token
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="net_balance_change" type="string">
  Net token movement (inflow - outflow) in the last 7 days, not the actual on-chain balance
</ResponseField>

<ResponseField name="token_address" type="string">
  Token contract address (lowercase with 0x prefix)
</ResponseField>

<ResponseField name="current_price" type="float">
  Current price per token
</ResponseField>

<ResponseField name="pnl_realized_usd" type="float">
  Realized profit and loss in USD
</ResponseField>

<ResponseField name="pnl_unrealized_usd" type="float">
  Unrealized profit and loss in USD
</ResponseField>

<ResponseField name="marketcap_usd" type="string">
  Market capitalization in USD
</ResponseField>
