WDK logoWDK documentation

Price Rates

Unified pricing tools for fetching current and historical asset prices

Pricing utilities for WDK apps. Includes HTTP clients and providers to retrieve current and historical prices from supported services.

Powered by @tetherto/wdk-pricing-bitfinex-http, compatible with @tetherto/wdk-pricing-provider, and usable with @tetherto/wdk-pricing-coingecko-http as a CoinGecko fallback client.

Features

  • Current Prices: Fetch latest price for one pair or many pairs in a batch (e.g., BTC/USD)
  • Direct Bitfinex Quotes: Return prices only for pairs Bitfinex can quote directly; unsupported pairs return null
  • Historical Series: Retrieve historical price series; long histories optionally downscaled to ≤ 100 points
  • Provider Compatibility: Works with @tetherto/wdk-pricing-provider
  • CoinGecko Fallback: Use @tetherto/wdk-pricing-coingecko-http when you want a CoinGecko-backed pricing client
  • Lightweight HTTP Client: Minimal dependencies; easy to integrate

Why this matters

  • Consistent pricing is required for balance valuations, charts, and quotes
  • A unified client reduces integration time and data handling errors
  • Unsupported pairs return null from the pricing client so applications can show a clear unavailable-price state

Need Help?

On this page