According to this
articleThis is how fees for a BTCUSD long position will be charged

Opening a $10,000 long position (I hope this is your total position size when the 5x leverage is taken into account) using limit order (Market maker) will mean you will be
charged 0.16% if your trading volume was zero for the last 30 days
$10,000 * (0.16 / 100) = $16
Since opening a position with this order, you are also going to be charged the opening fee. According to the margin fees as listed for the BTC/USD market shown in the image I shared above, this fee is set at 0.01% and can be calculated for your order as follows:
$10,000 * (0.01 / 100) = $1
This means the total fees for the order (initial trade costs and the costs for opening the position) will be $17
Since this position will be open for some time, a rollover fee of 0.01% is charged every four hours. So for a position open for 74 hours, the rollover fee will be charged (74 / 4) = 18.5 which is 18 times since the order will be closed before the 19th time.
$10,000 * (0.01 / 100) * 18 = $18
So on closing the position after 74 hours at the same price. The trade fees for the closing order which is a market order (Taker) charged at 0.26% will be
$10,000 * (0.26 / 100) = $26
The total fees for opening the position, maintaining the position for 74 hours and closing the position will be ($16 + $1 + $18 + $26) = $61.
Please read. All the information is there online
1.
https://support.kraken.com/hc/en-us/articles/3600005261262.
https://support.kraken.com/hc/en-us/articles/2018936383.
https://support.kraken.com/hc/en-us/articles/206161568