{
    "allowCustomDataForDataTypeAny": true,
    "functions": [
        {
            "description": "Retrieves share price data for a specific company on a given date via the AlphaScript API.",
            "id": "SHARE_PRICE_DATA",
            "name": "SHARE_PRICE_DATA",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"Nasdaq:AVGO\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The type of financial data to retrieve (e.g., \"Closing_Share_Price\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The target date for the data, in MM/DD/YYYY format or Excel date.",
                    "name": "date",
                    "type": "any"
                },
                {
                    "description": "The desired output currency (e.g., \"USD\").",
                    "name": "currency",
                    "type": "string"
                }
            ],
            "result": {}
        },
        {
            "description": "Retrieves the exchange rate for a currency pair via the AlphaScript API.",
            "id": "CURRENCY",
            "name": "CURRENCY",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A currency pair in the format \"Base:Quote\" (e.g., \"USD:EUR\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The type of data to retrieve. (e.g., \"Daily_Closing_Value\")",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The target date for the data, in MM/DD/YYYY format or Excel date.",
                    "name": "date",
                    "type": "any"
                }
            ],
            "result": {}
        },
        {
            "description": "Retrieves other market data for a specific company on a given date via the AlphaScript API.",
            "id": "OTHER_MARKET_DATA",
            "name": "OTHER_MARKET_DATA",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"Nasdaq:AVGO\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The type of financial data to retrieve (e.g., \"Traded_Volume_Shares\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The target date for the data, in MM/DD/YYYY format or Excel date. Only required for \"Traded_Volume_Shares\", \"Adjusted_Traded_Volume_Shares\", \"Trading_Days\" data types.",
                    "name": "date",
                    "optional": true,
                    "type": "any"
                },
                {
                    "description": "The target end date for the data, in MM/DD/YYYY format or Excel date. Only required for \"Trading_Days\" data type.",
                    "name": "end_date",
                    "optional": true,
                    "type": "any"
                }
            ],
            "result": {
                "dimensionality": "matrix",
                "type": "string"
            }
        },
        {
            "description": "Retrieves company data for a specific company via the AlphaScript API.",
            "id": "COMPANY_DATA",
            "name": "COMPANY_DATA",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"Nasdaq:AVGO\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The type of financial data to retrieve (e.g., \"Legal_Name\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The desired output currency (e.g., \"USD\").",
                    "name": "currency",
                    "optional": true,
                    "type": "any"
                }
            ],
            "result": {}
        },
        {
            "description": "Retrieves capitalization actuals for a specific company via the AlphaScript API.",
            "id": "CAPITALIZATION_ACTUALS",
            "name": "CAPITALIZATION_ACTUALS",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "The type of capitalization data to retrieve (e.g., \"Data_Source_Information_Filing_Type\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The data sources (the access group, the UUN, the datasource)",
                    "dimensionality": "matrix",
                    "name": "dataSource",
                    "type": "string"
                },
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"Nasdaq:AVGO\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The target date for the data, in MM/DD/YYYY format or Excel date.",
                    "name": "date",
                    "type": "any"
                }
            ],
            "result": {}
        },
        {
            "description": "Builds a Custom Built Index using a standard Alpha Audit input range.\n\nThe `inputs` range must match the structure of the \"Custom_Index_Inputs_1\" range\nfrom the Alpha Audit template (contains: startDate, endDate, symbols, currency,\nshare price datatype, weighting method, and indexStartValue).",
            "id": "CUSTOM_BUILT_INDEX",
            "name": "CUSTOM_BUILT_INDEX",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "The Custom Built Index input range selected by the user (Alpha Audit structure).",
                    "dimensionality": "matrix",
                    "name": "inputs",
                    "type": "any"
                },
                {
                    "description": "The index datatype to retrieve (e.g., \"closing_index_value\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The target date to return the index value (MM/DD/YYYY or Excel date). **Required**.",
                    "name": "date",
                    "type": "any"
                }
            ],
            "result": {}
        },
        {
            "description": "Retrieves capitalization summary data (e.g., Market Cap) for a specific company on a given date via the AlphaScript API.\n\nUsage example:\nAlpha.Capitalization_Summary(\"NASDAQ:AAPL\", \"EODHD\", \"Market_Cap\", \"USD\", \"01/15/2021\")",
            "id": "CAPITALIZATION_SUMMARY",
            "name": "CAPITALIZATION_SUMMARY",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"NASDAQ:AAPL\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The data source. Only \"EODHD\" is supported.",
                    "name": "source",
                    "type": "string"
                },
                {
                    "description": "The type of capitalization summary data to retrieve (e.g., \"Market_Cap\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "The desired output currency (e.g., \"USD\").",
                    "name": "currency",
                    "type": "string"
                },
                {
                    "description": "The target date for the data, in MM/DD/YYYY format or Excel date.",
                    "name": "date",
                    "type": "any"
                }
            ],
            "result": {}
        },
        {
            "description": "Computes a single derived market metric over a date range (Start → End) using EODHD daily data.\n\nUsage example:\nAlpha.Market_Derived_Data(\"NASDAQ:AAPL\", \"Period_VWAP\", \"01/01/2025\", \"01/31/2025\", \"USD\")\n\nSupported Data Types:\n- \"Period_High\"\n- \"Period_Low\"\n- \"Period_VWAP\"\n- \"Period_Average\"\n- \"Period_Median\"\n- \"Period_P25\"\n- \"Period_P75\"\n\nShare Price Type rules (current strict policy):\n- Period_High => Daily_High / Adjusted_Daily_High\n- Period_Low  => Daily_Low / Adjusted_Daily_Low\n- Others      => Closing/Opening (adjusted or not)",
            "id": "MARKET_DERIVED_DATA",
            "name": "MARKET_DERIVED_DATA",
            "options": {
                "requiresAddress": true
            },
            "parameters": [
                {
                    "description": "A unique company identifier code in the format \"Exchange:Ticker\" (e.g., \"NASDAQ:AAPL\").",
                    "name": "symbol",
                    "type": "string"
                },
                {
                    "description": "The derived datatype to retrieve (e.g., \"Period_VWAP\").",
                    "name": "dataType",
                    "type": "string"
                },
                {
                    "description": "Start date (MM/DD/YYYY or Excel date).",
                    "name": "start_date",
                    "type": "any"
                },
                {
                    "description": "End date (MM/DD/YYYY or Excel date).",
                    "name": "end_date",
                    "type": "any"
                },
                {
                    "description": "Desired output currency (e.g., \"USD\" or \"TRADING_CURRENCY\").",
                    "name": "currency",
                    "type": "string"
                }
            ],
            "result": {}
        }
    ]
}