# Prediction Markets and Derivatives — Get OHLCV candlestick data for a Binance trading pair

Get Blockrun Get OHLCV candlestick data for a Binance trading pair data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as end_time, interval, limit, and retrieve structured data including returned candles field, returned interval field, and returned symbol field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/blockrun/blockrun-prediction-markets-and-derivatives-get-ohlcv-candlestick-data-for-a-binance-trading-pai/3144ff1c-b69d-4220-ad20-3afb3fbe4d19/
API ID: 3144ff1c-b69d-4220-ad20-3afb3fbe4d19
Provider: blockrun
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/pm/binance/candles/{symbol}
Page update time: 2026-12-03T02:49:55.659Z
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.0075 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:55.159Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "7500",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Blockrun Get OHLCV candlestick data for a Binance trading pair API

Retrieve OHLCV candlestick data for a Binance trading pair with the BlockRun API. Provide symbol in path. 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 |
| --- | --- |
| `candles` | Returned candles field |
| `interval` | Returned interval field |
| `symbol` | Returned symbol field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Prediction Markets and Derivatives — Get OHLCV candlestick data for a Binance trading pair 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": "BTCUSDT`, `ETHUSDT`, `SOLUSDT`, or `XRPUSDT",
          "enum": [
            "BTCUSDT",
            "ETHUSDT",
            "SOLUSDT",
            "XRPUSDT"
          ]
        }
      },
      "required": [
        "symbol"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "end_time": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Unix timestamp (seconds)",
          "minimum": 0
        },
        "interval": {
          "type": "string",
          "description": "1s`, `1m`, `5m`, `15m`, `1h`, `4h`, `1d` (default `1m`)",
          "enum": [
            "1s",
            "1m",
            "5m",
            "15m",
            "1h",
            "4h",
            "1d"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Max candles (1-1500, default 500)",
          "minimum": 1,
          "maximum": 1500
        },
        "start_time": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Unix timestamp (seconds)",
          "minimum": 0
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "candles": {
      "type": "array",
      "items": {}
    },
    "interval": {
      "type": "string"
    },
    "symbol": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/binance/candles/BTCUSDT?end_time=1793447447&interval=1m&limit=1&start_time=1793361047' \
  -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
{
  "candles": [],
  "interval": "1m",
  "symbol": "BTCUSDT"
}
```

## 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). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
limit is integer with minimum 1 and maximum 1500; start_time is integer with minimum 0. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.

### Which values can I use for symbol?
The selected schema accepts BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT. 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.

### 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-prediction-markets-and-derivatives-get-ohlcv-candlestick-data-for-a-binance-trading-pai/3144ff1c-b69d-4220-ad20-3afb3fbe4d19/

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