> For the complete documentation index, see [llms.txt](https://support.backpack.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.backpack.exchange/support-docs/es/exchange/trading/bots-de-trading/spot-grid.md). Agents can also search and read this documentation through its [MCP server](https://support.backpack.exchange/~gitbook/mcp).

# Spot Grid

### **Por qué se requieren dos activos**

Un spot grid requiere ambos:

* **Activo de cotización** (por ejemplo, USDC) → para órdenes de compra
* **Activo base** (por ejemplo, BTC) → para órdenes de venta

Las órdenes se calculan previamente en base a:

* Rango de precio
* Cantidad de niveles del grid
* Inversión total

### **¿Qué es un Déficit?**

Un déficit es el activo base faltante necesario para colocar todas las órdenes de venta.

**Ejemplo:**

* Grid: BTC/USDC, rango $90–$110
* Precio actual: $100
* BTC requerido para órdenes de venta: 0.5 BTC
* Disponible: 0.2 BTC

→ Déficit = **0.3 BTC**

**Estado del Déficit**

* **Déficit = 0** → No se requiere ninguna acción
* **Déficit > 0** → Debes elegir un método de financiamiento

### **Opciones de Financiamiento: Modo Préstamo vs Modo Compra**

|                | Modo Préstamo                | Modo Compra                       |
| -------------- | ---------------------------- | --------------------------------- |
| Cómo funciona  | Toma prestado el activo base | Compra el activo base usando USDC |
| Costo inicial  | Ninguno                      | Reduce el USDC de inmediato       |
| Costo continuo | Se acumula interés           | Ninguno                           |

{% hint style="info" %}
**Nota:** El Modo Compra usa el `Precio Máximo de Entrada (Max Entry Price)` para limitar el precio de compra (por defecto ≈ 1% por encima del precio actual).
{% endhint %}

**Lógica de Selección Automática**

El sistema selecciona el modo de financiamiento automáticamente:

* Activo base suficiente → Sin financiamiento
* Solo un modo disponible → Usa ese modo
* Ambos disponibles → Por defecto usa el **Modo Préstamo** (se puede cambiar manualmente)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://support.backpack.exchange/support-docs/es/exchange/trading/bots-de-trading/spot-grid.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
