FarmDash.one · Schema

FuturesPolicy

Owner-signed FarmDash policy, separate from Hyperliquid delegation. USD limits are exact positive decimal strings. maxRiskPerTrade is conservative full-notional admission USD, not a realized loss guarantee. Unix-second validity. Policy order types map actual route semantics: IOC/market_ioc -> market, Gtc/Alo -> limit.

DeFiDeFAIAI AgentsMCPOpenAPIx402BlockchainCryptocurrencyairdrop trackingDeveloper ToolsAgent ReadinessMachine PaymentsHyperliquidWallet Intelligencezero custody

Properties

Name Type Description
ownerAddress string
agentAddress string
apiWalletAddress string
accountAddress string
vaultAddress stringnull
network string
sessionId string
allowedMarkets array
allowedActions array
allowedOrderTypes array
allowedDirections array
maxOrderNotionalUsd string Strictly positive USD limit; zero is invalid
maxAggregateExposureUsd string Strictly positive USD limit; zero is invalid
maxSessionNewRiskNotionalUsd string Strictly positive USD limit; zero is invalid
maxRiskPerTrade string Strictly positive USD limit; zero is invalid
maxSessionLossUsd string Strictly positive USD limit; zero is invalid
maxDailyLossUsd string Strictly positive USD limit; zero is invalid
maxLeverage integer
validAfter integer Unix seconds
validUntil integer Unix seconds, greater than validAfter
nonce string Single-use owner uint256 decimal nonce
policyVersion integer
View JSON Schema on GitHub

JSON Schema

farmdash-futures-policy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/farmdash/json-schema/farmdash-futures-policy-schema.json",
  "title": "FuturesPolicy",
  "description": "Owner-signed FarmDash policy, separate from Hyperliquid delegation. USD limits are exact positive decimal strings. maxRiskPerTrade is conservative full-notional admission USD, not a realized loss guarantee. Unix-second validity. Policy order types map actual route semantics: IOC/market_ioc -> market, Gtc/Alo -> limit.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/farmdash-openapi.yml#/components/schemas/FuturesPolicy",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "ownerAddress",
    "agentAddress",
    "apiWalletAddress",
    "accountAddress",
    "vaultAddress",
    "network",
    "sessionId",
    "allowedMarkets",
    "allowedActions",
    "allowedOrderTypes",
    "allowedDirections",
    "maxOrderNotionalUsd",
    "maxAggregateExposureUsd",
    "maxSessionNewRiskNotionalUsd",
    "maxLeverage",
    "maxRiskPerTrade",
    "maxSessionLossUsd",
    "maxDailyLossUsd",
    "validAfter",
    "validUntil",
    "nonce",
    "policyVersion"
  ],
  "properties": {
    "ownerAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "agentAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "apiWalletAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "accountAddress": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "vaultAddress": {
      "type": [
        "string",
        "null"
      ],
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "network": {
      "type": "string",
      "enum": [
        "mainnet",
        "testnet"
      ]
    },
    "sessionId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "allowedMarkets": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "pattern": "^[A-Z0-9]{1,16}$"
      }
    },
    "allowedActions": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "futures.open",
          "futures.reduce",
          "futures.close",
          "futures.cancel",
          "futures.protective_order"
        ]
      }
    },
    "allowedOrderTypes": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "market",
          "limit",
          "stop_loss",
          "take_profit",
          "cancel"
        ]
      }
    },
    "allowedDirections": {
      "type": "array",
      "minItems": 1,
      "uniqueItems": true,
      "items": {
        "type": "string",
        "enum": [
          "long",
          "short"
        ]
      }
    },
    "maxOrderNotionalUsd": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxAggregateExposureUsd": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxSessionNewRiskNotionalUsd": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxRiskPerTrade": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxSessionLossUsd": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxDailyLossUsd": {
      "type": "string",
      "pattern": "^(0|[1-9]\\d{0,17})(\\.\\d{1,8})?$",
      "description": "Strictly positive USD limit; zero is invalid"
    },
    "maxLeverage": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "validAfter": {
      "type": "integer",
      "minimum": 0,
      "description": "Unix seconds"
    },
    "validUntil": {
      "type": "integer",
      "minimum": 1,
      "description": "Unix seconds, greater than validAfter"
    },
    "nonce": {
      "type": "string",
      "pattern": "^[1-9]\\d{0,77}$",
      "description": "Single-use owner uint256 decimal nonce"
    },
    "policyVersion": {
      "type": "integer",
      "enum": [
        1
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/farmdash-futures-policy"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.