AccountingHistory

interface AccountingHistory {
	/**
	 * Transaction ID
	 * @maxLength 100
	 */
	id?: string;
	/**
	 * Hash of the transation
	 * @maxLength 100
	 */
	hash?: string;
	/**
	 * Wallet involved in the transaction
	 * @maxLength 100
	 */
	wallet?: string;
	/**
	 * Date and time of the balance
	 * @format date-time
	 */
	timestamp?: string;
	/** Token object */
	token: Token;
	/**
	 * Position balance of this token in this wallet
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	balance?: string;
	/**
	 * Amount of this token traded in this transaction
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	tx_amount?: string;
	/**
	 * Fee paid for this transaction in the native blockchain currency
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	fee?: string;
	/**
	 * Price of this token in USD
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	price?: string;
	/**
	 * Cash flow of this position in USD. Calculated as balance * price.
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	cash_flow?: string;
	/**
	 * Cash flow of the fee in USD. Calculated as fee * price.
	 * @format decimal
	 * @pattern ^-?\d{0,96}(?:\.\d{0,4})?$
	 */
	fee_cash_flow?: string;
	/** Cost basis per token for this position, calculated via Average Cost Basis method. Includes gas fees paid at the time of purchase. */
	basis: Basis[];
	/**
	 * Currency of the price, value, average_cost, unrealized_pnl, and total_realized_pnl. Default is USD.
	 * @maxLength 10
	 */
	currency?: string;
	tx: string;
}