{
  "openapi": "3.0.1",
  "info": {
    "title": "Hyperliquid Trader Profiler: PnL, Win Rate, Drawdown & Score",
    "description": "Profile any Hyperliquid wallet or the leaderboard's top N: 30-day and all-time PnL, time-weighted return, max drawdown, round-trip win rate, profit factor, funding, open positions with liquidation distance and a transparent smart-money score. Public info API, no login. Errors are free.",
    "version": "1.0",
    "x-build-id": "11WsBtMZdwo3W8FhC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/metallic_pastry~hyperliquid-trader-profiler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-metallic_pastry-hyperliquid-trader-profiler",
        "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/metallic_pastry~hyperliquid-trader-profiler/runs": {
      "post": {
        "operationId": "runs-sync-metallic_pastry-hyperliquid-trader-profiler",
        "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/metallic_pastry~hyperliquid-trader-profiler/run-sync": {
      "post": {
        "operationId": "run-sync-metallic_pastry-hyperliquid-trader-profiler",
        "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": {
          "traders": {
            "title": "Traders",
            "type": "array",
            "description": "Hyperliquid addresses (0x…) or address URLs from app.hyperliquid.xyz/explorer, hypurrscan.io or hyperdash.info. Duplicates are removed. Invalid entries, unknown addresses and API wallets return a free item.",
            "items": {
              "type": "string"
            }
          },
          "leaderboardTopN": {
            "title": "Also profile the leaderboard's top N",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Pull the top N wallets from Hyperliquid's public leaderboard and profile them too. 0 = off. Wallets with no trading volume in the chosen window are skipped. Combine with window, sort and minimum account value below.",
            "default": 0
          },
          "leaderboardWindow": {
            "title": "Leaderboard window",
            "enum": [
              "day",
              "week",
              "month",
              "allTime"
            ],
            "type": "string",
            "description": "Which leaderboard window to rank by.",
            "default": "month"
          },
          "leaderboardSortBy": {
            "title": "Leaderboard sort",
            "enum": [
              "pnl",
              "roi",
              "volume"
            ],
            "type": "string",
            "description": "Rank leaderboard wallets by PnL, ROI or traded volume within the window.",
            "default": "pnl"
          },
          "leaderboardMinAccountValueUsd": {
            "title": "Leaderboard minimum account value (USD)",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Skip leaderboard wallets with less equity than this. Keeps ROI rankings from being dominated by tiny accounts.",
            "default": 10000
          },
          "maxTraders": {
            "title": "Max traders",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on traders profiled in one run (explicit plus leaderboard). Extra traders are skipped and not charged.",
            "default": 100
          },
          "lookbackDays": {
            "title": "Trade lookback",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How far back fills and funding are read for trade statistics. Portfolio PnL, return and drawdown always cover 24 h, 7 d, 30 d and all time.",
            "default": 30
          },
          "maxFills": {
            "title": "Max fills per trader",
            "minimum": 100,
            "maximum": 10000,
            "type": "integer",
            "description": "Fills read per trader for round trips, win rate and per-coin stats. Up to 2,000 costs one API call; more pages back further for very active wallets (Hyperliquid serves at most the latest 10,000).",
            "default": 2000
          },
          "includeFunding": {
            "title": "Include funding payments",
            "type": "boolean",
            "description": "Sum funding paid and received in the lookback (up to 2,000 payments), with the top coins.",
            "default": true
          },
          "openPositionsInOutput": {
            "title": "Open positions in output",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Largest open perp positions listed per trader (all are counted in the account summary).",
            "default": 10
          },
          "coinsInOutput": {
            "title": "Coins in output",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Per-coin breakdown rows per trader, by traded volume.",
            "default": 10
          },
          "topTradesInOutput": {
            "title": "Top wins and losses",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Best and worst closed round trips listed per trader.",
            "default": 5
          },
          "minClosedTrips": {
            "title": "Smart money: minimum closed round trips",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "A trader needs at least this many closed round trips in the sample to be marked smart money.",
            "default": 20
          },
          "minMonthReturn": {
            "title": "Smart money: minimum 30-day return",
            "minimum": -1,
            "maximum": 100,
            "type": "number",
            "description": "Minimum time-weighted 30-day return as a fraction (0.05 = 5%).",
            "default": 0.05
          },
          "minAllTimePnlUsd": {
            "title": "Smart money: minimum all-time PnL (USD)",
            "minimum": -1000000000000,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Minimum all-time PnL on Hyperliquid.",
            "default": 10000
          },
          "minAccountValueUsd": {
            "title": "Smart money: minimum account value (USD)",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "number",
            "description": "Minimum current equity (perp plus spot).",
            "default": 10000
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Traders profiled in parallel. Requests are paced to stay inside Hyperliquid's public rate limit either way, so higher values rarely help.",
            "default": 3
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}