# Trade

### **AMM Trading**

*<mark style="color:orange;">**Seamless Trading with Dynamic AMM**</mark>*

<figure><img src="/files/k8ptPQhcZVBpyZbUbOBQ" alt=""><figcaption><p>AMM Exchange and Transaction information- User friendly and intuitive </p></figcaption></figure>

OrangeDX's **Automated Market Maker (AMM)** swap engine employs an advanced <mark style="color:orange;">**Constant Function Market Maker (CFMM)**</mark> algorithm, which utilizes a dynamic adjustment mechanism for liquidity pools guided by a predetermined price curve. This algorithm is designed to maintain efficient asset swaps, minimizing price slippage across transactions. The core functionality is based on the formula *x . y = k*, where *x and y* denote the reserves of two different assets in a liquidity pool, and *k* represents a constant value that ensures the pool's total liquidity remains stable over transactions.

Enhancements to this basic <mark style="color:orange;">**CFMM**</mark> model include adjustments to the liquidity pool's parameters (such as *x and y)* in real-time, according to a predefined function that dictates how the price of assets changes with respect to their supply and demand within the pool. This optimized algorithm allows for **improved handling of trades** involving smaller or less-traded BRC-20 tokens by automatically recalibrating the pool's assets to align with the specified price curve, thereby ensuring the liquidity pool's efficiency and reducing the impact of trade size on market price.\
\
This innovative trading module is further enhanced by the integration of real-time charts directly into the user interface, significantly elevating the user experience. This design choice not only simplifies the trading process but also empowers users with **immediate access** to **crucial market data** and **trends**. By providing these analytical tools alongside the AMM swap system, OrangeDX ensures that users can make informed trading decisions within a **seamless**, **intuitive platform**, thereby setting a new standard for convenience and functionality in the digital asset trading landscape.

### **OrangeDX Perpetuals Trading**

*<mark style="color:orange;">**Fuel Your Trades, Pool Your Reward**</mark>*

<figure><img src="/files/pqBET0U9zkfcn3qTRumm" alt=""><figcaption><p>Perpetual Trading - Balance Leverage with Liquidity</p></figcaption></figure>

<mark style="color:orange;">**Perpetual trading**</mark> platform allow users to add liquidity to a single-sided pool, such as an <mark style="color:orange;">O4DX</mark> pool, through on-chain transactions, using their contributions as collateral for perpetual trading against major assets like Bitcoin or Ethereum. This system enables users to **execute multiple trades without transaction gas fees**, similar to centralized exchange (CEX) trading, with gas fees applied only upon withdrawal from the liquidity pool. Trades are made against the pool, and profits from successful trades are received in <mark style="color:orange;">O4DX</mark> tokens, with the option for users to set up stop losses to mitigate risks or face potential liquidation.

The pool's operation is governed by an algorithm designed to balance traders' leverage with the available liquidity, ensuring that the leverage does not exceed what the pool can sustainably support. Liquidity providers benefit by contributing to the pool, earning rewards from trading fees and the losses traders incur to the pool. This structure creates a **dynamic ecosystem** where participants can t**rade major assets** efficiently while **managing risk** and providing an opportunity for liquidity providers to **earn from their contributions.**

### **Dex Aggregator**

*<mark style="color:orange;">**Where DeFi Trading is Simplified**</mark>*

<figure><img src="/files/1Sb2gp9hFJYFIY8TL2cN" alt=""><figcaption></figcaption></figure>

OrangeDX revolutionizes BRC-20 trading with its advanced **DEX aggregator**, simplifying the DeFi experience by eliminating the need to jump between exchanges. This powerful tool unifies liquidity from top BRC-20 platforms into one easy-to-use interface, ensuring you find the best prices with its intelligent market-scanning algorithm.&#x20;

It provides **transparent fee breakdowns** and **clear execution paths** for informed trading decisions. By **saving time** and **reducing effort** in manual searching, OrangeDX allows traders to focus more on strategy and less on logistics. In essence, the aggregator is more than just a tool; it's a significant shift in how traders interact with the DeFi space, offering smarter, faster, and more efficient trading.

<figure><img src="/files/JZBdqIjdbWKQhjs6PWfD" alt=""><figcaption><p>O4DX Dex Aggregator </p></figcaption></figure>

### **Marketplace/Aggregator**

*<mark style="color:orange;">**Market aggregator - all in one place**</mark>*\
\
OrangeDX's BRC20 Marketplace lists native chain BRC20 projects, allowing users to buy and sell on the Bitcoin native chain. This enables **peer-to-peer trading** and grants users **access to rare BRC20 tokens**. The Market place will be complemented with a marketplace aggregator which would aggregate the major BRC20 tokens listed on various platforms.

As a marketplace and all-inclusive site for interacting with new initiatives, OrangeDX provides a dynamic entry point into the BRC-20 DeFi ecosystem. It distinguishes itself by providing a handpicked collection of BRC-20 projects that have been thoroughly evaluated for their stability and development prospects. An innovative routing system guarantees the best bargains across various exchanges, enabling confidence trading on the platform.

### **Markets**

*<mark style="color:orange;">**One Platform - Infinite Insights**</mark>*

The markets section offers a powerful solution for navigating the overwhelming flow of DeFi data. This platform brings together **real-time data** from the BRC-20 ecosystem into a **single, coherent view**, eliminating the need for multiple tabs and scattered information. It provides consolidated intelligence, enabling users to track prices, volumes, liquidity, and other key metrics across various BRC-20 exchanges and protocols in one place.&#x20;

With advanced visualization tools and analytics, it reveals **market trends**, **uncovers opportunities**, and **supports informed trading strategies**. Users can customize their dashboards to focus on vital investment data and stay updated with real-time alerts on price shifts and market events. \ <br>

<figure><img src="/files/jQsvyfIMkGooOIyy7hxP" alt=""><figcaption><p>BRC 20 Pools</p></figcaption></figure>


---

# 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://orangedx.gitbook.io/orangedx/overview/trade.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.
