Params: {
    closetime?: "open" | "close" | "both";
    consolidate_taker?: boolean;
    end?: number | string;
    ofs?: number;
    start?: number | string;
    trades?: boolean;
    userref?: number;
}

Reference: Get Closed Orders

ℹ️ Tip: This library implements the helper method getClosedOrders which outputs a nicer array of closed orders