Params: {
    consolidate_taker?: boolean;
    end?: number;
    ledgers?: boolean;
    ofs?: number;
    start?: number;
    trades?: boolean;
    type?:
        | "all"
        | "any position"
        | "closed position"
        | "closing position"
        | "no position";
}

Reference: Get Trades History