get_spot_history
Analyze spot instance price history and stability for AWS compute types. Get per-AZ statistics, volatility ratio, and actionable recommendations to optimize spot usage.
Instructions
Get spot price history and stability analysis for a compute instance type.
Returns per-AZ spot price statistics (current, min, max, avg, sample count), overall volatility ratio, a stability label, and an actionable recommendation. Currently supported by AWS (requires credentials). GCP and Azure return not_supported.
Args: spec: PricingSpec dict with domain="compute", resource_type (instance type), region. Example: {"provider": "aws", "domain": "compute", "resource_type": "m5.xlarge", "region": "us-east-1"} hours: Lookback window in hours (default 24, max 720) availability_zone: Filter to a specific AZ, e.g. "us-east-1a". Empty = all AZs (AWS only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | ||
| hours | No | ||
| availability_zone | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||