# Market Data — Crypto OHLC History

Get Blockrun Market Data — Crypto OHLC History data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as from, resolution, to, and retrieve structured data including returned c field, returned h field, returned l field, returned o field, and returned t field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/blockrun/blockrun-market-data-crypto-ohlc-history/c8db41ce-57b0-435a-a662-f7dd470c4e92/
API ID: c8db41ce-57b0-435a-a662-f7dd470c4e92
Provider: blockrun
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/api/v1/crypto/history/{symbol}
Page update time: 2026-12-03T02:49:51.750Z
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: none
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:51.078Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockrun Market Data — Crypto OHLC History API

Retrieve market Data Crypto OHLC History with the BlockRun API. Provide symbol in path, from in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Market reference and account inspection**: Keep market, asset and account identities distinct when interpreting records.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `bars[].c` | Returned c field |
| `bars[].h` | Returned h field |
| `bars[].l` | Returned l field |
| `bars[].o` | Returned o field |
| `bars[].t` | Returned t field |
| `bars[].v` | Returned v field |
| `category` | Returned category field |
| `delayed` | Returned delayed field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Market Data — Crypto OHLC History 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": {
        "symbol": {
          "type": "string",
          "description": "Asset symbol in the format verified for this operation. List coverage may exceed free price coverage; not every listed symbol can be queried."
        }
      },
      "required": [
        "symbol"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "from": {
          "type": "integer",
          "description": "History start time in Unix seconds, not milliseconds."
        },
        "resolution": {
          "type": "string",
          "description": "Bar resolution. Common values: 1, 5, 15, 60, 240, D, W.",
          "enum": [
            "1",
            "5",
            "15",
            "60",
            "240",
            "D",
            "W",
            "M"
          ]
        },
        "session": {
          "type": "string",
          "description": "The web documentation and OpenAPI enums conflict. Free non-stock examples omit this parameter rather than choose an unverified enum."
        },
        "to": {
          "type": "integer",
          "description": "End unix timestamp (seconds). Defaults to now."
        }
      },
      "required": [
        "from"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "bars": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "c": {
            "type": "number"
          },
          "h": {
            "type": "number"
          },
          "l": {
            "type": "number"
          },
          "o": {
            "type": "number"
          },
          "t": {
            "type": "integer"
          },
          "v": {
            "type": "number"
          }
        }
      }
    },
    "category": {
      "type": "string"
    },
    "delayed": {
      "type": "boolean"
    },
    "free": {
      "type": "boolean"
    },
    "from": {
      "type": "integer"
    },
    "note": {
      "type": "string"
    },
    "realtime": {
      "type": "boolean"
    },
    "resolution": {
      "type": "string"
    },
    "source": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    },
    "to": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockrun/api/v1/crypto/history/BTC-USD?from=1793232000&resolution=D&to=1793404800' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "bars": [
    {
      "c": 77998.5,
      "h": 81870.5,
      "l": 77899.6,
      "o": 81304.9,
      "t": 1793232000,
      "v": 76.47245
    },
    {
      "c": 77186.4,
      "h": 78691.6,
      "l": 76206.6,
      "o": 78024,
      "t": 1793318400,
      "v": 75.57671
    }
  ],
  "category": "crypto",
  "delayed": true,
  "free": true,
  "from": 1793232000,
  "note": "Daily close, not realtime. Realtime feeds and full global coverage are available on request — contact us.",
  "realtime": false,
  "resolution": "D",
  "source": "backpack",
  "symbol": "BTC-USD",
  "to": 1793404800
}
```

## 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
### Which inputs identify this request?
Provide symbol in path (string); from in query (integer). Keep identifiers and URLs in the formats documented for this implementation.

### Which values can I use for resolution?
The selected schema accepts 1, 5, 15, 60, 240, D, W, M. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### 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 API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- blockrun: https://openany.si/blockrun/blockrun-market-data-crypto-ohlc-history/c8db41ce-57b0-435a-a662-f7dd470c4e92/

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