Pricing Modules Overview
Explore WDK pricing modules for current prices, price data, and historical price series.
WDK pricing modules provide PricingClient implementations for external market data sources. Use them directly when you need raw provider results, or pass them into PricingProvider when you want caching and ordered failover across multiple clients.
Pricing Client Modules
| Module | Provider | Status | Documentation |
|---|---|---|---|
@tetherto/wdk-pricing-bitfinex-http | Bitfinex | Ready | Price Rates |
@tetherto/wdk-pricing-coingecko-http | CoinGecko | Ready | Documentation |
Provider Compatibility
Pricing clients implement the shared PricingClient surface:
getCurrentPrice(from, to)getMultiCurrentPrices(list)getMultiPriceData(list)getHistoricalPrice(from, to, opts?)
@tetherto/wdk-pricing-provider supplies the PricingProvider wrapper. Install a client package for the data source you want, then pass that client to the wrapper for in-memory caching. Pass an ordered array of clients to enable failover. See the CoinGecko setup for an installation example.
Next Steps
CoinGecko HTTP
Fetch current and historical prices through CoinGecko.
Price Rates
Use Bitfinex and the shared pricing provider.
API Reference
Review the shared wrapper and its cache options.