spot

Hourly time-weighted OHLC bars for one instance type.

Per-zone series are bucketed by UTC hour with time weighting (a price counts for as long as it was in force), then collapsed across zones: open/close/avg are the median across zones, high is the max, low is the min. Window is capped at 366 days.

get/v1/spot/hourly

Request

  • Base URL: https://cloud.trycorpus.ai
  • URL: https://cloud.trycorpus.ai/v1/spot/hourly
  • Auth: one of:
    • API key in header PAYMENT-SIGNATURE
    • API key in header Authorization
    • API key in header X-Api-Key

Query parameters

provider'aws' | 'gcp' | 'azure' required

Cloud provider. One of aws, gcp, azure.

regionstring required
Example:us-east-1

Region slug as listed by /catalog (for example us-east-1 for AWS, us-central1 for GCP, us-east for Azure). Azure slugs map to eastus, westus2, westeurope.

instancestring required
Example:c5.large

Instance / machine / SKU type name exactly as listed by /instances (for example c5.large, n2-standard-4, D2s_v5).

fromstring date-time

Start of the window (inclusive), ISO 8601 UTC. Default: 30 days before to.

tostring date-time

End of the window (exclusive), ISO 8601 UTC. Default: now.

Response

Hourly bars.

providerstring
regionstring
instancestring
zonesinteger

Number of zone series collapsed.

fromstring date-time
tostring date-time
countinteger

Changes

No recorded changes to this operation across all 1 revision of this API.