Chase Entry¶
Chase Entry allows QuantFin Bot to place orders closer to the best bid/ask prices, increasing the likelihood of fills. You can configure this feature using the frontend.
How It Works¶
- Orderbook Fetch: The bot retrieves the current orderbook to get the best bid and ask prices.
- Offset Calculation: The bot applies an offset (in basis points) to place orders closer to the market.
- Order Placement:
- Buy orders: Placed above the best bid.
- Sell orders: Placed below the best ask.
Configuring Chase Entry¶
- Visit the Frontend: Open quantfin.dexalgo.org and connect your wallet.
- Select a Symbol: In the Trading Symbols panel, click a symbol card (e.g.,
SUI-PERP
). - Open Update Config: Scroll to the Update Config panel.
- Adjust Settings:
- In the General tab, set Chase Offset (BPS) (e.g.,
0.5
= 0.05%). - In the General tab, set Mode to control which orders are placed (
both
,longonly
,shortonly
). - Apply Changes: Click Update Config to save. If the bot is running, stop it (sidebar > Stop Bot), apply changes, and restart (sidebar > Start Bot).
Example¶
- Best bid: $1.00
- Best ask: $1.01
- Chase Offset (BPS):
0.5
(0.05%) - Buy order price: $1.00 * (1 + 0.0005) = $1.0005
- Sell order price: $1.01 * (1 - 0.0005) = $1.0095
The bot places a buy order at $1.0005 and a sell order at $1.0095, closer to the market than standard grid orders.
Monitoring Chase Entry¶
- Console Logs Panel: Look for logs like
INFO: Adjusting buy order to 1.0005 with chase offset
. - Bot Status Panel: Ensure the bot is running (check the Running badge).
- Strategy Simulator: In the sidebar, click Strategy Simulator to visualize how chase entry affects order placement.
Next Steps¶
- Market Making: Learn about the bot’s grid strategy.
- Multi-DEX Support: Explore trading on multiple DEXs.
- Dynamic Distribution: Optimize order sizes.