In this article we walk through a situation where a trader on Kraken Futures is liquidated and the new Position Assignment System (PAS) allocates the unfilled liquidation to liquidity providers in PAS. We go through all the response examples that a participant will receive for this.
Let's assume that there is a user whose current positions are:
- LONG 1,760,000 Contracts on PI_XBTUSD
- LONG 300,000 Contracts on FI_XBTUSD_200228
Both these positions are using the main FI_XBTUSD margin account, which measures the risk in realtime, valuing the collateral vs position value, to determine whether to liquidate.
Once the margin account for the contract type is below the maintenance margin, liquidation occurs and the system sells those positions into the orderbook at the 0-equity imputed price for each contract.
In this case, the user's liquidation plays out as follows:
|Position||Size||Amount Liquidated||Amount Assigned|
This means the entire FI_XBTUSD_200228 position of 300,000 Contracts was successfully sold into the orderbook to new counterparties who had existing bids.
However, the PI_XBTUSD position of 1,760,000 Contracts was only able to liquidate 1,007,379 successfully into the orderbook, with the remaining 752,621 unable to find a new counterparty.
As a result, this unfilled liquidation remainder is handled in the PAS by routing the LONG position to liquidity providers participating in the program based on individual preferences.
Below is an example notification for an Assignment of 184,317 Contracts allocated to "email@example.com". The user receives the following email (note that this format may change so do not rely on this formatting):
The liquidity provider immediately receives the notification over WebSocket feed alerting him to the Assignment. The message takes this format:
Additionally, the user may poll the REST API endpoint for fills to see:
The key fields in the responses are fill_type and fillType (for WebSocket and REST, respectfully), which both take the value "assignee". This is the indication that should be used to programmatically handle the assignment.
- Set your preferences as you see fit on the Assignment Program section of the platform.
- You will not receive an Assignment that your available margin for the contract type can not handle.