CurrentPortfolio

interface CurrentPortfolio {
	/**
	 * Wallet address involved in the transaction
	 * @maxLength 100
	 */
	wallet: string;
	/** Token object */
	token: Token;
	/**
	 * Position balance of this token in this wallet
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	balance: string;
	/**
	 * Current Price of this token in reference currency
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	price: string;
	/**
	 * Value of this position in reference currency. Calculated as balance * price.
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	value: string;
	/**
	 * Average cost basis per token for this position, calculated via specified method. Includes gas fees paid at the time of purchase.
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	average_cost: string;
	/**
	 * Unrealized PnL for this position if applicable calculated based on the difference between Current Price and Cost Basis
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	unrealized_pnl: string;
	/**
	 * Total PnL realized on this token for a wallet or set of wallets. Assumes Sends, Swaps, Mints, and Contract Executions can result in realization events.
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	total_realized_pnl: string;
	/** Income object */
	income: CurrentIncome;
	/**
	 * Name of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_strategy_name: string;
	/**
	 * Category of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_strategy_category: string;
	/**
	 * Address of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_strategy_address: string;
	/**
	 * Protocol of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_protocol: string;
	/**
	 * Principal of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_principal: string;
	/**
	 * Accrual of the strategy used to generate this position.
	 * @maxLength 100
	 */
	defi_accrual: string;
	/**
	 * Currency of the price, value, average_cost, unrealized_pnl, and total_realized_pnl. Default is USD.
	 * @maxLength 10
	 */
	currency: string;
	/**
	 * Method used to calculate cost basis. Can be FIFO, LIFO, or WAC. Default is FIFO.
	 * @maxLength 10
	 */
	cost_method: string;
	/** @format date-time */

	timestamp: string;
}