Configuration
Configure HTTP pricing clients and providers
Bitfinex HTTP Client
import { BitfinexPricingClient } from '@tetherto/wdk-pricing-bitfinex-http'
// Create the client (no options needed)
const client = new BitfinexPricingClient()Current Price
const price = await client.getCurrentPrice('BTC', 'USD')Historical Series
Downscales long histories to ≤ 100 points.
const series = await client.getHistoricalPrice({
from: 'BTC',
to: 'USD',
start: 1709906400000, // optional (ms)
end: 1709913600000 // optional (ms)
})Provider Integration
Works with @tetherto/wdk-pricing-provider as a PricingClient implementation.
Need Help?
Last updated
Was this helpful?

