> For the complete documentation index, see [llms.txt](https://docs.carbon.inc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbon.inc/how-carbon-works/counterparty-risk.md).

# Counterparty Risk

How counterparty risk works on Carbon: each trade is a bilateral contract with a solver, collateral is locked on-chain by both sides, and liquidators can close either.

On Carbon, every position is a bilateral contract between you (`PartyA`) and the solver that quoted your trade (`PartyB`). Both sides lock collateral on-chain when the position opens, and third-party liquidators can liquidate either side if its margin falls below requirements. Carbon has no insurance fund: the margin each side locks is what makes the other side whole.

### Who your counterparty is

* Your counterparty is always the solver that quoted your trade. There is no shared order book. See [What is Carbon](https://docs.carbon.inc/developers/introduction/what-is-carbon.md).
* Crypto perpetuals are quoted by third-party solvers. Carbon TradFi markets are quoted by the Carbon Solver, a single proprietary solver funded by the CLP vault. See [Solver Network Explained](https://docs.carbon.inc/how-carbon-works/solver-network-explained.md).
* Solvers are not required to hedge. They may hedge off-chain or take directional risk. The Carbon Solver hedges TradFi trades 1:1 at regulated TradFi venues. See [Carbon Solver (CLP)](https://docs.carbon.inc/how-carbon-works/carbon-solver-clp.md).

### What is locked on-chain

1. You sign a request to trade and lock your margin on-chain.
2. The solver matches it with its own on-chain margin.
3. A symmetric, isolated bilateral contract is created on-chain and stays in effect until the position is closed or liquidated.

The amounts locked for each position:

| Field                   | Meaning                                                          |
| ----------------------- | ---------------------------------------------------------------- |
| `cva`                   | Credit Valuation Adjustment: covers counterparty credit risk     |
| `lf`                    | Liquidation Fee: reserved to pay whoever liquidates the position |
| `partyAmm` / `partyBmm` | PartyA / PartyB maintenance margin                               |

A solver keeps only part of its collateral in Carbon's contracts; the rest sits at its off-chain hedging venues. Your collateral stays locked in the bilateral contract, separate from the solver's hedging. See [Carbon Solution & Architecture Overview](https://docs.carbon.inc/how-carbon-works/carbon-solution-and-architecture-overview.md).

### When you can be liquidated

* A margin pool is liquidated when its Equity Balance falls below its maintenance margin (CVA). Every position in that pool is closed and the locked margin is lost.
* Cross-margined crypto positions share one pool. An isolated crypto position, and each TradFi market, has its own pool.
* TradFi positions cannot be liquidated while their market is closed. If the market gaps over the close, the position reprices at the open, and that can trigger a liquidation.
* Higher leverage requires a higher CVA, because there is no insurance fund.

See [Liquidations, CVA, and Account Health](https://docs.carbon.inc/trading/liquidations-cva-and-account-health.md).

### When the solver fails

* If a solver goes offline or fails to maintain its margin, liquidators can close its on-chain position. A position can be closed or liquidated without the counterparty's cooperation.
* Third-party liquidators monitor positions using oracle price feeds. See [Pricing Data & Oracles](https://docs.carbon.inc/trading/pricing-data-and-oracles.md).

### Limits to know

* A solver can reject a trade, for example if the price moved since the quote was streamed. Re-submit to get a new quote.
* "No Liquidity Available" means the solver's available open interest is in use. See [Open Interest](https://docs.carbon.inc/trading/open-interest.md).
* Take Profit and Stop Loss are sent by Carbon's front end: Carbon guarantees the close request reaches the solver, not that the solver completes it. See [Take Profit & Stop Loss](https://docs.carbon.inc/trading/take-profit-and-stop-loss.md).

### Contracts and audits

Trade settlement uses SYMMIO-Core v0.8.5 contracts on Arbitrum, audited by Sherlock. The reports are on [Security & Audits](https://docs.carbon.inc/additional-information/security-and-audits.md).

***

*Carbon's TradFi markets are not available to US persons. Please review the* [Terms & Conditions](https://docs.carbon.inc/additional-information/terms-and-conditions.md) *before trading.*


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.carbon.inc/how-carbon-works/counterparty-risk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
