Skip to content

๐Ÿ“Š Financial charts using data from Uniswap and other DEXs.

Notifications You must be signed in to change notification settings

ArkerLabs/uniswap-tradingview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฆ„ Uniswap Tradingview

Financial charts using data from Uniswap and other DEXs.

๐Ÿ›  Installation

npm install uniswap-tradingview

Usage

<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');

Examples

Candle Chart

Example 1

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');

Line chart

Example 2

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');

About

๐Ÿ“Š Financial charts using data from Uniswap and other DEXs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published