# Liquidation

## How is liquidation price determined?

Each leverage position of Pika Exchange has a strike price, at which the value of the position is equal to 0. In any exchange that supports leverage positions, there is always a price buffer to liquidate the positions before the collateral is depleted, which is used to protect exchanges from insolvency. Pika Exchange has a buffer value of 93% for liquidation.&#x20;

Long position example:

* A user opens a 5x long position of ETH/USD at price $1000.
* Since Pika is an inverse perpetual exchange, this position is interpreted by protocol as 5x short position of USD/ETH at price 1/1000.
* The strike price of the inverse short position:  1/1000 - 1/1000 / leverage=0.0008.
* The strike price of the long position: 1/0.0008 = $1250.
* The liquidation price of the inverse short position:  0.0008/0.93 = 0.00086.
* The liquidation price of the long position: 1/0.00086 = $1163.

Short position example:

* A user opens a 5x short position of ETH/USD at price $1000.
* Since Pika is an inverse perpetual exchange, this position is interpreted by protocol as 5x long position of USD/ETH at price 1/1000.
* The strike price of the inverse long position:  1/1000 + 1/1000 / leverage = 0.0012.
* The strike price of the short position: 1/0.0012 = $833.
* The liquidation price of the inverse long position:  0.0012 \* 0.93 = 0.001116.
* The liquidation price of the short position: 1/0.001116 = $896.

Check out parameter page for more details.<br>

## How is liquidation triggered?

Liquidations are normally triggered by external bots for most decentralized derivatives exchanges, where bots consistently check each user’s margin position for liquidation opportunities. The liquidation is often triggered on a per user basis when the margin falls below a certain requirement. Bots are normally rewarded by part of the liquidated user’s balance as incentive.

During the big price movement, this type of liquidation mechanism often has problems. Since bots need to liquidate each user one by one, it is often the case that bots are not fast enough to take care of all the positions that need to be liquidated, resulting in loss of insurance funds for the protocol. Pika Exchange adopts the bot-less liquidation mechanism, where each trade execution automatically checks if there are positions to liquidate. Also, instead of checking each user’s account, Pika Exchange simply invalidates a set of strike prices that is to be liquidated. The leveraged tokens with invalidated strike prices can no longer be traded back to the protocol, meaning the value of which is 0.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pikaprotocol.com/archived/pika-protocol-v1/pika-exchange/liquidation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
