# Tokenized Ranged Markets

{% embed url="<https://www.youtube.com/watch?v=8oIgCT8GTd0>" %}

Ranged Markets is a product built on top of the Thales protocol that allows users to participate in markets around the following question:

#### **Will a specific Asset Price be INSIDE or OUTSIDE of the specified Price Range at the specified Maturity Date?**

![](https://288840232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKSZyDhrhMxBqaXew1MHD%2Fuploads%2Ff0UF902PdXcPoxETuIon%2Franged%20markets.PNG?alt=media\&token=ec9a77d0-e0ba-401c-a7c6-7bc832cf6e54)

Ranged Markets use the same framework as Positional Markets, but they use a **Price Range** instead of a single Strike Price, to resolve the market.&#x20;

Variables that define a Ranged Market:

* **Asset**- The specific asset used to resolve a market based on it's price (e.g. BTC, ETH, etc.).
* **Maturity Date**- The date and time at which the current price of the asset is compared to the market's Price Range to determine if the Ranged Market resolved IN or OUT.
* **Strike Range**- The range between two price points that traders use to position INSIDE or OUTSIDE of for that market.

<figure><img src="https://288840232-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKSZyDhrhMxBqaXew1MHD%2Fuploads%2FxwYUyU5OwIGdc5d0JVOV%2Fimage.png?alt=media&#x26;token=53572b20-1de8-4512-9500-2a4adad8dd5b" alt=""><figcaption><p>Ranged Market example</p></figcaption></figure>

### IN and OUT Tokens

Instead of having a single Strike Price with accompanying UP and DOWN tokens, **Ranged Markets have two Strike Prices that construct a Price Range and are accompanied with IN and OUT ERC20 tokens that represent the two exclusive outcomes of that Ranged Market.**

Ranged Markets use the Thales AMM contract to offer on-demand liquidity for **IN** and **OUT** tokens. It uses the already existing adapted Black Scholes algorithm to calculate the probability between 0% and 100% of a certain Ranged Market finishing INSIDE or OUTSIDE of a specified Price Range at the specified Maturity Date, and then uses that calculated probability to price the IN and OUT tokens.

For example, if the AMM calculates the probability of the specific Ranged Market finishing OUTSIDE of the specified Price Range to be **`25%`**, the AMM will sell the **OUT** tokens representing that position for **`$0.25`**, reflecting the probability percentage. On the other side, the probability that the market will resolve INSIDE the specified Price Range will be equal to **`100% - XX%`,** where XX% represents the probability of the market resolving OUTSIDE. This means that the **IN** token representing that INSIDE position, will be priced by the AMM as **`$1.00 - $0.25 = $0.75`**

If a specific Ranged Market resolves **INSIDE** the specified Price Range at the specified Maturity Date, the **IN** tokens will be **redeemable for USD in a 1:1 ratio** while the OUT tokens will be worthless.&#x20;

If a specific Ranged Market resolves **OUTSIDE** the specified Price Range at the specified Maturity Date, the **OUT** tokens will be **redeemable for USD in a 1:1 ratio** while the IN tokens will be worthless.&#x20;

### Ranged Markets Creation

Thales Ranged Markets use the available Positional Markets to form Price Ranges around their individual Strike Prices. That means that every two Positional Markets with the same Asset and Maturity Date will also create a Ranged Market around their respective individual Strike Prices.&#x20;

The collateralization of Ranged Markets comes from underlying Positional Markets that create the Ranged Market. T**his implies that the volume driven by Ranged Markets will subsequently also drive volume of the underlying Positional Markets that the Ranged Markets are created around.**

{% hint style="info" %}
**The Ranged Markets AMM does not have a dedicated Skew Impact mechanism. They actually inherit the Skew Impact from the underlying Positional Markets that create it.**
{% endhint %}

### Potential Payout Example

For the sake of demonstrating a profitable trade using Ranged Markets, let's take the following Ranged Market:

* **Asset:** BTC
* **Strike Range:** $25,000< --- >$35,000
* **Time until Maturity:** 11 weeks
* **Current BTC Price:** $29,081.47

With these variables, the Thales AMM prices the **IN** and **OUT** tokens of this market at:

**IN = 0.417 USD**

**OUT = 0.720 USD**

{% hint style="warning" %}
Ranged Market Tokens have a slightly higher premium because of the fact they are created by two individual Positional Markets.

Skew Impact of each of the two Positional Market that create a Ranged Market is compounded in the respective Ranged Market they create.
{% endhint %}

Let's say a trader has 1000 USD and wants to acquire a position stating that the price of BTC will remain between $25,000 and $35,000 in 11 weeks from now.&#x20;

This trader then uses the **1000 USD** to purchase exactly **2398 IN tokens** from the Ranged Markets AMM, since the AMM algorithm offers the IN tokens to buyers at 0.417 USD per token.

If in 11 weeks (at the Maturity Date) the price of BTC remains between $25,000 and $35,000, our trader will be able to exercise (redeem) his **IN** tokens (that they acquired for 0.417 USD per token) for 1 USD per IN token. Which means his 2398 IN tokens will be worth exactly 2398 USD, providing them with a **profit of 1398 USD on the initial 1000 USD investment.**

If BTC does not remain between $25,000 and $35,000, the **OUT** tokens (that were priced at 0.720 USD) for this Ranged Markets will be worth 1 USD each, and the **IN** tokens would be worth 0.
