type Response = Array<{
pairTo: string;
pairFrom: string;
pairId: string;
oid: string;
pid: string;
limitId?: string; // limit slot that opened the position; only on the Open fill of a triggered limit or stop
trader: string;
side: 'B' | 'S';
action: 'Open' | 'Close' | 'Liquidation' | 'StopLoss' | 'TakeProfit' | 'RemoveCollateral' | 'CloseDayTrade';
type: 'Market' | 'Limit' | 'REMOVE_COLLATERAL';
px: string;
szi: string;
ntl: string;
collateralUsed: string;
leverage: string; // position leverage, e.g. "10"
profitPercent: string; // price PnL percent, "10" = 10%; "0" on opens and collateral edits
builder: string;
fees: {
opening: string;
rollover: string;
liquidation: string;
builder: string;
priceImpact: string;
oracle: string; // oracle fee actually charged on this order
};
closedPnl: string;
hash: string;
time: number;
timestamp: number;
}>;