> For the complete documentation index, see [llms.txt](https://doppi-finance.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doppi-finance.gitbook.io/docs/readme/publish-your-docs/editor.md). Agents can also search and read this documentation through its [MCP server](https://doppi-finance.gitbook.io/docs/~gitbook/mcp).

# What is Doppi Finance

Doppi Finance is a platform for dual-asset investing and automated trading. Users can open **Buy-Low** and **Sell-High** positions using two assets, such as BTC and USDT. The position's strike and term determine how its principal is paid at expiry. The APR is an estimate used to calculate interest; it is not a guaranteed return.

### Main parts of the protocol

* **DoppiOffer** creates Buy-Low and Sell-High offers with a strike price, an estimated APR, and an expiry time.
* **DoppiCore** records positions and calculates their payout and interest when they are settled after expiry.
* **DoppiLiquidity** is a shared pool of supported assets. It helps provide assets for settlements and swaps. Liquidity providers receive pool shares, whose value can change.
* **DoppiOpportunity** can trade eligible positions when configured price conditions are met. These trades can affect the final settlement.

An off-chain automation runner submits transactions for settlement and other automated actions. The contracts execute and record those actions on-chain after a transaction is submitted; they do not independently act on every block.

### How it works

The illustration below shows the overall protocol flow, including the connections between the main components.

<figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-92860b1cd494030fbaf9ed467cb871d4597fcb85%2Fimage%20(23).png?alt=media" alt=""><figcaption></figcaption></figure>

### Automated trading strategies

Doppi provides a range of automated trading bots with different strategies. The bots below are examples of the current offerings, not a complete list. They need an off-chain runner to check for work and an authorized forwarder to execute trades; they do not trade continuously by themselves.

* **DoppiSimpleTrader** makes a buy or sell when its price trigger is reached, then can reverse that trade when its unwind condition is met.
* **DoppiGridTrader** sets a weighted grid of buy and sell levels around an anchor price, trades when buffered levels are crossed, and refreshes the grid in new epochs.
* **DoppiTrader** places weighted Buy-Low and Sell-High positions in DoppiCore. After settlement, it can unwind eligible trades and place more positions when conditions allow.

The Simple and Grid bots trade through DoppiLiquidity. DoppiTrader uses both DoppiCore positions and DoppiLiquidity swaps. See [Trading Bot](https://doppi-finance.gitbook.io/docs/readme/trading-bot.md) for the details of each strategy.

Autonomous AI trading agents are also in the product pipeline. More information will be shared as they become available.
