Ara
Settling or closing a spot position on margin
This article is for clients using the Kraken Pro site (pro.kraken.com)
If you are looking for information on Settling or closing a spot position on margin on Kraken.com, you can find out how here!
By opening a spot position on margin*, you incur corresponding obligations, including the obligation to return the amount of the margin extension to Kraken through position settlement or one or more closing transactions.
How settling a position works
You may close all or part of a spot position on margin by transferring to us, directly from your account balance with no trade involved, funds of the type used by Kraken to make the initial margin extension (e.g., if you took an extension of margin from Kraken denominated in BTC, you must have sufficient BTC in your account to settle the position). This is called position settlement. If your account balance is not sufficient, you may deposit additional funds into your account. If you have sufficient funds in your account, but they are not of the type used by Kraken to make the initial margin extension, you may execute an order for the type and amount of funds you need to settle the position (e.g., buy 1 BTC of BTC/USD).
How closing transactions work
Through a closing transaction, you may partially or fully close a spot position on margin by executing an opposing order for up to the same volume as the order that opened your position (a sell closes a “long” spot position on margin and a buy closes a “short” spot position on margin). The proceeds from a closing transaction are applied first to the satisfaction of your margin obligation to Kraken. Then, any remaining profit (or loss) is added to (or taken from) your account balances, in an amount denominated in the quote currency of the pair you are trading (e.g., EUR in the pair BTC/EUR).
If you have multiple collateral currencies, when your loss is realized (regardless of if you close it yourself or it’s closed via an automated liquidation), it will be deducted in the following order of preference: 
  • Quote Currency of the pair being traded, if it is one of our collateral currencies
  • Base Currency of the pair being traded, if it is one of our collateral currencies
  • USD
  • EUR
  • GBP
  • CAD
  • CHF
  • AUD
  • JPY
  • BTC
  • ETH
  • USDT
  • USDC
  • ADA
  • DAI
  • DOT
  • SOL
  • LINK
  • ATOM
  • MANA
  • KTC
  • MATIC
  • LUNA
  • AVAX
  • XTZ
  • TRX
  • Quote Currency of the pair being traded, if it is not a collateral currency
  • Base Currency of the pair being traded, if it is not a collateral currency
If the loss is greater than your balance of collateral currencies, other funds in your account will be taken as needed. 
As an example, assume you had a leveraged position on ADA/BTC. 
The order of preference for realizing the loss would be: 
  • BTC, because it is the quote currency of the pair being traded; 
  • The collateral currencies in the order of preference above; and 
  • ADA, because it is the base currency of the pair being traded and is not a collateral currency.
If you do not have enough funds in your account denominated in the quote currency of the pair you are trading to cover any remaining loss, funds in your account will be converted, as necessary, into funds denominated in the quote currency of the pair you are trading, subject to a fee (a 1.5% fee for converting between two cash currencies), 2.5% fee for a conversion of BTC or ETH to or from cash, and a 5% fee for all other conversions). As a result, you may want to execute an order for the type and amount of funds you need before entering into a closing transaction so that your closing transaction does not result in a conversion fee.
Note: If you have multiple open positions on margin, they will be closed in the order they were created following the "First In, First Out" (FIFO) rule. Each individual position will follow the logic outlined above for realizing any loss.
How to enter a closing transaction 
Screen_Shot_2022-09-07_at_12.46.59_PM.png

Leverage

Using Kraken Pro, the maximum level of leverage is automatically selected. The level of leverage does not need to match the leverage level you used to open the position. This is because, other than indicating to Kraken’s system that the order you are placing is for a closing transaction, the level of leverage selected is irrelevant in a closing transaction.

Currency pair

The closing transaction order must be in the same currency pair as the order that opened the spot position on margin.

Amount

To completely close an open spot position on margin, enter the same Amount as the opening order. If you execute a closing transaction order for more volume than your spot position on margin, you will effectively create a new spot position on margin on the opposite side (this is called “flipping” the position).
To close a position, simply click on the X icon located to the right of the position listing in the Open Positions module.
Example: Long
Suppose you buy 1 BTC of BTC/EUR at 2x leverage (going “long” BTC):
  • To close the entire position, you need to sell 1 BTC of BTC/EUR in a closing transaction (at any leverage - the specific level of leverage selected is irrelevant).
  • To close half the position, you need to sell 0.5 BTC of BTC/EUR in a closing transaction (at any leverage - the specific level of leverage selected is irrelevant).
  • To flip the position by 100%, you need to sell 2 BTC of BTC/EUR in an opposing spot transaction on margin (at any leverage - the leverage amount will apply to the new position and determine the collateral withheld).