Insider Stock Trades

Insider Stock Trades · Acciones GPT

Insider Transactions API

An API to get insider transactions for companies.

  • GET /stock/insider-transactionsGet Insider Transactions

    Retrieve insider transactions for a specified company symbol.

Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "Insider Transactions API",
    "description": "An API to get insider transactions for companies.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://finnhub.io/api/v1"
    }
  ],
  "paths": {
    "/stock/insider-transactions": {
      "get": {
        "summary": "Get Insider Transactions",
        "operationId": "getInsiderTransactions",
        "description": "Retrieve insider transactions for a specified company symbol.",
        "parameters": [
          {
            "in": "query",
            "name": "symbol",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Symbol of the company."
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "From date for transactions."
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "To date for transactions."
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100
            },
            "description": "Limit the number of transactions (default and max is 100)."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response with insider transactions data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InsiderTransactionsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "FinnhubToken": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "InsiderTransactionsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsiderTransaction"
            }
          },
          "symbol": {
            "type": "string"
          }
        }
      },
      "InsiderTransaction": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "share": {
            "type": "integer"
          },
          "change": {
            "type": "integer"
          },
          "filingDate": {
            "type": "string",
            "format": "date"
          },
          "transactionDate": {
            "type": "string",
            "format": "date"
          },
          "transactionCode": {
            "type": "string"
          },
          "transactionPrice": {
            "type": "number"
          }
        }
      }
    },
    "securitySchemes": {
      "FinnhubToken": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Finnhub-Token"
      }
    }
  },
  "security": [
    {
      "FinnhubToken": []
    }
  ]
}