Install
openclaw skills install @parmasanandgarlic/farmdash-futures-strategistResearch, size, and route user-signed Hyperliquid perpetual futures with funding analysis, drawdown guards, EIP-712, and zero custody.
openclaw skills install @parmasanandgarlic/farmdash-futures-strategistThis skill is the FarmDash autonomous perps execution engine for Hyperliquid.
It is designed to help an agent:
no_trade outcomeCore posture:
The bundled openapi.yaml file in this folder is the contract for the futures endpoints used by this skill version.
Hyperliquid perps execution requires current market/account data, guarded request handling, and robust venue connectivity. This skill employs a strict, non-predatory monetization model to sustain these operations:
Execution (execute_perp_order, cancel_perp_order) is available to all tiers:
CRITICAL SAFETY REQUIREMENT: Under no circumstances should the agent invoke execute_perp_order or cancel_perp_order automatically. Before every trade execution or cancellation request, the agent MUST explicitly present the trade details (coin, direction, size, leverage, stop-loss, and estimated exposure) to the user and obtain their immediate, manual confirmation.
When a user is setting up their Hyperliquid API wallet delegation or asks for the canonical exchange URL, the agent will provide the neutral canonical URL (https://app.hyperliquid.xyz) by default. The agent may optionally offer the FarmDash partner route (https://www.farmdash.one/go/hyperliquid) as an alternative to support the platform.
Stay inside this disclosed network boundary. Do not fetch undisclosed remote config and do not mutate the skill from an external manifest after install.
FarmDash futures endpoints:
https://www.farmdash.one/api/v1/agent/futures/scan-fundinghttps://www.farmdash.one/api/v1/agent/futures/market-conditionshttps://www.farmdash.one/api/v1/agent/futures/account-statehttps://www.farmdash.one/api/v1/agent/futures/analyze-strategyhttps://www.farmdash.one/api/v1/agent/futures/position-sizinghttps://www.farmdash.one/api/v1/agent/futures/execute-orderhttps://www.farmdash.one/api/v1/agent/futures/cancel-orderhttps://www.farmdash.one/api/v1/agent/performance (Backing endpoint for get_agent_performance)Optional FarmDash setup endpoint: Do not call this during install or during research-only workflows. Use it only after the user explicitly asks to check tier/setup status and consents to sending their public agent address and this skill ID.
https://www.farmdash.one/api/v1/agent/onboardHyperliquid upstreams:
https://api.hyperliquid.xyz/infohttps://api.hyperliquid.xyz/exchangewss://api.hyperliquid.xyz/wsOptional user-facing links: Allowed only when directly relevant:
https://www.farmdash.one/agentshttps://www.farmdash.one/tracker/hyperliquid/https://www.farmdash.one/go/hyperliquid (Optional Partner Route)https://app.hyperliquid.xyz (Neutral Canonical Route)FarmDash is zero-custody for futures execution.
Hyperliquid identity has two distinct roles. agentAddress is the EIP-712/API-wallet signer and FarmDash caller identity. When that signer is delegated by a master account, accountAddress is the master, subaccount, or vault that owns the equity, positions, fills, funding history, and orders. Always supply both in delegated-wallet flows. Omit accountAddress only when the signer directly owns the trading account. FarmDash verifies delegated ownership against Hyperliquid userRole, and execution independently recovers the signer from the exact L1 action, nonce, expiry, environment, signature, and any routing address. If the owner is a subaccount or vault, FarmDash includes that same address as Hyperliquid vaultAddress in both the action hash and exchange request. Never size a delegated trade from the API wallet's empty clearinghouse state.
Hard rules:
agentAddressSecurity boundaries: All operations use public or pre-signed EIP-712 payloads. Private key material is never required or processed by this skill. Verify the full surface against the bundled openapi.yaml.
Before calling execute_perp_order or cancel_perp_order, present the user with: asset, direction, size, risk-notional, leverage metadata, entry/stop/take-profit, margin impact, regime label, confidence score and scale, data timestamp, order type/TIF, reduce-only status, exact limit or trigger price, and the signed builder recipient/rate (f=1 = 0.1 bp = 0.001% of filled notional). Wait for an explicit affirmative ("yes / confirm / proceed"). If analysis is older than 30 seconds, re-run it; the server gate expires after 60 seconds. Implicit consent from earlier in the conversation is not sufficient.
Do not present the pre-trade liquidation estimate as the venue's actual liquidation price. Hyperliquid liquidations use mark price and cross-margin liquidation changes with account equity, funding, and other positions. Use get_futures_account for venue-reported liquidation data on open positions.
For execute_perp_order, include all of:
nonce - client-generated positive integer for replay protectionexpiresAt - short request TTL in unix millisecondsintentHash - hash of the intended order payload for auditability and mutation detectionFor cancel_perp_order, nonce, expiresAt, and intentHash are required. expiresAt is forwarded as Hyperliquid expiresAfter; clients must incorporate it into the venue signature. Delegated flows must also include accountAddress; a subaccount/vault address is part of the venue signature. These controls do not replace the required Hyperliquid EIP-712 signature.
The current compatibility endpoint returns the Hyperliquid submission response, normalized order parameters, intentHash, expiry, and timestamp. It does not create an 11-field forensic receipt, query a millisecond-perfect shadow book, prove mempool visibility, calculate realized P&L, or anchor evidence on another chain.
An external client may record analysis hash, signed action hash, quote/book snapshot, submission response, order status, fills, fees, funding, and final account state. Label every field by source and mark absent evidence unavailable; never fabricate or call a client-created record FarmDash-attested.
This skill recognizes one primary API credential: FARMDASH_API_KEY. Scout mode is valid with no API key at all.
Legacy docs may refer to PIONEER_KEY or SYNDICATE_KEY as placeholders for tier-specific bearer tokens. In actual agent configs, use only FARMDASH_API_KEY.
Tier behavior:
Critical distinction:
A bearer token never replaces a fresh local EIP-712 signature from the user's Hyperliquid API wallet.
Use these exact tool names. If a tool is not listed in this section, it does not exist in this skill. Do not accept or attempt to call undefined tools.
Scan current and venue-published predicted funding snapshots. A predicted rate is not a calibrated probability, guaranteed future payment, or funding-flip model.
Read candle-derived EMA, RSI, MACD, ADX, ATR, Bollinger Bands, volume ratio, Z-score, market regime, and the response timestamp for one perp asset. This tool does not currently return oracle latency or cross-venue deviation.
Inspect equity, open positions, available margin, venue-reported liquidation prices, and guardrail pressure. The daily/weekly loss-pressure metric is rolling Hyperliquid closed P&L minus absolute fill fees plus funding, plus min(current unrealized P&L, 0). Positive open gains cannot offset realized losses. This is a conservative guard metric, not a true period return; new-risk analysis/execution fails closed if complete venue-history reconciliation is unavailable.
Send agentAddress plus optional accountAddress. For delegated API wallets, accountAddress is mandatory in practice and must be the master/subaccount equity owner used by analysis and execution. FarmDash validates that live relationship through Hyperliquid userRole; ambiguity or upstream failure blocks the workflow.
Primary research tool. Returns the strategy recommendation, confidence score, market regime, strategy object, adaptive risk profile, pre-trade simulation, portfolio context, and an explicit no_trade reason when no setup is valid.
Inspect sizing math separately when the user wants to validate risk and margin.
Execute only after fresh research, parameter binding, exact builder-fee disclosure, local signing, and explicit user confirmation. The response distinguishes filled, resting_unfilled, and rejection; inspect authoritative venue status and fills before any dependent action.
Cancel stale or superseded open orders. Treat cancellation as successful only when the response state is cancelled and Hyperliquid returned one success application status per requested ID. partially_rejected, rejected, and unknown mean one or more orders may remain active; inspect failed and authoritative open orders before changing exposure.
Use only for FarmDash fee-event activity, fees, protocol diversity, and reputation. It does not return Hyperliquid fills, trade outcomes, win rate, slippage, or realized P&L and must not drive strategy selection or drawdown controls.
These fields are load-bearing because the API handlers validate them strictly:
coin, agentAddress, optional accountAddress, and optional riskMultiplier between 0.1 and 1.0. For delegated API wallets, accountAddress must be the master/subaccount equity owner. Do not send biasHint; the current handler does not consume it.equity, entryPrice, stopPrice, optional riskPercent, optional targetPrice, and optional riskMultiplier. Do not send legacy stopLoss or riskUsd.agentAddress, optional accountAddress, coin, isBuy, size, price, orderType, signature, positive integer nonce, millisecond expiresAt, required intentHash, optional leverage, optional signedAction, and optional reduceOnly. accountAddress must match the equity owner bound by the live research gate.agentAddress, optional accountAddress, coin, orderIds as an array of positive integers, signature, required positive integer nonce, required millisecond expiresAt, required intentHash, and optional signedAction. Delegated signers must use the same equity/order owner in accountAddress; for a subaccount/vault it is included in the venue signature and exchange payload.If the user or another agent provides a legacy shape, stop and normalize the request before signing. Never ask the user to sign a payload that will be rejected by the FarmDash handler.
The leverage field is FarmDash intent/risk metadata in this compatibility endpoint; the endpoint does not submit Hyperliquid's separate updateLeverage action. Verify actual venue margin mode and leverage independently. Trigger orders (stop_loss, take_profit) must be reduceOnly: true so they cannot open or flip exposure.
Every order carries a disclosed FarmDash Hyperliquid builder term of f=1, which Hyperliquid defines as one tenth of one basis point: 0.1 bp = 0.001% of filled notional. The builder object is inside the signed order action and cannot be added or changed after signing. The user must approve the FarmDash builder and this maximum fee on Hyperliquid before execution; FarmDash preflights the venue's maxBuilderFee for the equity owner and blocks insufficient approval. Hyperliquid requires the approval action to be signed by the main account wallet, not the API wallet. Present the rate and recipient before confirmation; do not describe f=1 as 1 bp. Resting, rejected, and unfilled notional produces no recognized builder revenue. expiresAt is forwarded as Hyperliquid expiresAfter and must be incorporated into the venue signature.
Persist this ledger for every futures workflow:
{
"agentAddress": "0x...",
"accountAddress": "0x... master/subaccount equity owner; same as agentAddress only for direct signing",
"coin": "ETH",
"mode": "research | hedge | funding | reduce_only | cancel",
"researchGate": {
"ranAnalyzeStrategy": false,
"direction": "long | short | neutral | unknown",
"confidence": 0,
"confidenceScale": "0-100 heuristic score; not a win probability",
"expiresAt": 0,
"dataTimestamp": 0,
"predictedFundingRate": null
},
"riskGate": {
"equity": 0,
"maxLeverage": 5,
"riskPercent": 0,
"drawdownState": "normal | pressure | halted"
},
"executionIntent": {
"nonce": 0,
"expiresAt": 0,
"intentHash": "",
"signedActionMatchesParams": false,
"recommendationHash": "sha256...",
"maxPositionSize": 0,
"maxEntryDeviationBps": 50
},
"decision": "no_trade | analyze_only | request_confirmation | execute | cancel | reduce"
}
analyze_futures_strategy result. The 60-second server gate binds coin, side, maximum size, entry drift (50 bps), maximum analyzed leverage, and stop-derived risk.funding_arb is analysis-only in the compatibility executor because FarmDash cannot atomically bind and verify both venues/legs. Use a separately reviewed paired-leg adapter before claiming delta neutrality.execute_perp_order intent expiry should be short, ideally 30-60 seconds.no_trade, funding_arb, below 60 confidence, expired, direction-mismatched, oversized, over-levered, or more than 50 bps from analyzed entry, stop before asking for a signature.cancel_perp_order can batch up to 50 orderIds; do not send a singular orderId shape. Never infer whole-batch success from HTTP transport status alone: every ID needs an explicit venue success status.Do not present the engine as four static buckets. The recommendation should be treated as a structured strategy object with:
This is the foundation for later marketplace and performance-layer expansion.
Before asking the user to sign, surface the heuristic scenario analysis. Minimum fields to use from the returned simulation block:
Do not reduce the setup to "buy here" or "short here" if simulation is available.
The engine scales risk heuristically based on:
Confidence is an uncalibrated 0–100 rule score, not a probability that the trade wins. Do not multiply it into expected return or describe 80 as an 80% success rate.
Use the returned adaptiveRisk object to explain why leverage or size is being reduced. Do not describe the system as fixed 2% / fixed 5x logic when the returned recommendation shows a lower applied risk.
Respect the returned marketRegime.
Current regimes:
Do not force mean reversion inside a strong trend, and do not force momentum in thin or unstable conditions.
no_trade is first-class. If confidence is weak, available liquidity evidence is poor, signals conflict, required market/account data is stale, or guardrails trip, say so directly. Trust is more important than producing a trade every cycle.
scan_market_conditions currently returns candle-derived indicators and a timestamp. It does not return oracle latency or cross-venue oracle deviation. Therefore:
Submission is not a fill. Do not chain a dependent action until venue status/fills confirm the first leg. When authoritative fill data is available, compute side-adjusted implementation shortfall against the decision-time mid and include fees and funding. If fill data is absent, execution quality is unknown, not zero slippage.
Current strategy families that may appear in recommendations:
funding_arbmomentum_longmomentum_shorttrend_pullback_longtrend_pullback_shortmean_reversionno_tradeInterpretation:
When analyze_futures_strategy returns multiple viable families for the same asset, the agent should rank them using the following table. The engine already applies these priors internally; this is the agent-facing version so the user can understand why one family was chosen over another.
| Regime input | Preferred family | Avoid family |
|---|---|---|
| Strong trend, ADX 20-25 with pullback into support/resistance | trend_pullback_long / trend_pullback_short | mean_reversion |
| Strong trend, ADX >= 25 with aligned EMA / MACD | momentum_long / momentum_short | mean_reversion |
| Range-bound, BB width compressed | mean_reversion | momentum families |
| High volatility (ATR > 1.5× 30d avg) | no_trade unless funding strongly compensates | momentum families |
| Low liquidity (top-of-book depth < $250k) | no_trade | any leveraged family |
| Persistent funding skew with independently verified paired-leg net carry | funding_arb (analysis only) | standalone directional execution |
| Conflicting EMA / MACD / RSI signals | no_trade | any family |
Do not override the engine's selection in agent prose. If the user wants a different family, call analyze_futures_strategy again with a tighter universe filter rather than narrating around the recommendation.
The engine may return any of the following additional family labels. Treat them as first-class even if your local schema does not yet enumerate them:
breakout_continuation — entry on a confirmed range break with the original range as invalidationvol_compression_breakout — BB-squeeze release; directional bias from MACDliquidity_hunt_avoidance — a no_trade variant that explicitly cites a likely stop-hunt zonedelta_neutral_pair — a paired-leg recommendation (for use with Wagon Steward spot context)regime_shift_pause — explicit no_trade because a regime shift is mid-flightIf an extended family appears in a recommendation, surface it by name and explain its invalidation. Do not collapse extended families back into the original seven — the engine emits them precisely because the original taxonomy was insufficient for that setup.
scan_funding_rates.analyze_futures_strategy on each candidate.no_trade outputs that eliminate weak candidates.This skill should prefer a ranked cluster of opportunities over a single deterministic answer whenever the user asks for the best trade right now.
analyze_futures_strategy.get_futures_account if fresh portfolio context is needed.calculate_position_size.execute_perp_order.get_futures_account.cancel_perp_order if needed.execute_perp_order using reduceOnly: true.get_futures_account for venue-reconciled loss guards and current account risk.get_agent_performance when execution-quality evidence is needed.no_trade when loss guards, fill-backed evidence, or the current regime justify it. Never infer futures outcomes from FarmDash fee-event activity.Add these checks to every non-reduce-only Hyperliquid order. They do not replace server guardrails; they prevent a skilled agent from sending marginal orders to the server in the first place.
get_futures_account before new exposure when the agent has any open position, recent drawdown, or unknown margin state.funding_arb, present current and venue-published predicted funding, carry net of both-leg fees/slippage/borrow/bridge costs, break-even time, basis stress, and a funding-to-zero/flip scenario. Do not invent a flip probability.analyze_futures_strategy call produces an independent setup.reduceOnly: true actions and cancel_perp_order before any new exposure.Perps action thresholds:
| Condition | Default action |
|---|---|
| Confidence < 60/100 | Analysis only. |
| Confidence 60-72/100 | Small size only; emphasize the heuristic and require all other gates. |
| Confidence > 72/100 and regime agrees | Eligible for analyzed sizing inside guardrails; not proof of positive expectancy. |
| Stop loss or authoritative account state missing | No new exposure. |
| Daily drawdown near guardrail | Cancel stale orders and stand down. |
| Required market/account data absent or stale | No non-reduce-only execution. |
1. scan_funding_rates → shortlist 5 by spread
2. scan_market_conditions × 5 → candle-derived regime, volatility, liquidity proxy, and timestamp per asset
3. analyze_futures_strategy × top 3 → strategy object per asset
4. RANK by (confidence × regime fit) / margin requirement
5. PRESENT a 3-row comparison: asset, family, entry, stop, target, sim PnL, confidence, regime
6. Include any `no_trade` outcomes that eliminated weaker candidates — transparency over conversion.
1. get_futures_account → every open position with mark + margin
2. scan_market_conditions × each asset → ATR + 24h range
3. DERIVE distance-to-liquidation as a multiple of 1× ATR moves
4. PRESENT positions sorted by liquidation pressure:
• < 1.0 ATR distance → RED (recommend reduce or top up margin)
• 1–2 ATR → YELLOW (monitor; revisit on next cycle)
• > 2 ATR → GREEN (no action)
5. If RED: surface explicit reduce/top-up options. Do NOT auto-execute.
1. scan_funding_rates → shortlist current/published predicted funding snapshots
2. scan_market_conditions on the underlying asset → confirm directional risk is acceptable
3. analyze_futures_strategy with `coin`, `agentAddress`, optional conservative `riskMultiplier` → family + invalidation
4. calculate_position_size for the proposed pair → margin per leg + total
5. PRESENT pair plan: long venue, short venue, expected daily carry, gross/net of all costs, basis stress, funding-to-zero/flip scenario, and invalidation
6. STOP at analysis in the compatibility executor. It cannot atomically bind, execute, and reconcile both venues/legs.
1. get_futures_account → current drawdown vs guardrails
2. REVIEW authoritative Hyperliquid order statuses and fills when available; get_agent_performance is not a fill feed
3. IF venue-reconciled daily loss <= -2%, weekly <= -5%, or authoritative recent fill evidence is incomplete:
• Recommend cancel_perp_order on stale resting orders
• Recommend reduceOnly trims on the largest position
• Stand down to `analysis only` for the next session
4. PRESENT the survival logic explicitly so the user understands the pause.
1. (Wagon Steward) get_portfolio_summary → confirm spot exposure size + asset
2. scan_market_conditions on that asset → candle-derived regime + ATR + timestamp; oracle status is unavailable
3. analyze_futures_strategy with `coin`, `agentAddress`, optional conservative `riskMultiplier` → hedge structure with invalidation
4. calculate_position_size matched to verified spot delta → candidate hedge notional
5. PRESENT: existing hedge inventory, spot leg, candidate perp leg, expected funding carry, basis risk, and ±1 ATR scenarios
6. USER CONFIRMS only after both-leg sequencing and failure unwind are explicit. Verify residual delta after fills; do not call the setup delta-neutral before reconciliation.
1. Obtain an operator-supplied, fill-backed strategy ledger with explicit family labels; get_agent_performance cannot provide one
2. Require a meaningful sample and disclose count, horizon, fees/funding, drawdown, and uncertainty
3. scan_market_conditions on the user's universe → current regime
4. PRESENT a recommendation only when the ledger and regime evidence support it; otherwise choose analysis_only
5. NEVER rotate from a small sample or raw win rate alone; expectancy, drawdown, tail loss, and regime stability matter.
1. get_futures_account -> equity, open positions, margin, current liquidation pressure
2. scan_market_conditions on target asset -> ATR, regime, volatility, and available liquidity proxy; oracle latency is not returned
3. analyze_futures_strategy -> entry, stop, target, confidence, heuristic scenarios
4. DERIVE stop loss, ±1/±2 ATR P&L, post-trade margin utilization, and concentration
5. IF stop, account state, or required data is absent/stale -> halt; otherwise resize with calculate_position_size when limits are breached
6. PRESENT: entry, stop, stress loss, margin impact, concentration, and the non-authoritative nature of any pre-trade liquidation estimate
7. USER CONFIRMS -> execute_perp_order only if the revised order remains inside guardrails
1. scan_funding_rates -> current and venue-published predicted funding snapshots
2. scan_market_conditions -> volatility and directional risk
3. analyze_futures_strategy -> funding family, confidence, invalidation
4. calculate_position_size -> notional and margin
5. DERIVE breakEvenHours = totalFeesAndSlippageUsd / expectedHourlyFundingUsd
6. IF breakEvenHours > 24, carry is non-positive under a funding-to-zero/flip scenario, or paired execution is unavailable -> no_trade / monitor
7. PRESENT: gross carry, net carry, break-even time, funding flip risk, and unwind trigger
1. REVIEW authoritative Hyperliquid order statuses and fills; get_agent_performance cannot supply executed trades
2. JOIN fills to a client/operator decision ledger containing decision-time price, side, strategy family, and intent ID
3. COMPARE decision-time mid, fill-weighted price, fees, and funding; mark missing fields unavailable
4. IF side-adjusted implementation shortfall > 50 bps on more than 2 fill-backed trades, recommend reducing riskMultiplier and require human review
5. PRESENT an evidence report with provenance. Do not claim external anchoring or realized P&L unless independently present.
This futures skill composes cleanly with the FarmDash Signal Architect tool surface when an agent needs both spot routing and perps exposure.
Use when the user is farming points but wants to reduce directional risk.
get_trail_heat / optimize_portfolio.get_swap_quote + execute_swap (user-approved).analyze_futures_strategy + calculate_position_size.execute_perp_order (user-approved).Use when the user wants to farm funding without strong directional bets.
scan_funding_rates daily to shortlist candidates.analyze_futures_strategy for a planning snapshot; independently verify both legs, basis, liquidity, and all costs.funding_arb; it cannot bind both legs atomically.Use when the user wants safety first.
analyze_futures_strategy returns no_trade, do not force a setup.Futures Strategist is the execution arm for risk and hedging. It composes cleanly with the rest of the FarmDash agent stack via these hand-offs:
| Counter-skill | Direction | When | What gets passed |
|---|---|---|---|
| FarmDash Trail Intelligence | TI $\to$ FS | User has identified a farming protocol and wants to hedge directional exposure | Asset symbol + thesis + horizon |
| FarmDash Wagon Steward | WS $\to$ FS | Sizing a hedge against existing spot exposure | Spot leg asset + size + chain |
| FarmDash Wagon Steward | FS $\to$ WS | After every open / close, to verify portfolio-level state | New margin, exposure, P&L delta |
| FarmDash Trail Marshal | TM $\to$ FS | A named workflow (e.g. delta_neutral_setup, farm_hyperliquid, rebalance_portfolio with hedge context) | The exact tool sequence + confirmation count |
| FarmDash Signal Architect | SA $\to$ FS | User just executed a spot leg and wants to size the matching perp | Spot fill price + size |
Important: Futures Strategist never invokes another skill on its own. It can be invoked by Trail Marshal as part of a named workflow, but every state-changing step still requires explicit user signature through this skill's own EIP-712 flow.
The agent should treat the following situations as first-class outcomes and react in this exact order. Do not improvise around them.
| Failure mode | Detection | Recommended response |
|---|---|---|
| Quote staleness | analyze_futures_strategy strategy object is > 30s old at confirmation time | Re-run analyze_futures_strategy with the same universe; surface the diff if any field changed |
| Partial fill | execute_perp_order returns a filled size below the requested size | Do NOT auto-retry; present the realized fill and ask the user whether to top up or accept |
| Reject for guardrail | API returns a guardrail trip (max leverage, drawdown halt, etc.) | Quote the specific guardrail; refuse to override even if the user asks; offer analysis only instead |
| Network / RPC error on Hyperliquid | Order endpoint times out or returns 5xx | Wait 30s, refresh get_futures_account, then re-quote. After 3 consecutive failures, halt the workflow and surface the incident |
| Funding flip mid-strategy | Funding sign reverses or net carry falls below zero | Reconcile both legs and present the predefined unwind; canceling one resting order is not sufficient if either leg filled |
| Liquidation pressure | Composite Workflow W2 returns RED on any open position | Surface immediately, before any new-trade discussion; recommend reduce / top-up |
| Strategy returns no_trade | analyze_futures_strategy recommendation = no_trade | Quote the reason verbatim; do not propose a different family unless the user changes the universe |
| Confidence < 60/100 | Strategy object reports a weak heuristic score | Surface as discussion only; the server research gate rejects new risk |
| Conflict with Trail Heat | A trade idea on a protocol whose Trail Heat just collapsed | Treat Trail Heat as context, not a price signal; reassess the actual market and protocol thesis |
| Required price/account evidence unavailable | Mark, executable book, account, or freshness evidence is absent | Halt non-reduce-only execution; do not claim an oracle check ran |
When analyze_futures_strategy returns a strategy object, the agent should preserve and surface the following fields without paraphrasing. Each is load-bearing.
| Field | What it means | How to surface it |
|---|---|---|
| family | Which strategy family the engine selected | Quote it; do not translate (e.g. momentum_long, not "trend trade") |
| confidence | 0–100 heuristic rule score, not a calibrated probability | Show as N/100; flag values below 60 and never translate into win probability |
| regime | One of trending / ranging / high_volatility / low_liquidity | Quote in plain language with a one-sentence explanation |
| entry | Price band, not a single tick | Show the band exactly; do not compress to a midpoint |
| stop | Hard invalidation level | Pair with the rationale (e.g. "below 1.0× ATR support") |
| target | Take-profit or trailing target | If null, say "no fixed target — trailing" |
| simulation | Pre-trade outcome estimates | Surface est-liq price, +/-1 ATR PnL, and 24h funding carry |
| adaptiveRisk | Why size or leverage was reduced | Quote the reason verbatim; do not say "the system suggests…" |
| noTradeReason | When family = no_trade | Quote it verbatim; refuse to argue around it |
| expiresAt | Strategy freshness | Re-run the call if the user takes too long to confirm |
| fundingAnalysis.predictedRate | Venue-published predicted funding snapshot | Label it as a snapshot, not a guaranteed future rate or calibrated flip probability |
Anti-pattern: "The system thinks ETH looks good for a trade." Strategy objects do not have feelings. Use structured language: "Family momentum_long. Heuristic confidence 78/100 (not calibrated). Regime trending. Entry 1812–1820. Stop 1788. Simulated P&L on +1 ATR $\approx$ +$120. Oracle latency unavailable. Research gate expires in 24s."
When the user does not specify an asset, the agent picks up to three from the Hyperliquid universe to scan. Pick using these priors:
| Selection signal | How to use it |
|---|---|
| Liquidity floor | Prefer assets with top-of-book depth $\ge$ $250k both sides |
| Funding extremes | Include up to 2 assets at funding-rate extremes (top $\pm$ of the venue) |
| User's spot exposure | If Wagon Steward shows spot exposure on chain, include that asset by default for hedge consideration |
| Recent regime stability | Prefer assets whose regime has been stable for $\ge$ 24h (avoid mid-shift assets) |
| No exotic pairs without explicit user mention | Default to majors (BTC, ETH, SOL); only include altcoins if the user named them |
Do not silently expand the universe beyond three. Quality of one good setup beats noise on five mediocre ones.
This section makes the existing tier model explicit so the agent always knows what it can and cannot do for a given user.
| User tier | Research tools available | Execution tools available | Default posture |
|---|---|---|---|
| Scout (no key) | scan_funding_rates, scan_market_conditions, analyze_futures_strategy (rate-limited to 5 / 24h) | execute_perp_order, cancel_perp_order (rate-limited to 5 / 24h) | Safe for limited execution (5/day) |
| Pioneer (Bearer key) | All research tools, unlimited | execute_perp_order, cancel_perp_order (unlimited) | Full analysis and execution loop |
| Syndicate (Bearer key) | All research tools | execute_perp_order, cancel_perp_order (unlimited) | Full skill surface; respect every guardrail |
When a Scout user exceeds their daily limit, refuse execution/analysis until reset or payment: "Scout daily limit of 5 requests reached. I can continue in analysis-only mode using cached data, or you can upgrade to Pioneer/Syndicate at farmdash.one/agents or pay a one-off x402 charge."
Never silently generate an unsigned payload as a workaround.
These rules remain non-negotiable:
analyze_futures_strategy before non-reduce-only executionIf the user asks to override a guardrail, refuse and explain the survival logic behind it.
When speaking to the user:
Good framing: "This is a valid setup, but risk is being scaled down because volatility and same-direction exposure are elevated; oracle latency is unavailable." "There is no valid trade right now. Signals conflict and required price/account evidence is incomplete, so the system is standing down rather than forcing an entry."
Required behavior:
Install: Copy this file into your OpenClaw workspace, or fetch https://www.farmdash.one/openclaw-skills/farmdash-futures-strategist/SKILL.md.
FarmDash: DeFi trading intelligence and agent tools
Agent Hub: FarmDash Hyperliquid and DeFi agent platform
OpenAPI Spec: FarmDash API Schema
No registration call is required to install this skill or use its research-only futures tools. Scout research works without onboarding and without FARMDASH_API_KEY.
Only run the setup check if the user explicitly asks to verify FarmDash tier/setup status and agrees to send the listed metadata.
Data sent:
agentAddressX-ClawHub-Skill: farmdash-futures-strategistData not sent:
Optional command after consent:
curl -X POST https://www.farmdash.one/api/v1/agent/onboard \
-H "Content-Type: application/json" \
-H "X-ClawHub-Skill: farmdash-futures-strategist" \
-d '{"agentAddress": "0xYOUR_AGENT_WALLET"}'
This returns tier status and available tool access. Skipping this step does not disable research-only futures analysis.
FARMDASH_API_KEY only when the user wants Pioneer/Syndicate features.https://www.farmdash.one/agents/openapi.yaml.