# Hyperliquid — Candle snapshot

Get Hyperliquid Candles data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as req, type, and retrieve structured data including coin identifier, candle interval, opening price, highest price, and lowest price for market charts, and time-window comparisons, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/hyperliquid/hyperliquid-candle-snapshot/0b15d273-e98f-4f23-9519-5e53f00830e4/
API ID: 0b15d273-e98f-4f23-9519-5e53f00830e4
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/candle-snapshot
Page update time: 2026-12-03T02:49:32.804Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:32.407Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Candles API

POST type="candleSnapshot" and a req object containing coin, interval, startTime and endTime. Both time bounds are required by this implementation. The response is an array of candles with compact field names; retain the interval and candle timestamps alongside the price strings.

## What You Can Build

- **Market charts**: Build candles for a selected asset and interval.
- **Time-window comparisons**: Compare price and volume over the requested window.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[].t` | Candle opening timestamp in milliseconds |
| `[].T` | Candle closing timestamp in milliseconds |
| `[].s` | Coin identifier |
| `[].i` | Candle interval |
| `[].o` | Opening price |
| `[].h` | Highest price |
| `[].l` | Lowest price |
| `[].c` | Closing price |
| `[].v` | Reported candle volume |
| `[].n` | Reported trade count |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Candle snapshot request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "req": {
            "coin": "BTC",
            "endTime": 1793258499000,
            "interval": "1h",
            "startTime": 1793172099000
          },
          "type": "candleSnapshot"
        }
      ],
      "properties": {
        "req": {
          "additionalProperties": false,
          "description": "{\"coin\": \\, \"interval\": \"15m\", \"startTime\": \\, \"endTime\": \\}For HIP-3, you need to prefix with the dex name, e.g. \"xyz:XYZ100\"",
          "example": {
            "coin": "BTC",
            "endTime": 1793258499000,
            "interval": "1h",
            "startTime": 1793172099000
          },
          "properties": {
            "coin": {
              "example": "BTC",
              "type": "string"
            },
            "endTime": {
              "type": "integer"
            },
            "interval": {
              "enum": [
                "1m",
                "3m",
                "5m",
                "15m",
                "30m",
                "1h",
                "2h",
                "4h",
                "8h",
                "12h",
                "1d",
                "3d",
                "1w",
                "1M"
              ],
              "type": "string"
            },
            "startTime": {
              "type": "integer"
            }
          },
          "required": [
            "coin",
            "interval",
            "startTime",
            "endTime"
          ],
          "type": "object"
        },
        "type": {
          "const": "candleSnapshot",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "candleSnapshot"
          ],
          "example": "candleSnapshot",
          "type": "string"
        }
      },
      "required": [
        "type",
        "req"
      ],
      "type": "object",
      "description": "Candle snapshot Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "T": {
        "type": "integer"
      },
      "c": {
        "type": "string"
      },
      "h": {
        "type": "string"
      },
      "i": {
        "type": "string"
      },
      "l": {
        "type": "string"
      },
      "n": {
        "type": "integer"
      },
      "o": {
        "type": "string"
      },
      "s": {
        "type": "string"
      },
      "t": {
        "type": "integer"
      },
      "v": {
        "type": "string"
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/candle-snapshot' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "req": {
    "coin": "BTC",
    "endTime": 1793258499000,
    "interval": "1h",
    "startTime": 1793172099000
  },
  "type": "candleSnapshot"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  {
    "T": 1793174399999,
    "c": "81055.0",
    "h": "81057.0",
    "i": "1h",
    "l": "80837.0",
    "n": 3907,
    "o": "80837.0",
    "s": "BTC",
    "t": 1793170800000,
    "v": "130.20197"
  },
  {
    "T": 1793177999999,
    "c": "81470.0",
    "h": "81804.0",
    "i": "1h",
    "l": "81055.0",
    "n": 18093,
    "o": "81056.0",
    "s": "BTC",
    "t": 1793174400000,
    "v": "1896.23395"
  },
  {
    "T": 1793181599999,
    "c": "81526.0",
    "h": "81530.0",
    "i": "1h",
    "l": "81313.0",
    "n": 7519,
    "o": "81470.0",
    "s": "BTC",
    "t": 1793178000000,
    "v": "696.13938"
  },
  {
    "T": 1793185199999,
    "c": "81478.0",
    "h": "81579.0",
    "i": "1h",
    "l": "81416.0",
    "n": 5934,
    "o": "81525.0",
    "s": "BTC",
    "t": 1793181600000,
    "v": "396.97416"
  },
  {
    "T": 1793188799999,
    "c": "81303.0",
    "h": "81478.0",
    "i": "1h",
    "l": "81268.0",
    "n": 5926,
    "o": "81478.0",
    "s": "BTC",
    "t": 1793185200000,
    "v": "340.50662"
  },
  {
    "T": 1793192399999,
    "c": "80718.0",
    "h": "81306.0",
    "i": "1h",
    "l": "80670.0",
    "n": 14520,
    "o": "81303.0",
    "s": "BTC",
    "t": 1793188800000,
    "v": "1625.96008"
  },
  {
    "T": 1793195999999,
    "c": "80729.0",
    "h": "80900.0",
    "i": "1h",
    "l": "80404.0",
    "n": 15945,
    "o": "80718.0",
    "s": "BTC",
    "t": 1793192400000,
    "v": "1548.4875"
  },
  {
    "T": 1793199599999,
    "c": "80586.0",
    "h": "80856.0",
    "i": "1h",
    "l": "80450.0",
    "n": 12716,
    "o": "80728.0",
    "s": "BTC",
    "t": 1793196000000,
    "v": "1214.72157"
  },
  {
    "T": 1793203199999,
    "c": "80535.0",
    "h": "80750.0",
    "i": "1h",
    "l": "80482.0",
    "n": 8414,
    "o": "80586.0",
    "s": "BTC",
    "t": 1793199600000,
    "v": "660.20621"
  },
  {
    "T": 1793206799999,
    "c": "80608.0",
    "h": "80755.0",
    "i": "1h",
    "l": "80362.0",
    "n": 8591,
    "o": "80535.0",
    "s": "BTC",
    "t": 1793203200000,
    "v": "572.69527"
  },
  {
    "T": 1793210399999,
    "c": "80832.0",
    "h": "80946.0",
    "i": "1h",
    "l": "80438.0",
    "n": 11934,
    "o": "80608.0",
    "s": "BTC",
    "t": 1793206800000,
    "v": "1907.04724"
  },
  {
    "T": 1793213999999,
    "c": "81003.0",
    "h": "81325.0",
    "i": "1h",
    "l": "80687.0",
    "n": 29054,
    "o": "80832.0",
    "s": "BTC",
    "t": 1793210400000,
    "v": "4173.88746"
  },
  {
    "T": 1793217599999,
    "c": "81579.0",
    "h": "81607.0",
    "i": "1h",
    "l": "80961.0",
    "n": 15816,
    "o": "81004.0",
    "s": "BTC",
    "t": 1793214000000,
    "v": "1209.35592"
  },
  {
    "T": 1793221199999,
    "c": "81316.0",
    "h": "81780.0",
    "i": "1h",
    "l": "80976.0",
    "n": 23482,
    "o": "81580.0",
    "s": "BTC",
    "t": 1793217600000,
    "v": "3987.30451"
  },
  {
    "T": 1793224799999,
    "c": "81341.0",
    "h": "81440.0",
    "i": "1h",
    "l": "81111.0",
    "n": 10280,
    "o": "81316.0",
    "s": "BTC",
    "t": 1793221200000,
    "v": "1566.65106"
  },
  {
    "T": 1793228399999,
    "c": "81253.0",
    "h": "81406.0",
    "i": "1h",
    "l": "81129.0",
    "n": 5028,
    "o": "81342.0",
    "s": "BTC",
    "t": 1793224800000,
    "v": "265.29047"
  },
  {
    "T": 1793231999999,
    "c": "81319.0",
    "h": "81349.0",
    "i": "1h",
    "l": "81142.0",
    "n": 4904,
    "o": "81254.0",
    "s": "BTC",
    "t": 1793228400000,
    "v": "414.32741"
  },
  {
    "T": 1793235599999,
    "c": "81076.0",
    "h": "81350.0",
    "i": "1h",
    "l": "81074.0",
    "n": 5997,
    "o": "81319.0",
    "s": "BTC",
    "t": 1793232000000,
    "v": "519.43275"
  },
  {
    "T": 1793239199999,
    "c": "79974.0",
    "h": "81077.0",
    "i": "1h",
    "l": "79939.0",
    "n": 21325,
    "o": "81077.0",
    "s": "BTC",
    "t": 1793235600000,
    "v": "2151.5758"
  },
  {
    "T": 1793242799999,
    "c": "79934.0",
    "h": "80151.0",
    "i": "1h",
    "l": "79668.0",
    "n": 22047,
    "o": "79975.0",
    "s": "BTC",
    "t": 1793239200000,
    "v": "2858.20182"
  },
  {
    "T": 1793246399999,
    "c": "79838.0",
    "h": "80006.0",
    "i": "1h",
    "l": "79725.0",
    "n": 8182,
    "o": "79938.0",
    "s": "BTC",
    "t": 1793242800000,
    "v": "1045.67929"
  },
  {
    "T": 1793249999999,
    "c": "80229.0",
    "h": "80286.0",
    "i": "1h",
    "l": "79758.0",
    "n": 8250,
    "o": "79837.0",
    "s": "BTC",
    "t": 1793246400000,
    "v": "424.02594"
  },
  {
    "T": 1793253599999,
    "c": "80207.0",
    "h": "80488.0",
    "i": "1h",
    "l": "80204.0",
    "n": 8279,
    "o": "80230.0",
    "s": "BTC",
    "t": 1793250000000,
    "v": "602.25753"
  },
  {
    "T": 1793257199999,
    "c": "79942.0",
    "h": "80259.0",
    "i": "1h",
    "l": "79851.0",
    "n": 7832,
    "o": "80208.0",
    "s": "BTC",
    "t": 1793253600000,
    "v": "668.54822"
  },
  {
    "T": 1793260799999,
    "c": "79913.0",
    "h": "79963.0",
    "i": "1h",
    "l": "79843.0",
    "n": 2420,
    "o": "79943.0",
    "s": "BTC",
    "t": 1793257200000,
    "v": "155.46062"
  }
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are both time bounds required?
Yes. Supply req.startTime and req.endTime as millisecond integers with req.coin and req.interval.

### Which intervals can I use?
Use one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w or 1M. The capitalization distinguishes minute and month intervals.

### How do I identify a HIP-3 market?
Use its DEX-prefixed coin name, such as xyz:XYZ100. Keep the coin identifier rather than substituting a display label.

### How should I read the compact fields?
t and T identify candle times; o, h, l and c are prices, v is volume, and n is the reported trade count. Keep decimal strings precise when charting.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-candle-snapshot/0b15d273-e98f-4f23-9519-5e53f00830e4/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
