Alternative to embeding TradingView coin price charts on HollaEx

I have an exchange built with HollaEx and got my token listed and everything is going well so far. I am currently working on a home page using wordpress separately for my project and would like to embed a chart for my token to the wordpress site. I need it to display the price of the token over the last 90 days. I played with tradingview but it seems too complicated and unnecessary for this. Is there any other way I can embed and/or share simpler charts without getting into major engineering?

1 Like

I made a simple embedded chart script in vanilla JS and html. It is using chartjs library and it should be easy to drop it as html to your wordpress. Just make sure chart.js and moment scripts are added like how I added them in the <head> tag.

The code gets the chart data for BTC/USDT from the HollaEx API (in your case I believe you should change the URL and the market to your token) between now and 90 days ago with daily resolution. It then populates the data in chartjs. Hope it helps!

	<script src=""> </script>
	<script src=""></script>
	<canvas id="myChart" style="width:100%;max-width:700px"></canvas>


		(async() => {
			const days = 90;

			const response = await fetch(`${moment().subtract(days, 'days').unix()}&to=${moment().unix()}`);

			// Storing data in form of JSON
			var data = await response.json();

			let xValues = [];
			let yValues = [];

			data.forEach(d => {


			var myChart = new Chart('myChart', {
				type: 'line',
				data: {
					labels: xValues,
					datasets: [{
						fill: false,
						borderColor: "rgba(255,0,0,0.5)",
						data: yValues



Created HTML file and tested it (see above), it is what Iā€™m looking for!