Deribit is derivatives, so a short round-trip is the instructive example — a sell to open the short, then a buy to close it, both carrying the same trade_id and position_side=short:
trade_id,symbol,event_type,position_side,time,price,quantity,fee,note
DERIBIT-BTC-001,BTCUSDT,sell,short,2026-05-10T09:15:00+00:00,61250.00,0.5,3.06,fee_asset=USD
DERIBIT-BTC-001,BTCUSDT,buy,short,2026-05-10T18:45:00+00:00,60100.00,0.5,3.00,fee_asset=USD
Here the sell opens the position and the later buy closes it, so falling price is a profit — exactly the opposite of a long. A long round-trip is the mirror image: a buy to open with position_side=long, then a sell to close. Scaling in or out simply adds more rows with the same id. The crypto exchange template ships this exact header so you can paste mapped rows straight in.