When I import my positions-history CSV from Bitunix, some of my trades are missing the PNL.
I noticed that the ones without it are the liquidated ones that have the
position pnl
column in the file set as zero.
Workaround
I have to modify the file before importing it to Koinly:
  • Rename column
    position pnl
    to
    position pnl old
  • Add new column
    position pnl
  • Calculate this column as:
    realized pnl
    -
    funding fees
    +
    position fee