# Collateral

The collateral is the amount of funds blocked in the user's margin account when placing an order or increasing the net position. This is the insurance that guarantees the fulfilment of the trader's obligations. Collateral is calculated for each open position and for each standing order.

**Calculation of the collateral&#x20;*****Cp*****&#x20;for positions:**

![](https://lh6.googleusercontent.com/05ZK_CpJvEjyZaPSXBL2Wl9fjPZZGDpKimqe55UU9PHjntr0hc_3Pv3YuYhY7b9HGENDB37F3xsTOKNGoyhPLSsedr8cNL8HQydObZkb_37d7F0a_NerbhPSyZI28BBJYYzsrSxI8c2sSyr-07Xo-CY)

**Calculation of the collateral&#x20;*****Co*****&#x20;for open orders:**

![](https://lh5.googleusercontent.com/IRqIVLtUuYm-_q_Hu-SjWyTzi4CoDhh2sn5Wz3bHmPN5TFuqpt1fPcKZLLJp7YilJfy6jpKqNePwOgmAF1AKrt7wiQdkm_o80nWx2bGLVexJt8EANWvmxaKMVSW9CIhK3V7maUKmR-6xc-Ihx1gX34o)

Mark price is used for the market orders.


---

# 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.spin.fi/tech-documentation/futures/collateral.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.
