For the complete documentation index, see llms.txt. This page is also available as Markdown.

Spot Grid

Why two assets are required

A spot grid requires both:

  • Quote asset (e.g., USDC) → for buy orders

  • Base asset (e.g., BTC) → for sell orders

Orders are pre-calculated based on:

  • Price range

  • Grid count

  • Total investment

What is a Deficit?

A deficit is the missing base asset required to place all sell orders.

Example:

  • Grid: BTC/USDC, range $90–$110

  • Current price: $100

  • Required BTC for sell orders: 0.5 BTC

  • Available: 0.2 BTC

→ Deficit = 0.3 BTC

Deficit Status

  • Deficit = 0 → No action needed

  • Deficit > 0 → You must choose a funding method

Funding Options: Borrow Mode vs Buy Mode

Borrow Mode
Buy Mode

How it works

Borrow base asset

Buy base asset using USDC

Upfront cost

None

Reduces USDC immediately

Ongoing cost

Interest accrues

None

Note: Buy Mode uses Max Entry Price to cap purchase price (default ≈ 1% above current price).

Auto Selection Logic

The system selects the funding mode automatically:

  • Enough base asset → No funding

  • Only one mode available → Uses that mode

  • Both available → Defaults to Borrow Mode (can switch manually)

Last updated