# Top underlyings by daily flow

`GET https://flow-api.skylit.ai/v1/underlying/top/daily`

API: Flowseeker. Credits: 1.

Top tickers for a single trading day, with call/put premium and
volume splits, net premium, and call/put ratio. Sortable by
`premium`, `volume`, `net_premium`, or `call_put_ratio`.

## Authentication

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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Maximum rows to return. Server caps at 500. (default `100`; min 1; max 500) |
| `date` | query | string (date) | no | Trading date the request targets, in `YYYY-MM-DD`. Defaults to the current trading date (the most recent session that has settled enough data to be queryable). |
| `min_premium` | query | number (double) | no |  (min 0) |
| `min_volume` | query | integer | no |  (min 0) |
| `order_by` | query | string | no |  (one of `premium`, `volume`, `net_premium`, `call_put_ratio`; default `premium`) |
| `order` | query | string | no |  (one of `asc`, `desc`; default `desc`) |

## Example request

```bash
curl "https://flow-api.skylit.ai/v1/underlying/top/daily" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 200

Top underlyings for the day.

Shape (placeholder values):

```json
{
  "data": [
    {
      "ticker": "string",
      "totalPremium": 0,
      "totalVolume": 0,
      "callPremium": 0,
      "putPremium": 0,
      "callVolume": 0,
      "putVolume": 0,
      "netPremium": 0,
      "callPutRatio": 0
    }
  ],
  "meta": {
    "timestamp": "string",
    "requestId": "d7574836"
  }
}
```

### 400

Request validation failed.

invalidParam:

```json
{
  "error": {
    "code": "BAD_REQUEST",
    "message": "Invalid parameter 'timeframe': must be one of [1m, 5m, 15m, 1h, 4h, 1d, 1w, 1M]"
  }
}
```

### 401

Missing or invalid API key.

missingKey:

```json
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Authentication required"
  }
}
```

### 402

The account's shared Skylit credit balance is lower than this route's cost. Top up to continue. Carries `X-Credits-Remaining: 0`.

Headers: `X-Credits-Remaining`.

outOfCredits:

```json
{
  "error": {
    "code": "insufficient_credits",
    "message": "Out of credits. Top up to continue making requests."
  }
}
```

### 429

Per-minute rate limit exceeded.

Headers: `Retry-After`.

tooFast:

```json
{
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit of 100 req/min exceeded. Retry after 18s."
  }
}
```
