Spiral Stake Prices API

The Prices API from Spiral Stake — 2 operation(s) for prices.

GitHub OpenAPI

Operations 2

GET /v1/prices/chart CoinGecko price chart (on-demand proxy) #
GET /v1/prices/ohlcv DEX OHLCV price chart (on-demand GeckoTerminal proxy, 30s cache) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spiralstake-xyz:spiralstake-xyz-prices-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spiralstake-xyz-prices-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spiral Stake — Read API (v1) Prices API
  version: 0.1.0
  description: Read-only composition authority for Spiral Stake strategy data. Serves the frozen /strategies contract (agents + app) plus the full app read surface. All numbers are composed from warm cache; a stale/failed upstream serves last-good with a visible stale age.
servers:
- url: https://api.spiralstake.xyz
  description: Production
- url: http://localhost:5001
  description: Local
tags:
- name: Prices
paths:
  /v1/prices/chart:
    get:
      summary: CoinGecko price chart (on-demand proxy)
      parameters:
      - name: coinId
        in: query
        required: true
        schema:
          type: string
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 7
      - name: currency
        in: query
        required: false
        schema:
          type: string
          default: usd
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '503':
          description: Upstream unavailable
      tags:
      - Prices
      operationId: getV1PricesChart
      x-operation-id-source: derived
  /v1/prices/ohlcv:
    get:
      summary: DEX OHLCV price chart (on-demand GeckoTerminal proxy, 30s cache)
      description: 'USD candles from the deepest DEX pool holding `token`, for collateral with no CoinGecko/TradingView chart. `stale: true` means the upstream failed and the previous candles (≤10 min old) are being served.'
      parameters:
      - name: chainId
        in: query
        required: false
        schema:
          type: integer
      - name: token
        in: query
        required: true
        schema:
          type: string
          pattern: ^0x[0-9a-fA-F]{40}$
      - name: timeframe
        in: query
        required: false
        schema:
          type: string
          enum:
          - minute
          - hour
          - day
          default: hour
      - name: aggregate
        in: query
        required: false
        schema:
          type: integer
          default: 1
        description: 'minute: 1|5|15, hour: 1|4|12, day: 1'
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 168
          minimum: 1
          maximum: 1000
      responses:
        '200':
          description: OK
        '400':
          description: Bad request
        '404':
          description: No DEX pool indexed for the token
        '503':
          description: Upstream unavailable
      tags:
      - Prices
      operationId: getV1PricesOhlcv
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Partner API key: `Authorization: Bearer <key>`.'