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

# Quickstart

> Three requests, from login to the daily trading volume of one of your assets.

You need a GlassMarkets account and a terminal with `curl`.

## 1. Log in

```bash theme={null}
curl -X POST https://api.glassmarkets.io/v1/login/ \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "password": "your-password"}'
```

Copy the `token` from the response. The steps below send it as `<token>`. See
[Authentication](/guides/authentication) for token lifetime and two-factor
accounts.

## 2. List your organizations

```bash theme={null}
curl https://api.glassmarkets.io/v1/organizations/ \
  -H "Authorization: Token <token>"
```

Each organization lists its assets. Each asset lists the exchanges it trades
on and the pairs on each exchange:

```json theme={null}
[
  {
    "slug": "example",
    "name": "Example Organization",
    "assets": [
      {
        "symbol": "BTC",
        "name": "BTC",
        "role": "market-maker",
        "exchanges": [
          {
            "slug": "binance",
            "name": "Binance",
            "pairs": ["BTC/USDT"]
          }
        ],
        "first_date": "2023-08-24T00:00:00Z"
      }
    ]
  }
]
```

The example leaves some fields out. Use these exact values in other requests:

| Value | Used as |
| - | - |
| Organization `slug` | `organization` |
| Asset `symbol` | `asset` or `assets` |
| Exchange `slug` | `exchange` |
| An entry of `pairs` | `pair` |

## 3. Read the trading volume of an asset

This request returns the daily trading volume of `BTC` for the last seven
days. Replace `BTC` with one of your assets from step 2.

```bash theme={null}
curl -G https://api.glassmarkets.io/v2/metrics/volume/ \
  -H "Authorization: Token <token>" \
  -d assets=BTC -d interval=1d -d lookback=7-days
```

Each row is one exchange pair and one time bucket (trimmed):

```json theme={null}
[
  {
    "asset": "BTC",
    "exchange": { "slug": "binance", "name": "Binance" },
    "pair": "BTC/USDT",
    "timestamp": "2026-09-23T00:00:00Z",
    "volume": 1834201553.42,
    "twap": 64120.55,
    "vwap": 64098.13
  }
]
```

| Parameter | Meaning |
| - | - |
| `assets` | Comma-separated asset symbols, for example `BTC,ETH`. An asset outside your organizations returns `400`. Leave it out to get every asset you can access |
| `interval` | Size of each time bucket, for example `1h` or `1d`. Required |
| `lookback` | A window ending now, for example `1-day` or `7-days` |
| `time_start`, `time_end` | A fixed window, ISO 8601 in UTC. Cannot be combined with `lookback` |

## Next steps

* Browse the **API reference** tab for every endpoint and its parameters.
* Read [Errors](/guides/errors) to handle failed requests.
