{
  "openapi": "3.0.1",
  "info": {
    "title": "Crypto Funding Rates, Open Interest & Liquidations Scraper",
    "description": "Perpetual futures data from OKX, Gate, Bitget, MEXC, Hyperliquid and Deribit in one table: funding rates (current, 8 h, yearly, history), open interest, volume, mark/index price, liquidations and Deribit options (put/call, ATM IV, max pain). No API key.",
    "version": "0.1",
    "x-build-id": "caSiB6me0QetKh6c2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~crypto-derivatives-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-crypto-derivatives-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/yugenox~crypto-derivatives-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-crypto-derivatives-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/yugenox~crypto-derivatives-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-crypto-derivatives-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": {
          "symbols": {
            "title": "🪙 Coins",
            "type": "array",
            "description": "Coins to collect, e.g. BTC, ETH, SOL, PEPE. Market names work too (BTCUSDT, BTC-USDT-SWAP, BTC_USDT, 1000PEPE, kPEPE) — they are matched by coin, so every exchange's markets for that coin come back. Leave empty for every perpetual market (sorted by open interest).",
            "items": {
              "type": "string"
            }
          },
          "include": {
            "title": "Data to include",
            "type": "array",
            "description": "Perpetual markets = one snapshot row per market: mark/index/last price, current funding rate (+ 8 h and yearly), next funding time, open interest and 24 h volume in coins and USD. Funding-rate history = one row per past funding payment. Liquidations = recent liquidation orders (OKX and Gate publish them). Options by expiry = Deribit open interest, put/call ratio, ATM IV and max pain per expiry. Option contracts = every Deribit option with mark IV.",
            "items": {
              "type": "string",
              "enum": [
                "perpetuals",
                "fundingHistory",
                "liquidations",
                "options",
                "optionContracts"
              ],
              "enumTitles": [
                "Perpetual markets (funding rate, open interest, volume)",
                "Funding-rate history",
                "Liquidations (OKX, Gate)",
                "Options by expiry (Deribit)",
                "Option contracts (Deribit)"
              ]
            },
            "default": [
              "perpetuals"
            ]
          },
          "exchanges": {
            "title": "Exchanges",
            "type": "array",
            "description": "Exchanges to read. All six by default. Options come from Deribit; liquidations from OKX and Gate.",
            "items": {
              "type": "string",
              "enum": [
                "okx",
                "gate",
                "bitget",
                "mexc",
                "hyperliquid",
                "deribit"
              ],
              "enumTitles": [
                "OKX",
                "Gate",
                "Bitget",
                "MEXC",
                "Hyperliquid",
                "Deribit"
              ]
            },
            "default": [
              "okx",
              "gate",
              "bitget",
              "mexc",
              "hyperliquid",
              "deribit"
            ]
          },
          "fundingHistoryDays": {
            "title": "Funding history: days back",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "For \"Funding-rate history\": how many days of past funding payments to collect per market (1–90).",
            "default": 7
          },
          "maxMarkets": {
            "title": "Markets for history and liquidations",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Funding history and liquidations are looked up market by market. This caps how many markets (the matching ones with the largest open interest first). Each market that turns out to have no records in the window counts as one market lookup.",
            "default": 50
          },
          "marginTypes": {
            "title": "Margin type",
            "type": "array",
            "description": "Linear = stablecoin-margined (USDT/USDC) contracts, inverse = coin-margined contracts. Both by default.",
            "items": {
              "type": "string",
              "enum": [
                "linear",
                "inverse"
              ],
              "enumTitles": [
                "Linear (USDT / USDC margined)",
                "Inverse (coin margined)"
              ]
            },
            "default": [
              "linear",
              "inverse"
            ]
          },
          "minOpenInterestUsd": {
            "title": "Minimum open interest (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip markets whose open interest is below this many US dollars (0 = keep all). Handy with empty Coins to get only the liquid markets.",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Maximum rows for the whole run (all data types together). 0 = no limit.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. An exchange that refuses this run's connections is skipped for the run and nothing is charged for it.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Run as an account without residential proxies",
            "type": "boolean",
            "description": "Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group. This actor never uses residential proxies.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}