JSPM

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

A Library to obtain exchange prices

Package Exports

  • @valora/exchanges
  • @valora/exchanges/dist/index.js

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()

Publish to npmjs

Update the version on package.json and then:

yarn build
npm publish