Candles Uniswap V2 Pairs DEX FREE
With this module, you can retrieve JSON data regarding the trading pairs created on Uniswap. It allows you to obtain OHLC (Open, High, Low, Close) candlestick data for intervals of 12 hours and any other timeframes you desire. This data will prove invaluable for creating charts and visualizations using libraries like TradingView and other similar resources.
Installation
Install using npm:
npm install uniswapdexcandles --save
Usage
Require library
import { getUniswapCandles } from 'uniswapdexcandles'
(async () => {
const result = await getUniswapCandles('0x8390a1da07e376ef7add4be859ba74fb83aa02d5',
'0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', '720');
console.log(result);
})();
DEXI