# getRuneFloorPrices

**Identifier:** `xverse_getRuneFloorPrices`

**Provider:** [Xverse](https://kirha.com/providers/xverse.md)

Get historical floor price data for a specific Rune. Long ranges are evenly downsampled to at most 150 points (dataPoints is the upstream count)

## Run it with the CLI

```bash
kirha tools run xverse_getRuneFloorPrices \
  --input '{
    "runeName": "<runeName>",
    "fromTimestamp": "2024-08-29T03:09:35.236Z"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "xverse_getRuneFloorPrices",
  "input": {
    "runeName": "<runeName>",
    "fromTimestamp": "2024-08-29T03:09:35.236Z"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "fromTimestamp": {
      "description": "ISO timestamp (e.g., 2024-08-29T03:09:35.236Z), at most 1 year ago",
      "type": "string"
    },
    "runeName": {
      "description": "Rune name or ID",
      "type": "string"
    },
    "toTimestamp": {
      "description": "ISO timestamp",
      "type": "string"
    }
  },
  "required": [
    "runeName",
    "fromTimestamp"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "dataPoints": {
      "type": "number"
    },
    "priceHistory": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "marketplace": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "valueInSats": {
            "type": "string"
          },
          "valueInUsd": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "priceHistory",
    "dataPoints"
  ],
  "type": "object"
}
```

-----

[All Xverse tools](https://kirha.com/providers/xverse.md) · [< Back to tools list](https://kirha.com/tools.md)