{
  "openapi": "3.0.1",
  "info": {
    "title": "AlphaSignal — Crypto Futures Screener",
    "description": "Advanced multi-timeframe screener for crypto perpetual futures. Generates LONG/SHORT signals with 7-signal confluence scoring, ATR-based TP/SL, support/resistance levels and market structure. No API keys needed.",
    "version": "0.0",
    "x-build-id": "UhFxGTS1di28Zd56x"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ayrtondavoli97~Kucoin-Scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ayrtondavoli97-Kucoin-Scraper",
        "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/ayrtondavoli97~Kucoin-Scraper/runs": {
      "post": {
        "operationId": "runs-sync-ayrtondavoli97-Kucoin-Scraper",
        "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/ayrtondavoli97~Kucoin-Scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ayrtondavoli97-Kucoin-Scraper",
        "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": {
          "symbolFilter": {
            "title": "Symbol whitelist",
            "type": "array",
            "description": "Optional. If provided, only these KuCoin futures symbols are analyzed (e.g. BTCUSDTM, ETHUSDTM).",
            "items": {
              "type": "string"
            }
          },
          "excludeSymbols": {
            "title": "Symbol blacklist",
            "type": "array",
            "description": "Symbols to skip entirely.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "timeframe": {
            "title": "Primary timeframe",
            "enum": [
              "1min",
              "5min",
              "15min",
              "30min",
              "1hour",
              "4hour",
              "1day"
            ],
            "type": "string",
            "description": "Candle granularity for the main analysis.",
            "default": "1hour"
          },
          "enableMtf": {
            "title": "Enable multi-timeframe analysis",
            "type": "boolean",
            "description": "Fetch a higher timeframe and check directional alignment. Adds mtf_aligned and htf_direction fields.",
            "default": true
          },
          "htfTimeframe": {
            "title": "Higher timeframe (MTF)",
            "enum": [
              "15min",
              "30min",
              "1hour",
              "4hour",
              "1day"
            ],
            "type": "string",
            "description": "The higher timeframe used for confluence confirmation.",
            "default": "4hour"
          },
          "bars": {
            "title": "Candle count",
            "minimum": 80,
            "maximum": 500,
            "type": "integer",
            "description": "Number of historical candles to download. Minimum 80, recommended 220+.",
            "default": 220
          },
          "maxSymbols": {
            "title": "Max symbols to analyze",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Top N symbols by 24h volume.",
            "default": 120
          },
          "min24hVolumeUsd": {
            "title": "Min 24h volume (USD)",
            "type": "integer",
            "description": "Filter out illiquid pairs below this threshold.",
            "default": 1000000
          },
          "directionFilter": {
            "title": "Direction filter",
            "enum": [
              "",
              "LONG",
              "SHORT"
            ],
            "type": "string",
            "description": "Return only LONG signals, only SHORT signals, or all (leave blank).",
            "default": ""
          },
          "tpAtrMult": {
            "title": "Take profit ATR multiplier",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Take profit = price +/- (ATR x this value). Default 2.5.",
            "default": 2.5
          },
          "slAtrMult": {
            "title": "Stop loss ATR multiplier",
            "minimum": 0.3,
            "maximum": 5,
            "type": "number",
            "description": "Stop loss = price +/- (ATR x this value). Default 1.5.",
            "default": 1.5
          },
          "includeOnlyTradeable": {
            "title": "Tradeable setups only",
            "type": "boolean",
            "description": "If enabled, only return symbols that pass all tradeability checks.",
            "default": false
          },
          "includeOnlyMtfAligned": {
            "title": "MTF-aligned setups only",
            "type": "boolean",
            "description": "If enabled, only return symbols where primary and higher timeframe directions agree.",
            "default": false
          },
          "includeRawCandles": {
            "title": "Include last 5 raw candles",
            "type": "boolean",
            "description": "Attach the last 5 OHLCV candles to each result.",
            "default": false
          },
          "datasetSortBy": {
            "title": "Sort dataset by",
            "enum": [
              "trade_quality_score",
              "confidence",
              "confluence_score",
              "liquidity_score",
              "symbol"
            ],
            "type": "string",
            "description": "Field used to rank the final output.",
            "default": "trade_quality_score"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}