# List your options and stock trades

`GET https://app.skylit.ai/api/nexus/v1/trades`

API: Nexus.

Your own options and stock trades, newest first. Futures aren't listed here: read them with the futures account and order history routes.

With `test=true` it lists your test log instead (your 10 newest test orders, futures ones included) and never a real trade.

## Authentication

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

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `status` | query | string | no | Which trades to list. (one of `open`, `closed`, `all`; default `all`) |
| `limit` | query | integer | no | Page size. Anything over 200 is read as 200. (default `50`; min 1; max 200) |
| `offset` | query | integer | no | How many trades to skip. (default `0`; min 0; max 100000) |
| `test` | query | string | no | `true` lists your test log instead of your trades. (one of `true`, `false`; default `false`) |

## Example request

```bash
curl "https://app.skylit.ai/api/nexus/v1/trades" \
  -H "Authorization: Bearer $SKYLIT_API_KEY"
```

## Responses

### 200

Your trades. `meta.total` counts every match, not just this page.

One open trade.:

```json
{
  "data": [
    {
      "id": "6f1c2a4e-8b1d-4c39-9a51-2d7e0b3c9f10",
      "userId": "0b8e5d2c-41a7-4f6e-9c3b-7a1d2e4f5a60",
      "ticker": "SPY",
      "strike": 600,
      "expiration": "2026-10-16",
      "direction": "call",
      "assetClass": "options",
      "averageEntryPrice": 1.84,
      "currentPrice": 1.97,
      "totalQuantity": 2,
      "remainingQuantity": 2,
      "status": "active",
      "entryDate": "2026-10-09T14:32:05Z",
      "source": "api"
    }
  ],
  "meta": {
    "total": 1,
    "limit": 50,
    "offset": 0
  }
}
```

### 400

The request was refused before anything was traded. Codes: `bad_request`, `bad_contract`, `invalid_quantity`, `invalid_price`, `unsupported_asset_class`, `unsupported_order_type`, `only_market_orders`, `test_orders_unavailable`, `test_modify_unavailable`.

A typo in the body.:

```json
{
  "error": {
    "code": "bad_request",
    "message": "Unknown field \"quantitty\". See the trades API docs for the fields you can send."
  }
}
```

### 401

No key, or a key that isn't valid. Codes: `missing_api_key`, `invalid_api_key`.

No key sent.:

```json
{
  "error": {
    "code": "missing_api_key",
    "message": "Send your Skylit API key in the Authorization header: Authorization: Bearer YOUR_SKYLIT_API_KEY."
  }
}
```

### 429

Over a rate limit. Wait `Retry-After` seconds, then retry. Code: `rate_limited`.

Headers: `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`.

Too many writes from this key.:

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests (limit 30). Slow down and retry in 12 seconds."
  }
}
```
