> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gammaflip.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Quickstart

> From zero to your first GEX request in 5 minutes

## 1. Get access

Sign up at [gammaflip.io](https://gammaflip.io). You get a 3-day trial with
API access included (50 requests/day). Every paid plan (Crypto, TradFi, Complete) gets
500 requests/day and up to 5 keys; see [Authentication](https://docs.gammaflip.io/authentication.md).

## 2. Create an API key

1. Log in at [gammaflip.io/account](https://gammaflip.io/account)
2. Open the menu → **API Keys**
3. Click **Create API Key**, give it a description
4. Copy the key — it's shown only once

> [!WARNING]
>
> Your API key starts with `gex_sk_` and is shown **only once** at creation.
> Save it somewhere secure (password manager, env var). If you lose it, you'll
> need to create a new one.

## 3. Make your first request

List available exchanges (free: discovery calls don't count against your quota):

```bash cURL theme={null}
curl https://api.gammaflip.io/api/v1/exchanges \
  -H "X-API-Key: gex_sk_your_key_here"
```

```python Python theme={null}
import requests

resp = requests.get(
    "https://api.gammaflip.io/api/v1/exchanges",
    headers={"X-API-Key": "gex_sk_your_key_here"},
)
print(resp.json())
```

```javascript Node.js theme={null}
const resp = await fetch("https://api.gammaflip.io/api/v1/exchanges", {
  headers: { "X-API-Key": "gex_sk_your_key_here" },
});
console.log(await resp.json());
```

Expected response:

```json theme={null}
{
  "data": {
    "available": ["bybit", "deribit", "okx", "derive", "binance", "tradfi"],
    "virtual": ["all"],
    "markets": {
      "crypto": ["deribit", "bybit", "okx", "derive", "binance"],
      "tradfi": ["tradfi"]
    }
  },
  "meta": {
    "timestamp": "2026-10-06T10:00:00+00:00"
  }
}
```

## 4. Get real GEX data

Fetch the GEX term structure for Bitcoin across all exchanges:

```bash cURL theme={null}
curl https://api.gammaflip.io/api/v1/gex/term-oi/all/BTC \
  -H "X-API-Key: gex_sk_your_key_here"
```

```python Python theme={null}
resp = requests.get(
    "https://api.gammaflip.io/api/v1/gex/term-oi/all/BTC",
    headers={"X-API-Key": "gex_sk_your_key_here"},
)
data = resp.json()["data"]
for exp in data["expirations"]:
    print(exp["date"], exp["total_gex"], exp["total_oi"])
```

## 5. Get the key levels in one call

`/levels` returns a small flat object (flip, regime, walls, totals) for the
latest snapshot. Try a US ticker:

```bash theme={null}
curl https://api.gammaflip.io/api/v1/levels/tradfi/QQQ \
  -H "X-API-Key: gex_sk_your_key_here"
```

Every response says how fresh it is (`meta.as_of`, `meta.oi_as_of`). Field
definitions are in the [data dictionary](https://docs.gammaflip.io/data-dictionary.md).

## 6. Check your rate limit

Counted responses (`/gex/...`, `/levels/...`) include these headers:

```
X-RateLimit-Limit: 500
X-RateLimit-Remaining: 498
X-RateLimit-Reset: 2026-04-15T00:00:00+00:00
```

When you hit the limit, you'll get `429 Too Many Requests` (with no
`Retry-After` header; use `X-RateLimit-Reset`). Quota resets at **midnight UTC**
every day. [`GET /me`](https://docs.gammaflip.io/api-reference/me) shows your quota for free.

> [!TIP]
>
> The underlying GEX data updates every 15 minutes (from our Lambda capture).
> Polling more frequently than that doesn't yield new data.

## What's next?

> [card] [API Reference](https://docs.gammaflip.io/api-reference/exchanges.md)
>
> Full reference for all endpoints, parameters, and response schemas.

> [card] [Markets and exchanges](https://docs.gammaflip.io/markets-and-exchanges.md)
>
> Crypto venues, TradFi tickers, subsets and expiration cutoffs.

> [card] [Authentication](https://docs.gammaflip.io/authentication.md)
>
> Learn about tiers, key management, and security best practices.

> [card] [Rate Limits](https://docs.gammaflip.io/rate-limits.md)
>
> How quotas work and how to handle 429 responses gracefully.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.