Skip to content

Dynamic Distribution

Dynamic Distribution optimizes the size of grid orders based on your wallet exposure, helping manage risk. You can enable and configure this feature using the frontend.

How It Works

  1. Equity Check: The bot retrieves your total equity (free collateral) from Bluefin.
  2. Exposure Limits: The bot calculates maximum exposure for long and short positions based on your settings.
  3. Order Sizing: Order quantities are adjusted dynamically across grid levels, ensuring total exposure stays within limits.
  4. Placement: Orders are placed with varying quantities to optimize risk.

Configuring Dynamic Distribution

  1. Visit the Frontend: Open quantfin.dexalgo.org and connect your wallet.
  2. Select a Symbol: In the Trading Symbols panel, click a symbol card (e.g., SUI-PERP).
  3. Open Update Config: Scroll to the Update Config panel.
  4. Adjust Settings in the Dynamic Distribution tab:
  5. Enable Dynamic Distribution: Check this box to activate the feature.
  6. Always Full Grid (The 'Chad' grid): Check to always place a full grid, ignoring the current position.
  7. Wallet Exposure Limit (Long): Max long exposure (e.g., 0.5 = 50% of equity).
  8. Wallet Exposure Limit (Short): Max short exposure (e.g., 0.4 = 40%).
  9. Distribution Strength: Controls the distribution curve (e.g., 1.2).
  10. Distribution Levels: Number of levels (e.g., 8).
  11. Quantity Precision: Precision for order quantities (e.g., 0.001).
  12. Apply Changes: Click Update Config to save. If the bot is running, stop it (sidebar > Stop Bot), apply changes, and restart (sidebar > Start Bot).

Toggling Dynamic Distribution

  • Quick Toggle: In the sidebar, click Toggle Dynamic, or in the Trading Symbols panel, click the three-dot menu on a symbol card and select Toggle Dynamic.
  • Verify: In the Bot Status panel, check the Dynamic Dist badge to confirm it’s enabled.

Example

  • Total equity: $10,000
  • Wallet Exposure Limit (Long): 0.5 (50% = $5,000)
  • Distribution Levels: 8
  • The bot calculates order quantities for 8 buy levels, ensuring the total long exposure doesn’t exceed $5,000.

Monitoring Dynamic Distribution

  • Bot Status Panel: The Dynamic Dist badge shows if the feature is enabled.
  • Console Logs Panel: Look for logs like INFO: Adjusted order quantity to 0.5 based on exposure.
  • Strategy Simulator: In the sidebar, click Strategy Simulator to visualize how order sizes vary across the grid.

Next Steps