@ exodus/ 定价
这一特征使API能够获取资产价格和其他市场数据.
使用量
此特性设计为与 @exodus/headless。见 使用 SDK 更多细节.
默认情况下,它使用远程配置来获取出走服务器 URL,但您可以通过配置来覆盖它:
pricing({
pricingServerPath: 'infrastructure.price-server.server', // path to remove config prop
defaultPricingServerUrl: 'https://pricing-s.a.exodus-int.com', // if remote config not available
})
API 边
exodus.pricing.currentPrice
exodus.pricing.ticker
exodus.pricing.realTimePrice
...见api 类型