Skip to main content
POST
/
v1
/
trpc
/
cryptoMarketData.*
tRPC Crypto Market Data API
curl --request POST \
  --url 'https://api.glider.fi/v1/trpc/cryptoMarketData.*' \
  --header 'X-API-KEY: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://docs.glider.fi/llms.txt

Use this file to discover all available pages before exploring further.

The cryptoMarketData.* namespace is available on the public tRPC base endpoint:
  • Base endpoint: POST /v1/trpc
  • Namespace: cryptoMarketData.*
  • Auth: public
  • Upstream: CoinGecko API
  • Server cache: asset-data-sync writes CoinGecko records to the shared market-data KV cache every 10 minutes; platform-api reads that cache and does not call CoinGecko directly.

Procedures

  • cryptoMarketData.getNews
    • Purpose: fetch recent CoinGecko crypto news for the /crypto surface
    • Input:
      • optional limit, 1-20, default 8
    • Upstream endpoint: GET /news
    • Response includes normalized articles, related CoinGecko coin ids, source metadata, and cache metadata
  • cryptoMarketData.getMarketQuotes
    • Purpose: fetch cached USD market quotes by CoinGecko coin id for native crypto symbol pages
    • Input:
      • required coinIds, 1-100 CoinGecko ids
    • Upstream endpoint: GET /coins/markets
    • Response includes USD price, 24-hour percentage change, market cap, volume, market-cap rank, icon metadata, and cache metadata
  • cryptoMarketData.getTrending
    • Purpose: fetch CoinGecko search-trending coins and categories
    • Input:
      • optional limit, 1-20, default 8
    • Upstream endpoint: GET /search/trending
    • Response includes normalized coins, 24-hour USD change where available, category trend metadata, and cache metadata
  • cryptoMarketData.getTopMovers
    • Purpose: fetch CoinGecko top gainers and losers across the top 1000 coins
    • Input:
      • optional limit, 1-20, default 8
    • Upstream endpoint: GET /coins/top_gainers_losers
    • Response includes normalized top gainers and top losers with USD price, 1-hour, 24-hour, and 7-day percentage changes
  • cryptoMarketData.getAssetPlatforms
    • Purpose: fetch CoinGecko asset platforms and Glider CAIP chain mappings
    • Input: none
    • Upstream endpoint: GET /asset_platforms
    • Response includes platform ids, chain identifiers, native coin ids, icons, and Glider-normalized chainNamespace, chainReference, assetNamespace, and caipChainId when the platform is mapped
  • cryptoMarketData.getCoinCategories
    • Purpose: fetch CoinGecko coin taxonomy categories for indexed coins
    • Input: none
    • Upstream endpoint: GET /coins/categories/list
    • Response includes category ids and display names

Runtime Notes

  • CoinGecko API credentials only live in asset-data-sync. Platform-api and browser clients consume cache records.
  • Coin categories come from /coins/categories/list. The GeckoTerminal /onchain/categories surface is a separate onchain DEX taxonomy and is not used for canonical coin taxonomy.
  • Top movers are cached with duration=24h and top_coins=1000.
  • Market quotes are cached for the top 1000 CoinGecko coins by market cap.
  • Empty arrays with configured: true usually mean the cache binding exists but the asset-data-sync refresh has not written a valid record yet.