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

# Get Lighter on Robinhood Chain OHLCV candles JSON Schema

> Get Lighter on Robinhood Chain OHLCV candles JSON Schema contract. Includes route metadata, schemas, examples, and implementation notes.

Source OpenAPI: 0xArchive API 1.7.0; 218 paths; 210 component schemas.

Get Lighter on Robinhood Chain OHLCV candles derived from canonical trades, from June 26, 2026. Supports intervals from 1 minute to 1 week. Until candles are enabled for this deployment the route answers with an error instead of empty data. **Available Intervals:** 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w **Pagination:** Use the `cursor` parameter with the value from the previous response's `next_cursor` for efficient pagination.

## Route Metadata

| Field | Value |
| - | - |
| Method | `GET` |
| Path | `/v1/rh-lighter/candles/{symbol}` |
| operationId | `getRhLighterCandles` |
| Tag | Lighter on Robinhood Chain - Candles |
| Family | Lighter on Robinhood Chain |
| Deprecated or legacy | no |

## Request Parameters

### Path Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles path parameters",
  "type": "object",
  "required": [
    "symbol"
  ],
  "properties": {
    "symbol": {
      "description": "Market symbol on Lighter on Robinhood Chain. Perpetuals use the uppercase base symbol (BTC); spot pairs are dashed and USDG-quoted (AAPL-USDG). List markets with GET /v1/rh-lighter/instruments.",
      "type": "string",
      "example": "BTC",
      "x-parameter-location": "path"
    }
  }
}
```

### Query Parameters

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles query parameters",
  "type": "object",
  "properties": {
    "start": {
      "description": "Start timestamp in Unix milliseconds. Defaults to 24h ago.",
      "type": "integer",
      "format": "int64",
      "x-parameter-location": "query"
    },
    "end": {
      "description": "End timestamp in Unix milliseconds. Defaults to now.",
      "type": "integer",
      "format": "int64",
      "x-parameter-location": "query"
    },
    "interval": {
      "description": "Candle interval (default: 1h)",
      "type": "string",
      "enum": [
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "4h",
        "1d",
        "1w"
      ],
      "default": "1h",
      "x-parameter-location": "query"
    },
    "cursor": {
      "description": "Cursor for pagination (use the value from previous response's `next_cursor`)",
      "type": "string",
      "x-parameter-location": "query"
    },
    "limit": {
      "description": "Maximum number of results (default: 100, max: 10000)",
      "type": "integer",
      "default": 100,
      "maximum": 10000,
      "x-parameter-location": "query"
    }
  }
}
```

## Response Contracts

### Status 200

List of OHLCV candles with cursor for next page

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles response 200",
  "description": "API response containing an array of candle data",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "description": "OHLCV candle data",
        "type": "object",
        "required": [
          "close",
          "high",
          "low",
          "open",
          "timestamp",
          "volume"
        ],
        "properties": {
          "close": {
            "description": "Closing price",
            "type": "number",
            "format": "double",
            "example": 42650.75
          },
          "high": {
            "description": "Highest price during interval",
            "type": "number",
            "format": "double",
            "example": 42750
          },
          "low": {
            "description": "Lowest price during interval",
            "type": "number",
            "format": "double",
            "example": 42300.25
          },
          "open": {
            "description": "Opening price",
            "type": "number",
            "format": "double",
            "example": 42500.5
          },
          "quote_volume": {
            "description": "Trading volume in quote asset (USD)",
            "type": "number",
            "format": "double",
            "example": 53187500
          },
          "timestamp": {
            "description": "Candle start timestamp (ISO 8601 UTC)",
            "type": "string",
            "format": "date-time",
            "example": "2026-01-01T12:00:00Z"
          },
          "trade_count": {
            "description": "Number of trades in interval",
            "type": "integer",
            "example": 4520
          },
          "volume": {
            "description": "Trading volume in base asset",
            "type": "number",
            "format": "double",
            "example": 1250.5
          }
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "count": {
          "description": "Number of records returned",
          "type": "integer"
        },
        "next_cursor": {
          "description": "Cursor for pagination",
          "type": "string",
          "nullable": true
        }
      }
    },
    "success": {
      "type": "boolean",
      "example": true
    }
  }
}
```

### Status 400

Invalid request

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles response 400",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 400,
  "error": "Failed to deserialize query string: limit: invalid digit found in string",
  "error_code": "invalid_query_params",
  "request_id": "3f2a9c71-5b0e-4d68-9a4c-7e1d2b6f8a05"
}
```

### Status 401

Authentication required

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles response 401",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 401,
  "error": "Missing or invalid API key. Provide X-API-Key header."
}
```

### Status 429

Rate limit exceeded

#### application/json

```json theme={"theme":"github-dark"}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "getRhLighterCandles response 429",
  "description": "Error response",
  "type": "object",
  "properties": {
    "code": {
      "description": "HTTP status code",
      "type": "integer"
    },
    "error": {
      "description": "Error message",
      "type": "string"
    },
    "error_code": {
      "description": "Machine-readable error code. Common values: `invalid_query_params` (a query parameter failed to parse or validate) and `invalid_path_params` (a path parameter failed to parse). Other endpoint-specific codes exist; treat unknown codes as generic errors of the given HTTP status.",
      "type": "string"
    },
    "request_id": {
      "description": "Unique request ID for support",
      "type": "string",
      "format": "uuid"
    }
  }
}
```

##### OpenAPI example

```json theme={"theme":"github-dark"}
{
  "code": 429,
  "error": "Rate limit exceeded"
}
```
