> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 内部人士交易（按行情代码）

> 获取内部人士交易



## OpenAPI

````yaml openapi/zh/openapi-financial.json GET /insider-trades
openapi: 3.0.1
info:
  title: Financial Datasets API
  description: 股票市场 API，提供超过 30 年、涵盖 30,000 多个股票代码的实时和历史金融数据，包括财务报表、股票价格、内部人士交易、SEC 申报文件等。
  version: 1.0.0
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  contact:
    name: API Support
    url: https://financialdatasets.ai/support
    email: support@financialdatasets.ai
  termsOfService: https://financialdatasets.ai/terms
servers:
  - url: https://api.aisa.one/apis/v1/financial
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Financial Statements
    description: Access to income statements, balance sheets, and cash flow statements
  - name: Market Data
    description: Real-time and historical price data
  - name: Company Information
    description: Company facts like ticker, name, and description
  - name: Earnings
    description: Earnings press releases and related data
  - name: Crypto
    description: Cryptocurrency price data and market information
  - name: News
    description: Real-time and historical news articles
  - name: SEC Filings
    description: SEC filings and regulatory documents
  - name: Insider Trades
    description: Insider trading activity and transactions
  - name: Institutional Ownership
    description: Equity holdings of investment managers
  - name: Financial Metrics
    description: Financial ratios, metrics, and key performance indicators
paths:
  /insider-trades:
    get:
      tags:
        - Insider Trades
      summary: 获取内部人士交易
      description: 获取公司内部人士针对某个股票代码的买入和卖出等内部交易。
      operationId: getInsiderTrades
      parameters:
        - name: ticker
          in: query
          description: 公司的股票代码。
          required: true
          schema:
            type: string
        - name: limit
          in: query
          description: 返回的最大交易数量（默认值：10）。
          required: false
          schema:
            type: integer
            default: 10
        - name: name
          in: query
          description: >-
            按内部人士姓名筛选（例如 'Jen Hsun Huang'）。使用 /insider-trades/names
            端点获取某个股票代码的可用姓名。
          required: false
          schema:
            type: string
        - name: transaction_type
          in: query
          description: >-
            按交易类型筛选（例如 'Open market sale'、'Gift'）。使用
            /insider-trades/transaction-types 端点获取可用类型。
          required: false
          schema:
            type: string
        - name: filing_date
          in: query
          description: 按 YYYY-MM-DD 格式的确切申报日期筛选。
          required: false
          schema:
            type: string
            format: date
        - name: filing_date_gte
          in: query
          description: 筛选申报日期大于或等于此日期的记录（YYYY-MM-DD）。
          required: false
          schema:
            type: string
            format: date
        - name: filing_date_lte
          in: query
          description: 筛选申报日期早于或等于此日期的记录 (YYYY-MM-DD)。
          required: false
          schema:
            type: string
            format: date
        - name: filing_date_gt
          in: query
          description: 筛选申报日期晚于此日期（YYYY-MM-DD）的记录。
          required: false
          schema:
            type: string
            format: date
        - name: filing_date_lt
          in: query
          description: 筛选申报日期早于此日期（YYYY-MM-DD）的记录。
          required: false
          schema:
            type: string
            format: date
      responses:
        '200':
          description: 内部人士交易响应
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InsiderTradesResponse'
        '400':
          $ref: '#/components/responses/BadRequestError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '402':
          $ref: '#/components/responses/PaymentRequiredError'
        '404':
          $ref: '#/components/responses/NotFoundError'
components:
  schemas:
    InsiderTradesResponse:
      type: object
      properties:
        insider_trades:
          type: array
          items:
            $ref: '#/components/schemas/InsiderTrade'
    InsiderTrade:
      type: object
      properties:
        ticker:
          type: string
          description: 公司的股票代码。
        issuer:
          type: string
          description: 发行公司的名称。
        name:
          type: string
          description: 内部人士的姓名。
        title:
          type: string
          description: 内部人士的职称。
        is_board_director:
          type: boolean
          description: 该内部人士是否为董事会成员。
        transaction_date:
          type: string
          format: date
          description: 交易日期。
        transaction_shares:
          type: number
          description: 交易涉及的股份数量。
        transaction_price_per_share:
          type: number
          description: 交易中的每股价格。
        transaction_value:
          type: number
          description: 交易总价值。
        shares_owned_before_transaction:
          type: number
          description: 交易前持有的股份数量。
        shares_owned_after_transaction:
          type: number
          description: 交易后持有的股份数量。
        security_title:
          type: string
          description: 交易所涉及证券的名称。
        filing_date:
          type: string
          format: date
          description: 交易申报日期。
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: 简短的错误消息。
        message:
          type: string
          description: 更详细的错误消息。
  responses:
    BadRequestError:
      description: 错误请求
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Bad Request
            message: Invalid request parameters
    UnauthorizedError:
      description: 未授权
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Unauthorized
            message: Invalid API key provided
    PaymentRequiredError:
      description: 该请求需要付费订阅
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Payment Required
            message: >-
              This endpoint requires a paid subscription. Please upgrade your
              plan.
    NotFoundError:
      description: 未找到指定的资源
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error: Not Found
            message: Ticker XXXX not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````