# Atlas orbs for one past trading session

`GET https://atlas-api.skylit.ai/v1/orbs`

API: Atlas. Credits: 1.

Atlas's native GEX levels for one completed session, with the same
response body as the app's internal levels request for that date.
Enabled per account by grant (`atlas.orbs = 1`); otherwise answers
`403` `not_entitled`. A futures symbol also needs `atlas.futures = 1`.

`date` must be a NYSE trading day from 2023-03-28 inclusive and strictly
before today's date in New York. Per-symbol coverage may start later.
Today, future dates, weekends and holidays are refused before charging.
Only the parameters listed below are accepted. `v` and `_t` are accepted
and ignored cache-busters. Any other parameter is a `400`
`invalid_parameter` before metering. Derived overlays and snapshots
are not available on this route.

## Authentication

Send your Skylit API key as a bearer token: `Authorization: Bearer <key>`. No other header is accepted.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `symbol` | query | string | yes |  |
| `date` | query | string (date) | yes | One past trading date in New York, YYYY-MM-DD. |
| `data_type` | query | string | no |  (one of `gamma`, `vanna`, `combined`; default `gamma`) |
| `nodes` | query | string | no | Fixed count (10 by default), or p1 through p99 for percent of king. |
| `exp_mode` | query | string | no |  (one of `current`, `next_n`, `week`, `week2`, `month`, `month2`, `quarter`, `quarter2`, `mopex`, `mopex2`, `qopex`, `qopex2`, `all`; default `next_n`) |
| `exp_count` | query | integer | no | For next_n, includes the front expiration plus this many following expirations. (default `5`; min 1; max 400) |
| `exp_kinds` | query | string | no | Comma list of expiration kinds the orbs rank over (0dte, weekly, monthly, quarterly), as on internal levels. Absent or all four = every expiration. |
| `extended` | query | boolean | no | Include 04:00-20:00 ET; false uses regular hours. (default `false`) |
| `rth` | query | string | no | Accepted cache discriminator; ignored, as on internal levels. |
| `as_of` | query | integer (int64) | no | Accepted legacy Unix seconds; ignored, as on internal levels. |
| `derived_ratio` | query | string | no | Accepted for replay compatibility; no derived overlays are requested. (one of `minute`, `latest`; default `minute`) |
| `v` | query | string | no |  |
| `_t` | query | string | no |  |

## Example request

```bash
curl "https://atlas-api.skylit.ai/v1/orbs?symbol=SPXW&date=2026-07-08" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 200

Native Atlas levels body; levels may be empty when this symbol has no data.

Shape (placeholder values):

```json
{
  "success": false,
  "levels": [
    {
      "t": 0,
      "s": 0,
      "l": [
        {
          "k": 0,
          "v": 0,
          "d": -1,
          "net": 0
        }
      ]
    }
  ],
  "level_count": 0,
  "expirations": [
    "string"
  ]
}
```

### 400

Invalid date or parameter; no credit charged.

### 401

Missing or invalid API key.

### 402

Never charged. One of:
- `insufficient_credits`: the balance is below the request cost.
  Carries `X-Credits-Remaining`.
- `monthly_cap_reached`: the account's monthly spend cap is used up;
  it resets at the start of next month. Carries `X-Credits-Remaining`.
- `daily_cap_reached`: the plan's daily credit limit is used up; it
  resets at midnight ET. Refused before metering, so it carries no
  `X-Credits-Remaining`; carries `Retry-After` (seconds to the reset).

Headers: `X-Credits-Remaining`, `Retry-After`.

outOfCredits:

```json
{
  "error": {
    "code": "insufficient_credits",
    "message": "Out of credits."
  }
}
```

### 403

Account lacks the orbs grant or applicable futures grant, or access is refused by its plan.

### 422

`request_too_large`: this session's orbs board is too large for
the service to build. Refunded; retrying will not help.

### 429

Too many concurrent requests; retry after the Retry-After header.

### 503

Temporarily unavailable: `orbs_busy` when this server is building
other past-session orbs (retry after the `Retry-After` header),
`orbs_unavailable` when the levels read fails, `api_paused`, or
`credit_check_failed`. All refunded. Backend error details are
never returned; retry later.

Headers: `Retry-After`.

### 504

`gateway_timeout`: the request ran longer than 25 seconds and was
cancelled. Refunded; retry, or narrow the range.
