Ankr · Arazzo Workflow

Ankr Token Price And History

Version 1.0.0

Read a token's current price, then its historical price series.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

ankr

Workflows

token-price-and-history
Read a token's current price and then its historical price series.
Retrieves the current USD price for a token contract and then the historical price series for the same token over the supplied time window.
2 steps inputs: blockchain, contractAddress, fromTimestamp, interval, limit, toTimestamp outputs: history, price
1
getPrice
Retrieve the current USD price for the token contract.
2
getPriceHistory
Retrieve the historical price series for the same token over the supplied time window.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Ankr Token Price And History
  summary: Read a token's current price, then its historical price series.
  description: >-
    Prices a token by first reading its current USD price with ankr_getTokenPrice,
    then pulling the historical price series over a time window with
    ankr_getTokenPriceHistory so a caller can place the current price in context.
    Each step is written out inline as a JSON-RPC call so the flow can be read and
    executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: tokenApi
  url: ../openapi/ankr-token-api-openapi.yml
  type: openapi
workflows:
- workflowId: token-price-and-history
  summary: Read a token's current price and then its historical price series.
  description: >-
    Retrieves the current USD price for a token contract and then the historical
    price series for the same token over the supplied time window.
  inputs:
    type: object
    required:
    - blockchain
    - contractAddress
    properties:
      blockchain:
        type: string
        description: The chain the token contract lives on.
      contractAddress:
        type: string
        description: The token contract address to price.
      fromTimestamp:
        type: integer
        description: Start of the historical window (unix seconds).
      toTimestamp:
        type: integer
        description: End of the historical window (unix seconds).
      interval:
        type: integer
        description: Sampling interval for the historical series (seconds).
      limit:
        type: integer
        description: Maximum number of historical data points to return.
  steps:
  - stepId: getPrice
    description: >-
      Retrieve the current USD price for the token contract.
    operationId: ankrGetTokenPrice
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getTokenPrice
        params:
          blockchain: $inputs.blockchain
          contractAddress: $inputs.contractAddress
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      price: $response.body#/result
  - stepId: getPriceHistory
    description: >-
      Retrieve the historical price series for the same token over the supplied
      time window.
    operationId: ankrGetTokenPriceHistory
    requestBody:
      contentType: application/json
      payload:
        jsonrpc: "2.0"
        id: 1
        method: ankr_getTokenPriceHistory
        params:
          blockchain: $inputs.blockchain
          contractAddress: $inputs.contractAddress
          fromTimestamp: $inputs.fromTimestamp
          toTimestamp: $inputs.toTimestamp
          interval: $inputs.interval
          limit: $inputs.limit
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      history: $response.body#/result
  outputs:
    price: $steps.getPrice.outputs.price
    history: $steps.getPriceHistory.outputs.history

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/ankr-token-price-and-history-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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