When I add my trading history file, some of my Futures PNL are missing.
Workaround
Missing data is on swaps with buy type.
Extract them from the Trading history:
  • Delete all rows except for biz_line_en = swap, bill_type_en = buy
  • Delete all columns except: create_time, profit, currency_name
  • Rename columns to Koinly Date, Amount, Currency (our Simple format)
  • Add column "Tag" and fill with "realized gain"
  • Import the file to your OKX wallet