1.3.2 • Published 9 months ago

@exodus/exodus-pricing-client v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@exodus/exodus-pricing-client

Client for fetching current and historical asset prices.

Usage

To use the client call the factory and pass in required dependencies

import createExodusPricingClient from '@exodus/exodus-pricing-client'

const exodusPricingClient = createExodusPricingClient({
  fetch,
  pricingServerUrlAtom,
})

// Do things
const historical = await exodusPricingClient.historicalPrice({
  assets: ['bitcoin'],
  fiatArray: ['EUR'],
  granularity: 'week',
  limit: 42,
})
const ticker = await exodusPricingClient.ticker({ assets: ['bitcoin'], fiatCurrency: 'EUR' })
const current = await exodusPricingClient.currentPrice({ assets: ['bitcoin'], fiatCurrency: 'EUR' })
1.3.2

9 months ago

1.3.1

10 months ago

1.3.0

11 months ago

1.2.0

2 years ago

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago