Financial charts using data from Uniswap and other DEXs.
npm install uniswap-tradingview
<div id="uniswap_tradingview_chart"></div>
import { UniswapTradingview, Dex } from 'uniswap-tradingview';
const chart = new UniswapTradingview({dex: Dex.UNISWAP});
const pairAddress = '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11';
await chart.createChart('uniswap_tradingview_chart', { width: 400, height: 300 }, pairAddress, '1m', 'LINE');
import { UniswapTradingview, Dex } from 'uniswap-tradingview';
const chart = new UniswapTradingview({dex: Dex.UNISWAP});
const pairAddress = '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11';
await chart.createChart('uniswap_tradingview_chart', { width: 400, height: 300 }, pairAddress, '1w', 'CANDLE');
import { UniswapTradingview, Dex } from 'uniswap-tradingview';
const chart = new UniswapTradingview({dex: Dex.UNISWAP});
const pairAddress = '0xa478c2975ab1ea89e8196811f51a7b7ade33eb11';
await chart.createChart('uniswap_tradingview_chart', { width: 400, height: 300 }, pairAddress, '1m', 'LINE');