Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Farmdash Research API
version: 2.0.0
contact:
name: FarmDash Engineering
url: https://www.farmdash.one/agents
license:
name: MIT
description: 'Operations tagged Research across 2 of this provider''s published API definitions: farmdash-openapi.yaml, farmdash-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://www.farmdash.one/api
description: Production
tags:
- name: Research
description: Futures market research — funding rates, technical indicators
paths:
/v1/agent/futures/scan-funding:
parameters:
- $ref: '#/components/parameters/X-FarmDash-Installation-ID'
- $ref: '#/components/parameters/X-FarmDash-Client'
- $ref: '#/components/parameters/X-FarmDash-Client-Version'
- $ref: '#/components/parameters/X-FarmDash-Skill-Version'
get:
operationId: scanFundingRates
summary: Scan Hyperliquid funding rates for arb opportunities
description: 'Returns current and predicted funding rates across all Hyperliquid perp
markets. Cross-references with Binance and Bybit to identify arbitrage.
Scout: top 3 with encrypted rates. Pioneer/Syndicate: full data.'
tags:
- Research
security:
- bearerAuth: []
- {}
parameters:
- $ref: '#/components/parameters/X-ClawHub-Skill'
responses:
'200':
description: Funding rate scan
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
content:
application/json:
schema:
$ref: '#/components/schemas/ScanFundingResponse'
examples:
success:
summary: scanFundingRates HTTP 200
description: Illustrative successful response generated from the published schema.
value:
ok: true
tier: scout
arbOpportunities:
- arbDirection: long_spot_short_perp
highFunding:
- arbDirection: long_spot_short_perp
totalScanned: 1
upgradeMessage: Illustrative FarmDash API example.
timestamp: 1
warnings:
- kind: dust_storm
message: Illustrative FarmDash API example.
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimitExceeded'
'502':
description: Typed Hyperliquid funding provider degradation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: scanFundingRates HTTP 502
description: Illustrative structured error; live code/retryability/request ID are authoritative.
value:
error: upstream_unavailable
ok: false
code: upstream_unavailable
message: Typed Hyperliquid funding provider degradation
retryable: true
request_id: 11111111-1111-4111-8111-111111111111
details:
ok: false
error: request_failed
x-farmdash-request-example:
method: GET
url: https://www.farmdash.one/api/v1/agent/futures/scan-funding
description: Concrete illustrative request; authentication, payment, and signature headers are omitted unless separately documented.
servers:
- url: https://www.farmdash.one/api
description: Production
/v1/agent/futures/market-conditions:
parameters:
- $ref: '#/components/parameters/X-FarmDash-Installation-ID'
- $ref: '#/components/parameters/X-FarmDash-Client'
- $ref: '#/components/parameters/X-FarmDash-Client-Version'
- $ref: '#/components/parameters/X-FarmDash-Skill-Version'
get:
operationId: getMarketConditions
summary: Get technical indicators for an asset
description: 'Returns EMA-8/34, RSI-14, MACD(12,26,9), ATR-14, Bollinger Bands(20,2),
ADX-14, volume ratio, and Z-score using 4h candles.
Includes a strategy hint based on indicator confluence.'
tags:
- Research
security:
- bearerAuth: []
- {}
parameters:
- $ref: '#/components/parameters/X-ClawHub-Skill'
- name: coin
in: query
required: true
schema:
type: string
description: Asset symbol (ETH, BTC, SOL, HYPE)
responses:
'200':
description: Technical indicators
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
X-Request-ID:
$ref: '#/components/headers/X-Request-ID'
content:
application/json:
schema:
$ref: '#/components/schemas/MarketConditionsResponse'
examples:
success:
summary: getMarketConditions HTTP 200
description: Illustrative successful response generated from the published schema.
value:
strategyHint: momentum_long
'400':
$ref: '#/components/responses/BadRequest'
'402':
$ref: '#/components/responses/PaymentRequired'
'502':
description: Typed Hyperliquid candle provider degradation
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: getMarketConditions HTTP 502
description: Illustrative structured error; live code/retryability/request ID are authoritative.
value:
error: upstream_unavailable
ok: false
code: upstream_unavailable
message: Typed Hyperliquid candle provider degradation
retryable: true
request_id: 11111111-1111-4111-8111-111111111111
details:
ok: false
error: request_failed
x-farmdash-request-example:
method: GET
url: https://www.farmdash.one/api/v1/agent/futures/market-conditions?coin=ETH
description: Concrete illustrative request; authentication, payment, and signature headers are omitted unless separately documented.
servers:
- url: https://www.farmdash.one/api
description: Production
components:
schemas:
PaymentRequiredError:
type: object
properties:
ok:
type: boolean
example: false
error:
type: string
example: payment_required
code:
type: string
description: '`free_quota_exhausted` when the shared Scout allowance is spent; otherwise `payment_required`.'
example: free_quota_exhausted
message:
type: string
instruction:
type: string
enum:
- STOP_RETRYING
description: Present when an exhausted free caller must not repeat the same unpaid request.
retry_same_request:
type: boolean
example: false
next_action:
type: string
example: Wait for your quota reset, upgrade your plan, or use x402 paid access.
quota:
type: object
properties:
tier:
type: string
example: scout
remaining:
type: integer
example: 0
reset_at:
type: string
format: date-time
abuse_notice:
type: string
example: Repeated automated requests while quota is exhausted may result in temporary or permanent API blocking.
retryable:
type: boolean
upgrade_url:
type: string
format: uri
direct_upgrade_url:
type: string
format: uri
rate_limit:
type: object
additionalProperties: true
developer_sandbox:
type: object
additionalProperties: true
payment_required:
type: object
properties:
amount:
type: string
example: 0.01 USDC
chain:
type: string
example: Base
destination:
type: string
example: '0xb0Ed0d7bca24BBaD635B977C2efbE06742e33377'
token:
type: string
chainId:
type: string
pattern: ^[0-9]+$
description: Numeric string from X402PaymentPolicy; transaction chain IDs retain their own integer contracts.
example: '8453'
DustStormWarning:
type: object
required:
- kind
- message
properties:
kind:
type: string
const: dust_storm
message:
type: string
TechnicalIndicators:
type: object
properties:
ema8:
type: number
ema34:
type: number
emaCross:
type: string
enum:
- bullish
- bearish
- neutral
rsi:
type: number
macd:
type: number
macdSignal:
type: number
macdHistogram:
type: number
macdCross:
type: string
enum:
- bullish_cross
- bearish_cross
- neutral
adx:
type: number
atr:
type: number
bbUpper:
type: number
bbMiddle:
type: number
bbLower:
type: number
bbWidth:
type: number
volumeRatio:
type: number
zScore:
type: number
Tier:
type: string
enum:
- scout
- pioneer
- syndicate
FundingAnalysis:
type: object
properties:
coin:
type: string
fundingRate:
type: number
annualizedRate:
type: number
predictedRate:
type: number
crossVenueDelta:
type: number
premium:
type: number
openInterest:
type: number
isArbOpportunity:
type: boolean
arbDirection:
type: string
nullable: true
enum:
- long_spot_short_perp
- short_spot_long_perp
- null
ErrorResponse:
type: object
required:
- error
properties:
ok:
type: boolean
example: false
error:
type: string
code:
type: string
message:
type: string
retryable:
type: boolean
request_id:
type: string
details:
type: object
additionalProperties: true
MarketConditionsResponse:
type: object
properties:
ok:
type: boolean
coin:
type: string
indicators:
$ref: '#/components/schemas/TechnicalIndicators'
strategyHint:
type: string
enum:
- momentum_long
- momentum_short
- mean_reversion
- no_trade
timestamp:
type: integer
warnings:
type: array
items:
$ref: '#/components/schemas/DustStormWarning'
ScanFundingResponse:
type: object
properties:
ok:
type: boolean
tier:
$ref: '#/components/schemas/Tier'
arbOpportunities:
type: array
items:
$ref: '#/components/schemas/FundingAnalysis'
highFunding:
type: array
items:
$ref: '#/components/schemas/FundingAnalysis'
totalScanned:
type: integer
upgradeMessage:
type: string
timestamp:
type: integer
warnings:
type: array
items:
$ref: '#/components/schemas/DustStormWarning'
parameters:
X-FarmDash-Client:
name: X-FarmDash-Client
in: header
required: false
description: Optional untrusted analytics client hint; never security evidence.
schema:
type: string
enum:
- mcp
- ts_agent_kit
- python_agent_kit
- public_client
- webapp
X-FarmDash-Installation-ID:
name: X-FarmDash-Installation-ID
in: header
required: false
description: Optional analytics-only locally generated UUIDv4 installation hint. Stored only as a domain-separated salted hash. Not authentication, principal proof, quota, payment, wallet ownership, delegation or transaction authority. Omission changes no functionality.
schema:
type: string
format: uuid
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89aAbB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
X-FarmDash-Client-Version:
name: X-FarmDash-Client-Version
in: header
required: false
description: Optional analytics client version; never security evidence.
schema:
type: string
maxLength: 64
pattern: ^[A-Za-z0-9._+-]{1,64}$
X-FarmDash-Skill-Version:
name: X-FarmDash-Skill-Version
in: header
required: false
description: Optional event-touch analytics skill version, alongside X-ClawHub-Skill; never security evidence.
schema:
type: string
maxLength: 64
pattern: ^[A-Za-z0-9._+-]{1,64}$
X-ClawHub-Skill:
name: X-ClawHub-Skill
in: header
required: false
schema:
type: string
pattern: ^[a-zA-Z0-9-]{1,128}$
example: farmdash-signal-architect
description: 'ClawHub skill attribution. An installed FarmDash skill sends its canonical skill slug (e.g. farmdash-signal-architect) on every FarmDash API request so anonymous Scout usage can be attributed to the skill that drove it. Optional and analytics-only: absence never blocks a request, and malformed values are ignored. This is a skill identity, never a wallet address, API key, or user ID.'
responses:
RateLimitExceeded:
description: Rate limit exceeded
headers:
Retry-After:
schema:
type: integer
description: Seconds until rate limit resets
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: getSwapQuote HTTP 429
description: Illustrative structured error; live code/retryability/request ID are authoritative.
value:
error: rate_limited
ok: false
code: rate_limited
message: Rate limit exceeded
retryable: true
request_id: 11111111-1111-4111-8111-111111111111
details:
ok: false
error: request_failed
BadRequest:
description: Invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
examples:
error:
summary: getAgentStatus HTTP 405
description: Illustrative structured error; live code/retryability/request ID are authoritative.
value:
error: request_failed
ok: false
code: request_failed
message: Invalid parameters
retryable: false
request_id: 11111111-1111-4111-8111-111111111111
details:
ok: false
error: request_failed
PaymentRequired:
description: Free-tier limit exceeded — x402 payment required
headers:
X-Payment-Required:
schema:
type: string
description: Compatibility signal for x402.
example: 'true'
X-Payment-Address:
schema:
type: string
description: Treasury wallet (USDC on Base)
example: '0xb0Ed0d7bca24BBaD635B977C2efbE06742e33377'
X-Payment-Token:
schema:
type: string
description: USDC contract on Base
example: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
X-Payment-Amount:
schema:
type: string
description: Amount in token decimals (10000 = 0.01 USDC)
example: '10000'
X-Payment-Chain-Id:
schema:
type: string
description: 8453 (Base)
example: '8453'
PAYMENT-REQUIRED:
description: Base64-encoded x402 v2 PaymentRequired. Illustrative only; parse the live header.
schema:
type: string
example: eyJ4NDAyVmVyc2lvbiI6MiwiYWNjZXB0cyI6W3sic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwicGF5VG8iOiIweGIwRWQwZDdiY2EyNEJCYUQ2MzVCOTc3QzJlZmJFMDY3NDJlMzMzNzciLCJtYXhUaW1lb3V0U2Vjb25kcyI6MzAwfV0sInBheW1lbnRSZXF1aXJlbWVudHMiOnsic2NoZW1lIjoiZXhhY3QiLCJuZXR3b3JrIjoiZWlwMTU1Ojg0NTMiLCJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwicGF5VG8iOiIweGIwRWQwZDdiY2EyNEJCYUQ2MzVCOTc3QzJlZmJFMDY3NDJlMzMzNzciLCJtYXhUaW1lb3V0U2Vjb25kcyI6MzAwfSwicmVzb3VyY2UiOnsidXJsIjoiaHR0cHM6Ly93d3cuZmFybWRhc2gub25lL2FwaS92MS9hZ2VudC9wcm90b2NvbHMiLCJkZXNjcmlwdGlvbiI6IklsbHVzdHJhdGl2ZSBGYXJtRGFzaCBBUEkgYWNjZXNzIn0sImZhcm1kYXNoIjp7ImV4YW1wbGVfb25seSI6dHJ1ZSwiZ3JhbnRzX3RyYW5zYWN0aW9uX2F1dGhvcml0eSI6ZmFsc2V9fQ==
content:
application/json:
schema:
$ref: '#/components/schemas/PaymentRequiredError'
examples:
x402_payment_required:
summary: Illustrative x402 payment challenge
description: Live 402 and PAYMENT-REQUIRED are authoritative. Payment grants API capacity only, never execution authority.
value:
ok: false
error: payment_required
code: free_quota_exhausted
message: Illustrative x402 challenge; live 402 is authoritative for route-specific price and policy.
instruction: STOP_RETRYING
retry_same_request: false
next_action: Wait for quota reset, upgrade, or attach valid x402 payment evidence and retry once.
quota:
tier: scout
remaining: 0
reset_at: '2026-10-30T12:00:00Z'
retryable: false
payment_required:
amount: 0.01 USDC
chain: Base
destination: '0xb0Ed0d7bca24BBaD635B977C2efbE06742e33377'
token: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
chainId: '8453'
headers:
X-RateLimit-Reset:
description: UTC epoch seconds when the rate limit window resets
schema:
type: string
X-RateLimit-Limit:
description: Maximum requests allowed in the current window
schema:
type: string
X-Request-ID:
description: Unique request trace ID for debugging and support
schema:
type: string
format: uuid
X-RateLimit-Remaining:
description: Remaining requests in the current window
schema:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Pioneer or Syndicate API key
x-refined-from:
- farmdash-openapi.yaml
- farmdash-openapi.yml
x-agent-use-cases:
- id: bounded-autopilot
name: Bounded Autopilot
tier: Syndicate
cadence: Every 5 minutes
purpose: Run an always-on loop inside explicit budgets, allowlists, cooldowns, quote freshness, and local-signing requirements.
primaryTools:
- agent_onboard
- create_session
- configure_autopilot
- autopilot_cycle
- session_heartbeat
stopConditions:
- Budget, allowlist, cooldown, quote freshness, or risk bound is violated.
- Required local EIP-191 or EIP-712 signature is missing.
- Realized performance degrades enough to require analysis_only mode.
- id: airdrop-rotation
name: Airdrop Rotation Desk
tier: Pioneer
cadence: Daily or event-driven
purpose: Watch Trail Heat, snapshots, multiplier changes, wallet health, and costs before entering, waiting, rotating, or exiting.
primaryTools:
- get_trail_heat
- get_historical_trailheat
- get_agent_events
- simulate_points
- get_swap_quote
- simulate_swap_execution
stopConditions:
- Expected point edge is unclear or negative after fees and gas.
- Sybil risk exceeds the configured threshold.
- User constraints do not allow the target chain or protocol.
- id: cross-chain-roi
name: Cross-Chain ROI Gate
tier: Pioneer
cadence: Before any bridge
purpose: Bridge only when net expected edge remains positive after bridge fee, gas, slippage, and execution risk buffer.
primaryTools:
- get_chain_breakdown
- get_wallet_balances
- get_token_prices
- get_swap_quote
- simulate_swap_execution
- optimize_portfolio
stopConditions:
- netEdgeUsd is not positive.
- Quote age exceeds the configured freshness limit.
- Target chain is not allowlisted.
- id: perps-hedge
name: Perps Hedge Co-Pilot
tier: Syndicate
cadence: Before exposure changes
purpose: Evaluate whether a farming position needs a Hyperliquid hedge, with no_trade as a valid outcome.
primaryTools:
- scan_funding_rates
- scan_market_conditions
- get_futures_account
- analyze_futures_strategy
- calculate_position_size
stopConditions:
- Research gate expires.
- Strategy confidence, liquidity, jurisdiction, or guardrails do not support execution.
- Daily loss or drawdown limit is reached.
x-farmdash-capability-truth:
spot.USER_SIGNED:
status: operational
prerequisite: Healthy execution governor, quote provider, RPC and durable receipt store; customer signs and submits.
spot.BOUNDED_AUTONOMOUS:
status: operational
prerequisite: Owner-signed EVM grant, exact simulation/calldata binding, durable budget and customer-local signer authority.
futures.USER_SIGNED:
status: operational
prerequisite: Venue account ownership, local action signature, builder approval, risk/research gates and durable order control.
futures.BOUNDED_AUTONOMOUS:
status: operational
prerequisite: Authenticated owner-bound futures policy, authorized local API-wallet signature, durable nonce/budget/order controls.
solana.USER_SIGNED:
status: operational
prerequisite: Native Jupiter/RPC route, durable preparation and finality store; customer signs and broadcasts.
solana.BOUNDED_AUTONOMOUS:
status: operational
prerequisite: Native owner-signed Solana policy; local key must be an actual required transaction signer. Policy creates no on-chain authority.
ERC4337_SERVER_SUBMISSION:
status: preparation_only
prerequisite: Qualified tenant/account authorization and session-key policy enforcement on public forwarding, configured bundler, durable claims and verified receipt integration.
GENERIC_SERVER_INTENT_EXECUTION:
status: preparation_only
prerequisite: Trusted executable adapter, exact signed-transaction binding and canonical receipt verifier.
MEE:
status: preparation_only
prerequisite: Production coordinator and authoritative source/destination receipt verifier.
ACP:
status: deployment_prerequisite
prerequisite: AcpReadinessService paidWorkflowReady, evaluator/client identities, migrations, funding/finality workers and Base RPC.
x-farmdash-example-contract:
version: 1
examples_are_illustrative: true
live_response_is_authoritative: true
security_note: Never copy example signatures, nonces, hashes, payment destinations, or timestamps into a real transaction.
x402_note: Live HTTP 402 and PAYMENT-REQUIRED are authoritative. Payment grants eligible API capacity only; never wallet signing or execution authority.
x-farmdash-simulation-contract:
invariant: simulation != execution; simulation never grants wallet authority, broadcasts a transaction, or proves settlement
execution_preflight:
endpoint: /v1/simulate
operationId: simulateSwapExecution
side_effects: none
grants_execution_authority: false
broadcasts_transaction: false
proves_settlement: false
binding: wallet + fd_intent_* quote intent + transaction fingerprint + freshness window
research_projection:
operationId: simulatePoints
side_effects: none
grants_execution_authority: false
authoritative_for_execution: false
futures_research:
operationId: analyzeStrategy
simulation_methodology: heuristic_preflight
grants_execution_authority: false
authoritative_for_execution: false
solana_preparation:
operationId: prepareSolanaSwap
simulation: authoritative RPC preflight is embedded before prepared transaction return
grants_execution_authority: false
broadcasts_transaction: false
proves_settlement: false
x-provenance:
method: harvested
publisher: FarmDash.one
source: https://www.farmdash.one/agents/openapi.yaml
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)