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": "get_2_year_historical_quarterly_prices", "description": "Retrieves 2-year historical quarterly prices for a given stock ticker.", "parameters": {"ticker": {"description": "The stock ticker symbol for which to retrieve historical prices.", "type": "str", "default": "AAPL"}}}, {"name": "get_ico_calendar", "description": "Fetches the ICO (Initial Coin Offering) calendar based on the given parameters.", "parameters": {"category": {"description": "Comma-separated list of categories to filter the ICOs. For example: \"_ico_cat_gaming,_ico_cat_ecomm,_ico_cat_finance,_ico_cat_healthcare\".", "type": "str, optional", "default": ""}, "time_utc_offset": {"description": "UTC offset in seconds. For instance, UTC+8 is represented as 8 * 60 * 60 = 28800.", "type": "int, optional", "default": "28800"}, "tabname": {"description": "The status of the ICOs to retrieve. Options are 'upcoming', 'completed', or 'ongoing'. Default is 'ongoing'.", "type": "str, optional", "default": "ongoing"}, "sort": {"description": "The sorting criterion. Options are 'related_days', 'name', 'funds_raised', or 'completed'. Default is 'related_days'.", "type": "str, optional", "default": "related_days"}, "lang_id": {"description": "Language ID for the response. Default is 1.", "type": "int, optional", "default": "1"}}}]
Fetch the upcoming ICOs sorted by related days and the historical quarterly prices for Tesla Inc.
user
assistant
[{"name": "get_ico_calendar", "arguments": {"tabname": "upcoming", "sort": "related_days"}}, {"name": "get_2_year_historical_quarterly_prices", "arguments": {"ticker": "TSLA"}}]