New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@valora/exchanges

Package Overview
Dependencies
Maintainers
6
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@valora/exchanges

A Library to obtain exchange prices

2.0.2
latest
Source
npm
Version published
Weekly downloads
2
100%
Maintainers
6
Weekly downloads
 
Created
Source

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

Keywords

exchange

FAQs

Package last updated on 05 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts