# Commodity Seasonality API
> The calendar patterns commodity traders position around, computed live from ~10 years of Yahoo Finance monthly futures data (no key, nothing stored). Commodities are the most seasonal market there is: natural gas tends to rally into winter heating demand, gasoline into the summer driving season, grains around the planting and harvest calendar. This measures it directly — for each commodity it takes a decade of monthly returns, groups them by calendar month, and returns the average return in each of the twelve months, the share of years that month was positive (the win rate), and the historically strongest and weakest months. The seasonality endpoint returns one commodity's full 12-month seasonal profile plus the current month's historical bias. The month endpoint flips it around: for a given calendar month it ranks every commodity by its historical average return, so you can see what is seasonally bullish or bearish right now. The commodities endpoint lists what is covered. The commodity-seasonality / calendar-pattern cut — distinct from the FX-seasonality API (currencies), the commodity-price feed, the commodity-spreads and the commodity-momentum APIs. It answers what a commodity usually does this month, not what it costs today.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/commodityseasonality-api/..."
```

## Pricing
- **Free** (Free) — 820 calls/Mo, 2 req/s
- **Starter** ($10/Mo) — 18,800 calls/Mo, 6 req/s
- **Pro** ($32/Mo) — 92,500 calls/Mo, 16 req/s
- **Business** ($76/Mo) — 505,000 calls/Mo, 40 req/s

## Endpoints

### Seasonality

#### `GET /v1/seasonality` — One commodity 12-month seasonal profile with best/worst month and current bias

**Parameters:**
- `commodity` (query, required, string) — Key, name or alias (see /v1/commodities) Example: `natural_gas`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/commodityseasonality-api/v1/seasonality?commodity=natural_gas"
```

### Month

#### `GET /v1/month` — Every commodity ranked by historical average return in a calendar month

**Parameters:**
- `month` (query, optional, string) — 1-12 or month name (default current) Example: `December`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/commodityseasonality-api/v1/month?month=December"
```

### Commodities

#### `GET /v1/commodities` — Supported commodities and groups

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/commodityseasonality-api/v1/commodities"
```

### Meta

#### `GET /v1/meta` — Service metadata

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/commodityseasonality-api/v1/meta"
```


---
Marketplace page: https://www.oanor.com/api/commodityseasonality-api
OpenAPI spec: https://www.oanor.com/api/commodityseasonality-api/openapi.json
