@exodus/pricing
v1.6.0
Published
Module for tracking pricing data
Downloads
10,916
Readme
@exodus/pricing
This feature expose API to fetch asset prices and other market data.
Usage
This feature is designed to be used together with @exodus/headless
. See Using the SDK for more details.
By default, it uses remote config to get exodus server url, but you can override it via config:
pricing({
pricingServerPath: 'infrastructure.price-server.server', // path to remove config prop
defaultPricingServerUrl: 'https://pricing-s.a.exodus.io', // if remote config not available
})
API Side
exodus.pricing.currentPrice
exodus.pricing.ticker
... see api types
Play with it
- Open the playground at https://exodus-hydra.pages.dev/features/pricing