{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan Emerging Stock Board Quotes & Pre-IPO Register — 興櫃",
    "description": "Every stock on Taiwan's Emerging Stock Board — the pre-IPO tier every TWSE and TPEx listing must trade on first. Daily quotes and turnover, per-stock history back to 2003, the MOPS company register, EPS and capital rankings, recommending dealers and each company's live listing-application progress.",
    "version": "0.1",
    "x-build-id": "FyGcSb8euWpheNSCQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/chamarix~taiwan-emerging-stock-quotes/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-chamarix-taiwan-emerging-stock-quotes",
        "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/chamarix~taiwan-emerging-stock-quotes/runs": {
      "post": {
        "operationId": "runs-sync-chamarix-taiwan-emerging-stock-quotes",
        "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/chamarix~taiwan-emerging-stock-quotes/run-sync": {
      "post": {
        "operationId": "run-sync-chamarix-taiwan-emerging-stock-quotes",
        "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": {
          "recordTypes": {
            "title": "What to fetch",
            "type": "array",
            "description": "QUOTE is today's session for every registered emerging stock, enriched with the company register and the listing-application progress. HISTORY walks each selected stock month by month, back to 2003-09. MARKET_SUMMARY is one row for the whole board.",
            "items": {
              "type": "string",
              "enum": [
                "QUOTE",
                "HISTORY",
                "MARKET_SUMMARY"
              ],
              "enumTitles": [
                "QUOTE — latest session, every stock",
                "HISTORY — past sessions, per stock",
                "MARKET_SUMMARY — the board in one row"
              ]
            },
            "default": [
              "QUOTE",
              "MARKET_SUMMARY"
            ]
          },
          "stockCodes": {
            "title": "Security codes filter",
            "type": "array",
            "description": "Optional list of emerging-board codes (e.g., ['6826', '1260']). QUOTE arrives as one whole-board request either way, so filtering it is free. For HISTORY this decides how many requests are made: one per stock per month, so leaving it empty and asking for a year of history is roughly 4,300 requests.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startMonth": {
            "title": "History start month (YYYY-MM)",
            "pattern": "^(|\\d{4}[-/]?\\d{2})$",
            "type": "string",
            "description": "First month of HISTORY to fetch, e.g. 2026-01. Ignored unless HISTORY is selected. The exchange's own form only lets you pick 2007-01 onwards, but the report itself answers back to 2003-09 — the first month any emerging stock has on file. Leave empty for the current month.",
            "default": ""
          },
          "endMonth": {
            "title": "History end month (YYYY-MM)",
            "pattern": "^(|\\d{4}[-/]?\\d{2})$",
            "type": "string",
            "description": "Last month of HISTORY, inclusive. Leave empty to fetch only the start month.",
            "default": ""
          },
          "ipoApplicantsOnly": {
            "title": "Only stocks with a listing application in progress",
            "type": "boolean",
            "description": "Keep only the stocks the exchange marks with a listing-application status code — the companies actually queueing to move up to TWSE or TPEx. On a typical day that is around 30 of 360.",
            "default": false
          },
          "tradedOnly": {
            "title": "Only stocks that traded",
            "type": "boolean",
            "description": "Drop the stocks with no trade in the session. The emerging board is thin — around a dozen stocks a day go untraded, and they publish no price at all, only the previous day's average.",
            "default": false
          },
          "includeCompanyProfile": {
            "title": "Add the MOPS company register",
            "type": "boolean",
            "description": "Merge in mopsfin_t187ap03_R: full company name, English symbol and address, tax ID, chairman, spokesman, incorporation date, board registration date, par value, issued shares and paid-in capital. Costs one request and covers every quoted stock.",
            "default": true
          },
          "includeRecommendingDealers": {
            "title": "Add the recommending securities dealers",
            "type": "boolean",
            "description": "Every emerging stock must keep recommending dealers on file — they are the board's market makers, and which ones a company uses is a real signal. Adds a nested list per stock and costs one request.",
            "default": false
          },
          "crossCheck": {
            "title": "Cross-check history against the snapshot feed",
            "type": "boolean",
            "description": "Where a fetched history month overlaps today's session, compare shares, average, high and low against the open-data snapshot — an entirely separate publication — and log whether every value reproduces. Never changes the output.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}