Continued Grid Mode¶
Continued Grid Mode lets QuantFin Bot “pick up where it left off,” maintaining ever-increasing order sizes and skipping already-filled grid levels—then cycling back once all levels have been consumed.
How It Works¶
- Initial Grid Build
- Bot computes a set of price levels around the live midpoint (or entry price clamp).
- Bot computes an array of quantities for each level (using dynamic distribution or fixed grid).
-
All levels are placed as limit orders.
-
Tracking Filled Levels
- After fills, the bot sums through your saved quantities until the cumulative total exceeds your current position.
-
That index becomes
first_unfilled_level_index
—levels below it are considered “filled.” -
Subsequent Grid Placement
- On each refresh, bot recomputes all prices and all quantities (never shrinking below the largest-ever–placed size).
-
It then skips levels
0…first_unfilled_level_index−1
and places only the remaining suffix. -
Wrap & Repeat
- Once
first_unfilled_level_index
equals the total number of levels, the bot resets it to0
and starts a fresh cycle—quantities still respect the maximums you’ve already reached.
Configuring Continued Grid Mode¶
-
Open the Frontend
Navigate to quantfin.dexalgo.org and connect your SUI wallet. -
Select a Symbol
In the Trading Symbols panel, click on your symbol (e.g.,SUI-PERP
). -
Open Update Config
Scroll to the Update Config panel in the sidebar. -
Enable Continued Grid Mode
- Under the Grid tab, toggle Continued Grid Mode on.
-
Optionally adjust Grid Levels, Level Step, Grid Span, and Order Qty to suit your strategy.
-
Save & Restart
- Click Update Config.
- If the bot is running, click Stop Bot, then Start Bot to apply changes.
Example¶
- Grid Levels:
8
- Level Step:
1%
- Order Qty:
1.0
-
Continued Grid Mode: On
-
Bot places 8 buy orders at progressively lower prices, each for
1.0
units. - You fill levels 0–2 (cumulative ~3.0).
- Next refresh,
first_unfilled_level_index = 3
→ bot places levels 3–7 only. - After filling through level 7, index wraps to 0 → a fresh 8-level grid is placed around the new midpoint.
Monitoring Continued Grid Mode¶
- Console Logs panel: look for entries like