@valora/exchanges
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

/@valora/exchanges/

    Package Sidebar

    Install

    npm i @valora/exchanges

    Weekly Downloads

    1

    Version

    2.0.2

    License

    Apache-2.0

    Unpacked Size

    129 kB

    Total Files

    42

    Last publish

    Collaborators

    • satishr
    • valora-bot
    • jeanregisser
    • jh2oman
    • dievazqu
    • jophish
    • caj-valora
    • sbw