{
  "openapi": "3.0.1",
  "info": {
    "title": "Hyperliquid Vault Analyzer",
    "description": "Screen and rank Hyperliquid vaults by TVL, PnL, age, history coverage, Sharpe, Sortino, drawdown, and a transparent 100-point score.",
    "version": "0.3",
    "x-build-id": "xHu8oC1D6n8xHSb7y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bb-tradetec~hyperliquid-vault-analyzer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bb-tradetec-hyperliquid-vault-analyzer",
        "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/bb-tradetec~hyperliquid-vault-analyzer/runs": {
      "post": {
        "operationId": "runs-sync-bb-tradetec-hyperliquid-vault-analyzer",
        "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/bb-tradetec~hyperliquid-vault-analyzer/run-sync": {
      "post": {
        "operationId": "run-sync-bb-tradetec-hyperliquid-vault-analyzer",
        "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": {
          "vaultAddresses": {
            "title": "Vault addresses (optional)",
            "maxItems": 1000,
            "uniqueItems": true,
            "type": "array",
            "description": "Optional address filter. Leave empty to query the complete prepared universe.",
            "items": {
              "type": "string",
              "pattern": "^\\s*0x[a-fA-F0-9]{40}\\s*$"
            },
            "default": []
          },
          "metricWindow": {
            "title": "Metric window",
            "enum": [
              "7d",
              "30d",
              "90d",
              "180d",
              "365d"
            ],
            "type": "string",
            "description": "Daily return window used for ratios, score, ranking, and output.",
            "default": "30d"
          },
          "minimumTvl": {
            "title": "Minimum current TVL (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Exclude vaults below this current public TVL value.",
            "default": 0
          },
          "minimumAgeDays": {
            "title": "Minimum vault age (days)",
            "minimum": 0,
            "type": "integer",
            "description": "Exclude vaults younger than this many calendar days. A positive value also excludes vaults with unknown age.",
            "default": 0
          },
          "minimumReturnCount": {
            "title": "Minimum valid daily returns",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Require at least this many valid daily returns inside the selected metric window.",
            "default": 0
          },
          "minimumCoverageRatio": {
            "title": "Minimum history coverage",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Require valid-return coverage from 0 to 1 inside the selected metric window; 0.8 means 80%.",
            "default": 0
          },
          "maximumDrawdown": {
            "title": "Maximum accepted drawdown",
            "minimum": -1,
            "maximum": 0,
            "type": "number",
            "description": "Optional negative fractional threshold. For example, -0.25 keeps vaults with a calculated maximum drawdown no worse than -25% and excludes missing values."
          },
          "minimumScore": {
            "title": "Minimum overall score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Optional 0-100 score threshold. Setting it excludes vaults whose selected-window score is unavailable."
          },
          "minimumSharpeRatio": {
            "title": "Minimum Sharpe ratio",
            "type": "number",
            "description": "Optional selected-window Sharpe threshold. Setting it excludes vaults whose Sharpe ratio is unavailable."
          },
          "minimumSortinoRatio": {
            "title": "Minimum Sortino ratio",
            "type": "number",
            "description": "Optional selected-window Sortino threshold. Setting it excludes vaults whose Sortino ratio is unavailable."
          },
          "includeClosed": {
            "title": "Include closed vaults",
            "type": "boolean",
            "description": "Closed vaults are excluded by default.",
            "default": false
          },
          "eligibleOnly": {
            "title": "Only scored vaults",
            "type": "boolean",
            "description": "Return only vaults with at least 30 valid daily returns and a calculable score.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "score",
              "tvl",
              "pnl",
              "windowPnl",
              "sharpe",
              "sortino",
              "age",
              "apr",
              "name"
            ],
            "type": "string",
            "description": "Field used to order matching vaults. PnL means the latest cumulative all-time PnL; window PnL is its change over the selected metric window. Unavailable values are placed last.",
            "default": "tvl"
          },
          "sortDirection": {
            "title": "Sort direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Order available sort values from highest to lowest or lowest to highest.",
            "default": "desc"
          },
          "limit": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of matching vault rows written to the dataset.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}