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

# KLSI examples

> Practical request patterns for Kalshi endpoints

Use these examples as copy/paste starting points for KLSI endpoints.

## Set your API key

```bash theme={"theme":"one-dark-pro"}
export API_KEY="your_api_key_here"
```

## Get market details

```bash theme={"theme":"one-dark-pro"}
curl -s -H "X-API-Key: $API_KEY" \
  "https://api.delphiterminal.co/api/v1/klsi/KXNCAAFTOTAL-25NOV29NDSTAN-41/market" \
  | jq
```

## Get trade history

```bash theme={"theme":"one-dark-pro"}
curl -s -H "X-API-Key: $API_KEY" \
  "https://api.delphiterminal.co/api/v1/klsi/KXNCAAFTOTAL-25NOV29NDSTAN-41/tradehistory?limit=50" \
  | jq
```

## Get top of book

```bash theme={"theme":"one-dark-pro"}
curl -s -H "X-API-Key: $API_KEY" \
  "https://api.delphiterminal.co/api/v1/klsi/AMAZONFTC-29DEC31/top_of_book" \
  | jq
```

## Get raw orderbook deltas

```bash theme={"theme":"one-dark-pro"}
curl -s -H "X-API-Key: $API_KEY" \
  "https://api.delphiterminal.co/api/v1/klsi/AMAZONFTC-29DEC31/raw_deltas?limit=10" \
  | jq
```

<Note>
  For bulk historical exports, use the dedicated guide at <a href="/data-extraction">/data-extraction</a>.
</Note>
