> 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/simulations/trader-bot.md). Agents can also search and read this documentation through its [MCP server](https://doppi-finance.gitbook.io/docs/~gitbook/mcp).

# Trader Bot

### Scenario :

1. LP provides $100,000 USDT and 1 BTC to the DUAL pool for the market making bot.
2. Trader deposit $100,000 USDT and 1 BTC to the Trader Bot (TB) to place the orders automatically
3. The bot maintains BTC neutral where it always rebalance back the BTC balance to 1 BTC every time after the settlement cycle.
4. Trader bot will make attempt to unwind the USDT back to BTC if the the market price favor to the previous strike price during the period.
5. Simulation running from February till June using hourly BTC-USDT pricing mechanism.

### Trader Initial Position

<table data-full-width="false"><thead><tr><th width="108"></th><th width="146" align="center">USDT</th><th width="117" align="center">BTC</th></tr></thead><tbody><tr><td>Trader</td><td align="center">100,000</td><td align="center">1.0</td></tr></tbody></table>

### Trader Bot Result

<div align="left"><figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-071198c06f9e8f80d6c0b3ff3099e98091f9e495%2Fimage%20(7).png?alt=media" alt=""><figcaption><p>Trader Profit and Loss</p></figcaption></figure></div>

### Impermanent Loss - Unrealized P\&L

Unrealized P\&L is the impermanent loss on BTC after the BTC sell order hit the strike price on expiry. The trader bot are featured with the minimal impact of impermanent loss in BTC position

<div align="left" data-full-width="false"><figure><img src="https://3407503094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZWnLCFJLW4FIyI20sfj2%2Fuploads%2Fgit-blob-8255610f271c256834c87c14b1c64f91053dd3e7%2Fimage%20(8).png?alt=media" alt=""><figcaption></figcaption></figure></div>
