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/exchangesOn 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