get_historical_prices
Fetch historical stock price data for crypto-related stocks in a table format, including date, closing price, and volume, over a specified number of days.
Instructions
Fetch historical stock prices for the given ticker over the specified number of days in a table format.
Args:
ticker (str): The stock ticker symbol (e.g., 'COIN' for Coinbase).
days (int, optional): Number of days for historical data (default: 30).
Returns:
str: An ASCII table string containing the date, closing price, and volume for the specified stock.
Returns an error message if the ticker is invalid.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
days | No | ||
ticker | Yes |
Input Schema (JSON Schema)
{
"properties": {
"days": {
"default": 30,
"title": "Days",
"type": "integer"
},
"ticker": {
"title": "Ticker",
"type": "string"
}
},
"required": [
"ticker"
],
"title": "get_historical_pricesArguments",
"type": "object"
}