interface Basis {
/**
* Basis ID
* @maxLength 100
*/
id?: string;
/**
* Method used to calculate cost basis. Can be Average Cost Basis or First In First Out. Default is FIFO.
* @maxLength 10
*/
method?: string;
/**
* 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,98}(?:\.\d{0,2})?$
*/
realized_cost?: string;
/**
* Total cost basis for the position. Calculated as cost * balance.
* @format decimal
* @pattern ^-?\d{0,98}(?:\.\d{0,2})?$
*/
realized_total_basis?: 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,98}(?:\.\d{0,2})?$
*/
average_cost?: string;
/**
* Realized PnL for this position if applicable calculated based on the difference between Transaction Price and Cost Basis
* @format decimal
* @pattern ^-?\d{0,98}(?:\.\d{0,2})?$
*/
realization?: string;
/**
* Details on the cost basis calculation
* @maxLength 500
*/
realization_details?: string;
/**
* Holding periods for this position
* @maxLength 500
*/
realization_holding_periods?: string;
bal: string;
}