{
  "openapi": "3.0.1",
  "info": {
    "title": "China A-Share Insider Trades Tracker — 高管增减持",
    "description": "Director / supervisor / senior officer share-holding changes (董监高持股变动) for Shanghai (SSE) + Shenzhen (SZSE) A-share listed companies. CSRC executive disclosures: name, position, transaction date, shares, CNY price, pre/post holding, filing URL. Bloomberg China terminal alternative.",
    "version": "0.0",
    "x-build-id": "2EW7Agdh0UuZtH6nR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexgendata~china-ashare-insider-trades/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexgendata-china-ashare-insider-trades",
        "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/nexgendata~china-ashare-insider-trades/runs": {
      "post": {
        "operationId": "runs-sync-nexgendata-china-ashare-insider-trades",
        "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/nexgendata~china-ashare-insider-trades/run-sync": {
      "post": {
        "operationId": "run-sync-nexgendata-china-ashare-insider-trades",
        "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": {
          "stockCodes": {
            "title": "Stock code(s)",
            "type": "array",
            "description": "List of 6-digit A-share codes to query. Shanghai (SSE) codes start 600/601/603/605 (Main Board) or 688 (STAR Market / 科创板). Shenzhen (SZSE) codes start 000/001 (Main Board), 002/003 (SME Board), or 300/301 (ChiNext / 创业板). Beijing (BSE / 北交所) codes start 8. Accepts suffix-tagged inputs too (e.g. '600519.SH', '000001.SZ', 'sh600036'). Leave EMPTY to scan the full A-share market over the requested date window — useful for cross-issuer aggregate insider-flow surveillance.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "dateRange": {
            "title": "Date range preset",
            "enum": [
              "last_7d",
              "last_30d",
              "last_90d",
              "last_180d",
              "last_365d",
              "ytd",
              "all",
              "custom"
            ],
            "type": "string",
            "description": "Filing-date window for executive shareholding-change disclosures. CSRC rules require disclosure within 2 trading days of the transaction, so 'last_7d' captures essentially all breaking insider flow; 'last_30d' is the standard institutional-monitor window; 'last_90d' covers a full quarter. Use 'custom' with `startDate` + `endDate` for precise backtesting windows.",
            "default": "last_30d"
          },
          "startDate": {
            "title": "Custom start date (YYYY-MM-DD)",
            "type": "string",
            "description": "Used only when `dateRange = custom`. Filing-date lower bound (inclusive). Eastmoney datacenter holds roughly 10+ years of executive-disclosure history, but Eastmoney response sizes degrade beyond ~2 years per query — for long-horizon studies, run multiple windowed queries.",
            "default": ""
          },
          "endDate": {
            "title": "Custom end date (YYYY-MM-DD)",
            "type": "string",
            "description": "Used only when `dateRange = custom`. Filing-date upper bound (inclusive). Leave blank to default to today (UTC).",
            "default": ""
          },
          "transactionType": {
            "title": "Transaction type filter",
            "enum": [
              "buy",
              "sell",
              "all"
            ],
            "type": "string",
            "description": "Filter to insider buys (增持 — open-market purchases by directors/officers from their own capital), insider sells (减持 — open-market sales), or all transactions. Academic evidence on A-share insider flow (CSRC research papers, CFA Institute mainland-China studies) finds cluster-buy events outperform the CSI 300 by 8-15% in the following 12 months. Conversely, executive sells within 30 days of a major announcement are a documented Section 65 violation signal.",
            "default": "all"
          },
          "maxRecords": {
            "title": "Max trade records returned",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on dataset rows pushed. Each row is one insider transaction line (one director, one trade date, one transaction code) — corporates with multi-director cluster moves produce 3-10 rows per filing. Mid-cap A-share names average 10-30 executive-shareholding events per year; large caps with concentrated insider ownership (Kweichow Moutai 600519, BYD 002594, CATL 300750) average 30-100+ events/year.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional. Eastmoney's datacenter API is normally reachable from any IP, but if you see HTTP 429 / 451 / 500 errors during peak Shenzhen open or after a high-profile disclosure event, enable Apify proxy. RESIDENTIAL with country=CN improves stability against any future Eastmoney geofencing; SHADER / BUYPROXIES94952 work for low-volume scans.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}