---
name: fensory-grid-strategy
description: Prepare one bounded perpetual-futures grid, place post-only levels only after confirmation and stop for review after the first fill or range break.
license: Proprietary
compatibility: Requires access to the Fensory MCP server and an eligible Fensory account. Fensory is not available to US persons.
metadata:
  author: Fensory AG
  version: "0.1.0"
  source: "https://fensory.com/skills/grid-strategy-agent"
---

# Run a supervised grid strategy with an AI agent

## When to use

This guide is for an eligible non-US user who understands perpetual futures and wants to test a small, finite grid on one liquid market while reviewing each real-money action.

It is not a 24/7 grid bot, a high-frequency system or a return forecast. It does not continue after the client closes, restart after an error or keep replacing orders without a fresh account and market check.

## Operating rules

- Start with read tools and identify the signed-in account, market, venue and instrument before preparing an action.
- Treat the Fensory account state, open orders, positions and fills as authoritative when they differ from the conversation.
- Fensory enforces four controls on the account: a kill-switch, an access expiry, a market allow-list and a per-order cap. Client confirmation instructions are separate from those account controls.
- Never describe a perpetual future as a share or tokenized equity. State the instrument and its risks before discussing an order.
- Never substitute a different market, quote currency or instrument because the requested one is unavailable.
- Keep every proposed order within both the user's stated ceiling and the account's per-order cap.
- Do not place, cancel or replace an order until the exact symbol, side, order type and size have been shown. For a limit order, show the limit price. For a market order, show the current quote and expected execution conditions. The user must confirm that exact action.
- Stop when a required tool is unavailable, the account limit cannot be verified, the quote is stale or the instrument is ambiguous.

## Risk and scope

This file is operational guidance, not financial advice. Trading can lose the full amount committed. Perpetual futures use margin and can be liquidated. Spot assets can lose value. Stop if the instrument, current quote or account controls cannot be verified.

## Procedure

1. **Verify the market and account.** The assistant confirms that the market is available, reads minimum size and collateral, checks account controls and calculates whether the complete four-order plan fits the combined exposure boundary. Tools: `get_perps_status`, `get_market`, `get_account_state`, `get_user_fees`.
2. **Set the grid from current data.** The live book anchors the reference price and visible depth. Fees and funding remain explicit costs. Existing orders are checked before new levels are proposed so the grid does not duplicate exposure already working. Tools: `get_orderbook`, `get_predicted_fundings`, `get_open_orders`.
3. **Prepare four post-only levels.** Two bids and two offers use Alo time in force so they must rest on the book. Every level is previewed and confirmed separately. The assistant records each returned order id and does not infer a fill from successful submission. Tools: `place_perps_order`.
4. **Stop and reconcile after a fill.** The first confirmed fill ends the cycle. The assistant reports the resulting position, remaining orders, actual fees and current range location. Continuing the grid requires a new review rather than an automatic replacement. Tools: `get_order_status`, `get_open_orders`, `get_fills`, `get_account_state`.
5. **Modify or close named levels.** A modification starts from a live order id and produces a new post-only order id. A range break leads to a named-order cancellation plan. Both paths require fresh state, a preview, separate confirmation and final verification. Tools: `modify_perps_order`, `cancel_perps_order`.

## Request template

Use the Fensory tools to prepare one supervised grid cycle on BTC perpetual futures. Stay read-only first. Call get_perps_status, get_market, get_orderbook with depth 10, get_account_state, get_open_orders, get_user_fees and get_predicted_fundings.

Report the mark price, best bid, best ask, spread, visible size at the first five levels, current BTC position, available collateral, existing BTC orders, fees, current funding, market allow-list, access expiry and per-order cap. Stop if trading is not ready, any state is stale, an existing order overlaps this test or the account cannot support the full proposed grid.

Propose a four-order grid with two post-only bids below the current mid and two post-only offers above it. Use fixed, evenly spaced levels inside a stated lower and upper boundary. Keep each order at or below $15 notional, total resting notional at or below $60 and maximum planned net inventory at $30. Use limit orders with tif Alo. Show the exact asset, side, size and price for all four orders, plus the distance between levels and the worst one-sided fill outcome. Ask for confirmation separately before each placement.

After every confirmed placement, call get_order_status and get_open_orders. Do not describe a submitted order as filled. After any fill, call get_fills and get_account_state, cancel no order automatically and stop the cycle for review. Report the resulting position, remaining grid orders, fees and distance to the range boundaries.

If no order has filled and one identified level needs refreshing, use modify_perps_order only after a new order-book read and confirmation. Explain that the replacement is post-only and returns a new oid. Track that new oid from get_open_orders. Do not retry after rejection or timeout.

If the price leaves the range, prepare a stop summary and ask before cancelling only the named grid oids returned by get_open_orders. Identify any trigger, stop-loss or take-profit order and exclude it from the cancellation request. Verify the final state with get_open_orders, get_fills and get_account_state.

## Failure handling

- **The market trends through one side:** Several bids or offers can fill while the opposite side remains untouched, creating directional exposure. This workflow stops after the first fill so the user can review the position before the grid accumulates more inventory.
- **The price leaves the selected range:** A grid is defined by its boundaries. Once price moves outside them, the old levels no longer express the approved plan. The assistant reports the break and prepares named cancellations instead of shifting the whole range silently.
- **Spacing is smaller than the costs:** A narrow interval can be consumed by maker or taker fees, funding and adverse selection. The assistant compares spacing with current costs before placement but does not present that comparison as a profit forecast.
- **A level is modified under a new order id:** A successful modification replaces the old order. The assistant must read open orders again and track the new id before checking status or requesting cancellation.
- **A broad cancel removes protection:** Stop-loss and take-profit orders can appear beside grid orders. The workflow cancels named grid ids only and identifies trigger orders before asking for confirmation.
- **The client disconnects:** Resting venue orders can remain open after the connected client closes. This guide does not provide hosted monitoring or automatic failover. The user must review open orders and account state after reconnecting.

## Response contract

Report the account used, the exact instrument, the tools called, the controls that applied and the current order or position state. Separate a prepared order from a submitted order, and a submitted order from a fill. If no action was taken, say so directly.

## Sources

- [Fensory MCP server](https://fensory.com/mcp)
- [Hyperliquid order types](https://hyperliquid.gitbook.io/hyperliquid-docs/trading/order-types)
- [Hyperliquid exchange endpoint](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint)
- [Fensory account controls](https://fensory.com/security)

Product behavior and client permissions verified 2026-10-19.
