// Fill shapes returned by Hyperliquid `/info`. /** * One user trade fill returned by Hyperliquid `userFills` or * `userFillsByTime`. Prices, size, fee, PnL, and starting position are decimal * strings; `time` is milliseconds since the Unix epoch and `tid`/`oid` are * numeric trade and order IDs. * @public */ export type HlUserFill = { tid: number oid: number hash?: string coin: string side: string sz: string px: string dir: string fee: string /** * Wire token the fee was charged in (`"USDC"`, `"HYPE"`). Absent on rows * predating the field, where the fee is in the market's quote asset. */ feeToken?: string /** * Builder portion of `fee`, in `feeToken`'s units. Absent when the venue * charged no builder portion on the fill. Hyperliquid omits this field when * its value is zero. */ builderFee?: string /** Client order ID the order carried. Absent when the order carried none. */ cloid?: string closedPnl: string crossed: boolean time: number startPosition: string /** * Present on both sides of a liquidation fill. `liquidatedUser` names the * account that was liquidated; the other party is the liquidator. */ liquidation?: HlFillLiquidation } /** Liquidation detail Hyperliquid attaches to a fill. @public */ export type HlFillLiquidation = { liquidatedUser: string markPx: string method: string } /** All fills returned by the unbounded `userFills` query. @public */ export type HlUserFills = HlUserFill[] /** Fills returned by the time-bounded `userFillsByTime` query. @public */ export type HlUserFillsByTime = HlUserFill[]