# Prediction Markets and Derivatives — Get volume chart with YES/NO breakdown for a market

Get Blockrun Get volume chart with YES/NO breakdown for a market data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as end_time, granularity, start_time, and retrieve structured data including returned no volume field, timestamp, returned total volume field, returned trades count field, and returned yes volume field for market reference and account inspection, and integration reference.

Documentation: https://openany.si/blockrun/blockrun-prediction-markets-and-derivatives-get-volume-chart-with-yes-no-breakdown-for-a-market/906c83c7-f177-4d05-86b5-1fdeadde18b4/
API ID: 906c83c7-f177-4d05-86b5-1fdeadde18b4
Provider: blockrun
Contract revision: 5
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/volume-chart/{condition_id}
Page update time: 2026-12-03T02:49:53.540Z
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:52.790Z. 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 volume chart with YES/NO breakdown for a market API

Retrieve volume chart with YES/NO breakdown for a market with the BlockRun API. Provide condition\_id in path, end\_time in query, start\_time 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 |
| --- | --- |
| `data[].no_volume` | Returned no volume field |
| `data[].timestamp` | Timestamp |
| `data[].total_volume` | Returned total volume field |
| `data[].trades_count` | Returned trades count field |
| `data[].yes_volume` | Returned yes volume field |
| `condition_id` | Returned condition id field |
| `end_time` | Returned end time field |
| `granularity` | Returned granularity field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Prediction Markets and Derivatives — Get volume chart with YES/NO breakdown for a market 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": {
        "condition_id": {
          "type": "string",
          "description": "Prediction-market condition identifier; not interchangeable with a token_id, event ID or ticker."
        }
      },
      "required": [
        "condition_id"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "end_time": {
          "type": "integer",
          "description": "Unix timestamp (seconds) for end of time range",
          "minimum": 0
        },
        "granularity": {
          "type": "string",
          "description": "Time granularity: hour, day, or week",
          "enum": [
            "hour",
            "day",
            "week"
          ]
        },
        "start_time": {
          "type": "integer",
          "description": "Unix timestamp (seconds) for start of time range",
          "minimum": 0
        }
      },
      "required": [
        "end_time",
        "start_time"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "condition_id": {
      "type": "string"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "no_volume": {
            "type": "number"
          },
          "timestamp": {
            "type": "integer"
          },
          "total_volume": {
            "type": "number"
          },
          "trades_count": {
            "type": "integer"
          },
          "yes_volume": {
            "type": "number"
          }
        }
      }
    },
    "end_time": {
      "type": "integer"
    },
    "granularity": {
      "type": "string"
    },
    "start_time": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/blockrun/v1/pm/polymarket/volume-chart/0x54a1bfbab3a9ebd2761ec2bc5f06b6c7b03aa06eae0de40f25c2bcfec1723673?end_time=1793450320&granularity=hour&start_time=1793448000' \
  -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
{
  "condition_id": "0x54a1bfbab3a9ebd2761ec2bc5f06b6c7b03aa06eae0de40f25c2bcfec1723673",
  "data": [
    {
      "no_volume": 839.0212,
      "timestamp": 1793448000,
      "total_volume": 1747.9608370000003,
      "trades_count": 26,
      "yes_volume": 908.9396370000001
    }
  ],
  "end_time": 1793448000,
  "granularity": "hour",
  "start_time": 1793448000
}
```

## 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 condition_id in path (string); end_time in query (integer); start_time in query (integer). Keep identifiers and URLs in the formats documented for this implementation.

### Which pagination or result-size inputs are exposed?
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 granularity?
The selected schema accepts hour, day, week. 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-volume-chart-with-yes-no-breakdown-for-a-market/906c83c7-f177-4d05-86b5-1fdeadde18b4/

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