# Margin System

### Margin System

A margin framework unlocks the world of under-collateralized trading - this is super desirable in the trading world as it allows for users to effectively apply leverage and use their capital in much more efficient way. \
\
In DeFi we have typically seen *over-collateralization*. This has emerged out of necessity; blockchains have typically been slow, often it takes minutes for a protocol to know the real state of the underlying asset price and take the actions required to keep the protocol safe and sufficiently collateralized. For an asset class as volatile as crypto, we know that these minutes can be precious. This has made it impossible to create an effective margin system. Until now.

### :gear: Zeta's Margining System:

Zeta solves these problems by leveraging Solana's 400ms block time. This allows us to update prices and monitor positions multiple times per second, enabling the implementation of a margining system which allows for an under-collateralized trading experience that rivals centralized exchanges.

The key elements that factor into our margin system are:

* [**Oracles**](/zeta-protocol/exchange-architecture/oracles.md)**:** High quality oracles with redundancy measures ensure that the platform has accurate pricing and downtime from network congestion is minimised.<br>
* [**Collateral Framework**](/zeta-protocol/exchange-architecture/margin-system/collateral-framework.md)**:** This is essential for managing the capital in the system. Under-collateralized trading is all about using capital efficiently. However, as always when trading more than you have there are more risks. The collateral framework is what ensures that this balance is maintained so that the exchange at large can continue functioning.<br>
* [**Liquidation Mechanism**](/zeta-protocol/exchange-architecture/margin-system/liquidations-and-insurance.md)**:** The last piece of the puzzle is a liquidation mechanism which is utilized to keep the platform from losing money. This liquidation mechanism allows liquidators to step in when a user's trading account is too risky to continue trading. When this occurs the user is liquidated to ensure that the losses do not extend beyond isolated users.


---

# 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.zeta.markets/zeta-protocol/exchange-architecture/margin-system.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.
