interface CurrentBalance {
/**
* Unique Balance Identifier
* @maxLength 100
*/
id?: string;
/**
* Wallet 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;
/**
* Currency of the price, value, average_cost, unrealized_nl, 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;
/** Basis object */
basis: CurrentBasis[];
/** @format date-time */
timestamp: string;
}