# getRuneTopGainersLosers

**Identifier:** `xverse_getRuneTopGainersLosers`

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

Get top Rune gainers and losers by price change

## Run it with the CLI

```bash
kirha tools run xverse_getRuneTopGainersLosers \
  --input '{}'
```

`--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_getRuneTopGainersLosers",
  "input": {}
}'
```

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": {
    "timePeriod": {
      "default": "24h",
      "description": "Time period for price change (e.g., 24h, 7d, 30d)",
      "type": "string"
    }
  },
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "topGainers": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "currentPriceSats": {
            "type": "string"
          },
          "pctPriceChange": {
            "type": "number"
          },
          "previousPriceSats": {
            "type": "string"
          },
          "runeId": {
            "type": "string"
          }
        },
        "required": [
          "runeId"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "topLosers": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "currentPriceSats": {
            "type": "string"
          },
          "pctPriceChange": {
            "type": "number"
          },
          "previousPriceSats": {
            "type": "string"
          },
          "runeId": {
            "type": "string"
          }
        },
        "required": [
          "runeId"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "topGainers",
    "topLosers"
  ],
  "type": "object"
}
```

-----

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