Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: judithmcb94 on May 10, 2017, 09:34:12 PM



Title: Can Someone Help ME
Post by: judithmcb94 on May 10, 2017, 09:34:12 PM
I want to embed an alt coin ticket on my Wordpress website.  How do I do that? I don't understand API's or whatever

like I want one just like they have on coinmarketcap.com


Title: Re: Can Someone Help ME
Post by: couture on May 10, 2017, 10:01:00 PM
You need a source for the data

And then a segment of code to insert as a widget such as the following:

<!-- Start -->
<script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script>
<script type="text/javascript">
new TradingView.widget({
  "width": 980,
  "height": 610,
  "symbol": "NASDAQ:AAPL",
  "interval": "D",
  "timezone": "Etc/UTC",
  "style": "1",
  "locale": "en",
  "toolbar_bg": "#f1f3f6",
  "enable_publishing": false,
  "allow_symbol_change": true,
  "hideideas": true
});
</script>
<!-- Finish -->

Note that this code has a javascript source from which it pulls the data. The symbol selection is then requesting specific data from the set provided; in this case NASDAQ:AAPL...
The rest of the code is just adjustments to the view properties of that data; height, width, timezone etc


Looking at the coinmarketcap source code, the source of their data is coming from their own website here: https://coinmarketcap.com/currencies/bitcoin/#charts

They then transform this large chart into a mini chart using some kind of sparkline: https://en.wikipedia.org/wiki/Sparkline



This probably hasnt helped at all, but you need to read up on how to write a small source and inject code; pulling data from coinmarketcap (i do not recommend without written permission) and relaying it to your site.


 ::)


Title: Re: Can Someone Help ME
Post by: blockrev on May 10, 2017, 10:08:41 PM
You might also want to have a look at these free Wordpress plugins that you can easily integrate a ticker with prices of various cryptocurrencies. You can also change the look of them via simple CSS code.

https://en-au.wordpress.org/plugins/bitcoin-exchange-rate-ticker/
https://en-au.wordpress.org/plugins/cryptocurrency-ticker/
https://en-au.wordpress.org/plugins/cryptocurrency-prices/