JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9
  • Score
    100M100P100Q82988F
  • License Apache-2.0

A Library to obtain exchange prices

Package Exports

  • @valora/exchanges

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@valora/exchanges) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Exchanges library

Usage

On the root of the project run:

yarn add @valora/exchanges

On the code:

import {
  createNewManager,
  ExchangeRateManager,
  PriceByAddress,
  configs,
} from '@valora/exchanges'

const manager = createNewManager(configs.mainnet)
const prices = await manager.calculatecUSDPrices()