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