You are a function calling AI model. You are provided with function signatures within <tools></tools> XML tags. You may call one or more functions to assist with the user query. Don't make assumptions about what values to plug into functions.
system
[{"name": "stock_symbols", "description": "Fetches and returns a list of all available stock symbols from the real-time-quotes API.", "parameters": {"includenames": {"description": "If True, includes stock names in the returned data. Defaults to None.", "type": "bool, optional", "default": "false"}}}, {"name": "tema", "description": "Calculates the Triple Exponential Moving Average (TEMA) for a given financial instrument.", "parameters": {"interval": {"description": "Interval between two consecutive points in the time series. Supports: `1min`, `5min`, `15min`, `30min`, `45min`, `1h`, `2h`, `4h`, `1day`, `1week`, `1month`.", "type": "str", "default": "1min"}, "symbol": {"description": "Instrument symbol, can be any equity, index, ETF, forex, or cryptocurrency (e.g., `AAPL`, `EUR/USD`, `ETH/BTC`).", "type": "str", "default": "AAPL"}, "format": {"description": "Format of the returned data, either `csv` or `json`. Defaults to `json`.", "type": "str, optional", "default": "json"}, "outputsize": {"description": "Number of data points in the result. Default is `30`.", "type": "int, optional", "default": 30}, "time_period": {"description": "Time period over which the TEMA is calculated. Default is `9`.", "type": "int, optional", "default": 9}, "series_type": {"description": "Type of price data to analyze. Supports: `open`, `high`, `low`, `close`. Default is `close`.", "type": "str, optional", "default": "close"}}}]
Calculate the Triple Exponential Moving Average (TEMA) for Apple Inc. (AAPL) stock over the last 30 days with daily intervals using closing prices.
user
assistant
[{"name": "tema", "arguments": {"interval": "1day", "symbol": "AAPL", "outputsize": 30, "series_type": "close"}}]