{
  "openapi": "3.0.1",
  "info": {
    "title": "fomo Traders Data: Leaderboard, Trades, Theses",
    "description": "Leaderboard, hot coins, live trades, profiles and theses of traders with a public fomo profile. Reads copy.top's public API. Read-only, no login, every row links to copy.top. Independent, not affiliated with fomo.",
    "version": "0.1",
    "x-build-id": "xWRiZArTzG5l8J6kF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/copytop~fomo-traders-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-copytop-fomo-traders-data",
        "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/copytop~fomo-traders-data/runs": {
      "post": {
        "operationId": "runs-sync-copytop-fomo-traders-data",
        "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/copytop~fomo-traders-data/run-sync": {
      "post": {
        "operationId": "run-sync-copytop-fomo-traders-data",
        "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": "Mode",
            "enum": [
              "leaderboard",
              "hot_coins",
              "live_trades",
              "trader",
              "theses"
            ],
            "type": "string",
            "description": "What to fetch. leaderboard: top traders with a public fomo profile. hot_coins: coins top traders are buying now. live_trades: the latest trades. trader: full profiles for a list of handles. theses: the notes traders post about a coin.",
            "default": "leaderboard"
          },
          "window": {
            "title": "Window",
            "enum": [
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Period the ranking covers.",
            "default": "7d"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "total",
              "realized",
              "roi",
              "winrate",
              "copiers"
            ],
            "type": "string",
            "description": "total: realized plus unrealized PnL. realized: closed positions only. roi: PnL divided by what the trader put in. winrate: share of closed positions in profit. copiers: number of people copying the trader on copy.top.",
            "default": "total"
          },
          "limit": {
            "title": "Number of traders",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "From 1 to 20. 20 is the maximum the copy.top API returns per call.",
            "default": 20
          },
          "fairPlay": {
            "title": "Fair play filter",
            "enum": [
              "any",
              "clean",
              "clean_or_watch"
            ],
            "type": "string",
            "description": "copy.top gives each trader a fair play verdict from their own trades. any: no filter. clean: only traders marked clean. clean_or_watch: clean or watch.",
            "default": "any"
          },
          "hotWindow": {
            "title": "Window",
            "enum": [
              "1h",
              "24h"
            ],
            "type": "string",
            "description": "Look at buys from the last hour or the last 24 hours.",
            "default": "24h"
          },
          "maxMcapUsd": {
            "title": "Max market cap (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only coins under this market cap. Leave empty for no cap."
          },
          "side": {
            "title": "Side",
            "enum": [
              "any",
              "buy",
              "sell"
            ],
            "type": "string",
            "description": "Buys, sells or both.",
            "default": "any"
          },
          "minUsd": {
            "title": "Min trade size (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only trades of at least this size. Leave empty for all trades."
          },
          "platformOnly": {
            "title": "fomo traders only",
            "type": "boolean",
            "description": "On: keep only trades made by fomo traders. Off: keep every trade in the feed, pumpfun accounts included (handles that start with pf_).",
            "default": true
          },
          "handles": {
            "title": "Trader handles",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Handles as shown on copy.top or in the leaderboard rows, for example rasmr. Up to 50 per run. One API call per handle, spaced out to respect the rate limit.",
            "items": {
              "type": "string"
            }
          },
          "thesesSort": {
            "title": "Sort",
            "enum": [
              "new",
              "popular"
            ],
            "type": "string",
            "description": "new: latest first. popular: most popular first.",
            "default": "new"
          },
          "hours": {
            "title": "Hours to look back",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "From 1 to 24.",
            "default": 24
          },
          "apiKey": {
            "title": "copy.top API key",
            "type": "string",
            "description": "Optional. Free key from copy.top/account#api, raises the limits. The actor works with this field empty."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}