> For the complete documentation index, see [llms.txt](https://docs.vdex.trade/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vdex.trade/trading/yield/betancourts-formula.md).

# Betancourt's Formula

Betancourt's Formula is designed to minimize the drawdown risk by varying *pMid*, the price at which the VMM creates orders. Specifically, Betancourt's takes as input: *t,* the long-tail scenario and *d* the drawdown threshold. Both are expressed as percentages so that the VMM could have a 1% chance of a 5% drawdown within a 30 day period, for example.&#x20;

*pMid* is offset by the premium index *p,* which is specific to each trading pair. Given the community-determined *t* and *d,* the VMM also inputs its real-time exposure and total available assets.

#### Methodology

If the VMM's exposure increases—reflecting the inverse position of net traders—then the premium will increase along with the funding rate, enabling arbitrage opportunities for other traders. The VMM's net asset value is indirectly proportional with premium, so that more capital allows for higher VMM exposure before premium increases.

#### **Variables**

**Dependents**

* `p` = premium index
* `r*` = risk parameter

**Independents**

* `e`  = exposure&#x20;
* `d` = drawdown threshold
* `n` = net asset value
* `s` = smoothing variable
* σ = implied volatility
* `t` = long-tail scenario

#### Formulas

$$
\begin{equation\*}
P\_i =
\begin{cases}

* \dfrac{E\_i^{S},\bigl(1 - e^{r\_i^*}\bigr)^{S+1}}{90,D^{S},N^{S}}, & E\_i \ge 0,\\\[8pt]
  \quad;\dfrac{E\_i^{S},\bigl(1 - e^{r\_i^*}\bigr)^{S+1}}{90,D^{S},N^{S}}, & E\_i < 0.
  \end{cases}
  \end{equation\*}
  $$

$$
\begin{equation\*}
r^**i
\= -\tfrac12,\sigma\_i^2!\bigl(\tfrac{30}{365}\bigr)
;+;\sigma\_i\sqrt{\tfrac{30}{365}};t*{4}^{-1}(T)
\end{equation*}
$$


---

# 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 dynamically by asking a question.

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

```
GET https://docs.vdex.trade/trading/yield/betancourts-formula.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
