{
  "openapi": "3.0.1",
  "info": {
    "title": "Hyperliquid Funding Rate API + Tokenized Stock Spreads",
    "description": "Hyperliquid perpetual funding rates (APR, open interest, 24h volume) and Base tokenized stock DEX prices vs Chainlink NAV spreads as JSON. No exchange API key. $0.002 per market row, $0.01 per stock.",
    "version": "1.0",
    "x-build-id": "NGYGE9fgt3FyINzHl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cipherhouse~hyperliquid-funding-and-stock-spread/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cipherhouse-hyperliquid-funding-and-stock-spread",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/cipherhouse~hyperliquid-funding-and-stock-spread/runs": {
      "post": {
        "operationId": "runs-sync-cipherhouse-hyperliquid-funding-and-stock-spread",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/cipherhouse~hyperliquid-funding-and-stock-spread/run-sync": {
      "post": {
        "operationId": "run-sync-cipherhouse-hyperliquid-funding-and-stock-spread",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Scan Mode",
            "enum": [
              "both",
              "hyperliquid",
              "base_stocks"
            ],
            "type": "string",
            "description": "Choose whether to fetch both Hyperliquid perps + Base B20 tokenized stocks, or only one feed.",
            "default": "both"
          },
          "hyperliquidLimit": {
            "title": "Max Hyperliquid Markets",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum Hyperliquid perp markets to return, ranked by absolute annualized funding rate descending.",
            "default": 25
          },
          "minAbsFundingAprPct": {
            "title": "Min |Funding APR %| (Hyperliquid)",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Filter Hyperliquid markets to only those with |annualized funding APR %| >= this value (0 = all).",
            "default": 0
          },
          "minVolume24hUsd": {
            "title": "Min 24h Volume USD (Hyperliquid)",
            "minimum": 0,
            "type": "number",
            "description": "Exclude illiquid Hyperliquid perps with 24h notional volume below this USD threshold.",
            "default": 0
          },
          "hyperliquidSymbols": {
            "title": "Filter Hyperliquid Symbols (Optional)",
            "type": "array",
            "description": "Optional list of Hyperliquid tickers (e.g., [\"BTC\", \"ETH\", \"SOL\", \"HYPE\"]). Leave empty for top markets.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "stockSymbol": {
            "title": "Filter Base B20 Stock Symbol (Optional)",
            "type": "string",
            "description": "Optional Base Coinbase B20 symbol or underlying ticker (e.g., \"NVDAc\", \"AAPL\", \"SPCXc\"). Leave blank for all active NAV-backed B20 stocks.",
            "default": ""
          },
          "stockLimit": {
            "title": "Max Base B20 Stocks",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of Base Coinbase B20 tokenized stocks to return.",
            "default": 25
          },
          "tradeSizeUsd": {
            "title": "PoolGuard Trade Size (USD)",
            "minimum": 100,
            "maximum": 5000000,
            "type": "number",
            "description": "Simulated swap notional in USD used to model Base DEX slippage and safe split-order chunks.",
            "default": 10000
          },
          "maxSlippageBps": {
            "title": "PoolGuard Max Slippage Tolerance (bps)",
            "minimum": 5,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum acceptable constant-product slippage in basis points (50 = 0.50%).",
            "default": 50
          },
          "onlyAlerts": {
            "title": "Only Return Stock Rows With Active Alerts",
            "type": "boolean",
            "description": "When true, only push Base B20 stock rows that have at least one active depeg, slippage-trap, multiplier, or cross-pool dislocation alert.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}