{
  "openapi": "3.0.1",
  "info": {
    "title": "Meme Coin Smart Money Intelligence & Trade Signal Engine",
    "description": "Discover and rank skilled meme-coin wallets, analyze their real trading history, track their live moves, and generate explainable smart-money entry, accumulation, distribution and exit signals. Research signals only — not a copy-trading bot.",
    "version": "0.1",
    "x-build-id": "N7mZP2fRJ6Mu3EnMM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tuhin~meme-smart-money-signal-engine/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tuhin-meme-smart-money-signal-engine",
        "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/tuhin~meme-smart-money-signal-engine/runs": {
      "post": {
        "operationId": "runs-sync-tuhin-meme-smart-money-signal-engine",
        "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/tuhin~meme-smart-money-signal-engine/run-sync": {
      "post": {
        "operationId": "run-sync-tuhin-meme-smart-money-signal-engine",
        "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": [
              "wallet_analysis",
              "discovery",
              "live_tracker",
              "consensus",
              "entry_signals",
              "exit_signals",
              "backtest",
              "full"
            ],
            "type": "string",
            "description": "Wallet Analysis (supplied wallets), Discovery (auto-find skilled wallets), Live Tracker, Consensus Scanner, Entry Signals, Exit Signals, Backtest, or Full Intelligence.",
            "default": "wallet_analysis"
          },
          "heliusApiKey": {
            "title": "Helius API key",
            "type": "string",
            "description": "Your free Helius API key (helius.dev → API Keys). Required — this actor reads Solana on-chain trade history via Helius."
          },
          "walletAddresses": {
            "title": "Wallet addresses",
            "type": "array",
            "description": "Solana wallet addresses to analyze / track (Wallet Analysis & Live Tracker modes).",
            "items": {
              "type": "string"
            }
          },
          "chains": {
            "title": "Chains",
            "type": "array",
            "description": "Chains to cover. v1 supports \"solana\" (where most meme activity is); more chains are modular for later.",
            "default": [
              "solana"
            ],
            "items": {
              "type": "string"
            }
          },
          "discoverFromTrending": {
            "title": "Discover wallets from trending tokens",
            "type": "boolean",
            "description": "In Discovery mode, find candidate wallets from the recent traders of currently-trending meme tokens (DexScreener), then rank them.",
            "default": true
          },
          "lookbackDays": {
            "title": "Lookback (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "How far back to analyze wallet trade history.",
            "default": 30
          },
          "maxTxPerWallet": {
            "title": "Max transactions per wallet",
            "minimum": 20,
            "maximum": 2000,
            "type": "integer",
            "description": "Cap on parsed swaps per wallet (cost/perf).",
            "default": 300
          },
          "maxWallets": {
            "title": "Max wallets",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum wallets to analyze/return.",
            "default": 40
          },
          "minSmartMoneyScore": {
            "title": "Min Smart Money Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only keep wallets at/above this Smart Money Score (0-100).",
            "default": 0
          },
          "minTrades": {
            "title": "Min historical trades",
            "minimum": 1,
            "type": "integer",
            "description": "Filter out wallets with too few realized trades to judge.",
            "default": 5
          },
          "minWinRate": {
            "title": "Min win rate (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only keep wallets with at least this win rate.",
            "default": 0
          },
          "minRealizedPnlSol": {
            "title": "Min realized P&L (SOL)",
            "type": "integer",
            "description": "Minimum realized profit in SOL to keep a wallet.",
            "default": 0
          },
          "excludeBotsAndArb": {
            "title": "Exclude bots / arbitrage / MM wallets",
            "type": "boolean",
            "description": "Filter out likely bot, arbitrage, liquidity-management and exchange wallets that distort rankings.",
            "default": true
          },
          "backtest": {
            "title": "Backtest assumptions",
            "type": "object",
            "description": "Backtest mode only: { entryDelaySec, exitDelaySec, positionSizeSol, slippagePct, feePerTradeSol }."
          },
          "previousDatasetId": {
            "title": "Previous dataset ID",
            "type": "string",
            "description": "Prior run's wallet dataset — enables live trade detection and strategy-change flags across runs."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}