# Price improvement

Contango protocol provides a better pricing than the theoretical formulas presented in the [theoretical pricing](/exchange/protocol/theoretical-pricing.md) section. This price improvement comes from the capital efficiency of using the trader's margin.&#x20;

## Definition

We define the price improvement as:

* $$pi\_L=(P\_{th,L} - P\_{O,L} )/P\_{O,L}$$ for a long position
* $$pi\_S=(P\_{O,S} - P\_{th,S} )/P\_{th,S}$$ for a short position.

Knowing the [theoretical pricing](/exchange/protocol/theoretical-pricing.md) and using the [pricing formulas with the collaterisation ratio](/exchange/protocol/protocol-pricing/position-opening.md) to open a position, we find the following expressions for the price improvement:

<table><thead><tr><th width="183.34257322175733"> Side</th><th width="396.2857142857143">Price improvement</th></tr></thead><tbody><tr><td>Long</td><td><span class="math">pi_L={CR*[{(1+r_{Q ,b })}^T -1]}</span></td></tr><tr><td>Short</td><td><span class="math">pi_S=\dfrac{CR*[{(1+r_{Q ,l })}^T-1]}{1-CR*[{(1+r_{Q ,l })}^T -1]}</span></td></tr></tbody></table>

## Implications

Several interesting facts could be inferred from the above expressions:

* The price improvement is always positive, i.e. the pricing of the protocol is more advantageous than the theoretical pricing for a trader opening long and short positions.
* The higher the [collateriation ratio](/exchange/resources/glossary.md#collateral-ratio) $$CR$$ , the better the price improvement.
* The higher the time to expiry $$T$$, the better the price improvement.
* For a long position, the higher the interest rate on the quote currency $$r\_{Q ,b }$$ the better is the price improvement: compared to the theoretical formula, the protocol borrows less money and hence owes less debt.
* For a short position, the higher the interest rate on the quote currency $$r\_{Q ,l }$$ the better is the price improvement: compared to the theoretical formula, the protocol lends more money and hence makes an extra profit.
* In the case of a long fully collaterised position (CR=100%), the price improvement is equal to the interest rate to borrow the quote currency. Making the assumption that the borrowing and lending rates are equal, the price improvement is equivalent to lend the margin at a fixed rate.

## Examples

Here are different CR scenarios to open a long and short position for $$1 : ETH$$, where the spot price is $$ETHDAI=10000$$, with the corresponding price improvements:

### Long

<table><thead><tr><th width="240.5142709504289"> Collaterisation ratio (CR)</th><th width="159.68852939328298" align="center">25%</th><th width="186" align="center">50%</th><th width="166" align="center">100%</th></tr></thead><tbody><tr><td>Theoretical price</td><td align="center">101.81</td><td align="center">101.81</td><td align="center">101.81</td></tr><tr><td>Pricing with collateral</td><td align="center">101.19</td><td align="center">100.58</td><td align="center">99.39</td></tr><tr><td>Price improvement</td><td align="center">0.61%</td><td align="center">1.22%</td><td align="center">2.43%</td></tr></tbody></table>

### Short

<table><thead><tr><th width="245.51427095042888"> Collaterisation ratio (CR)</th><th width="159.68852939328298" align="center">25%</th><th width="186" align="center">50%</th><th width="166" align="center">100%</th></tr></thead><tbody><tr><td>Theoretical price</td><td align="center">101.51</td><td align="center">101.51</td><td align="center">101.51</td></tr><tr><td>Pricing with collateral</td><td align="center">102.12</td><td align="center">102.73</td><td align="center">103.99</td></tr><tr><td>Price improvement</td><td align="center">0.60%</td><td align="center">1.21%</td><td align="center">2.45%</td></tr></tbody></table>

## Simulations

Here are some simulations to visualise the price improvement on long positions depending on the borrowing rate $$r\_{Q,b}$$. Similar results can be found for price improvements on short positions.

![](/files/hUE7MveQQskOegtdSShL)


---

# 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://contango-2.gitbook.io/exchange/protocol/protocol-pricing/price-improvement.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.
