Bitcoin Forum
November 07, 2024, 07:50:24 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can Someone Help ME  (Read 288 times)
judithmcb94 (OP)
Newbie
*
Offline Offline

Activity: 67
Merit: 0


View Profile
May 10, 2017, 09:34:12 PM
 #1

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
couture
Full Member
***
Offline Offline

Activity: 126
Merit: 100



View Profile
May 10, 2017, 10:01:00 PM
 #2

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.


 Roll Eyes
blockrev
Newbie
*
Offline Offline

Activity: 57
Merit: 0


View Profile WWW
May 10, 2017, 10:08:41 PM
 #3

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/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!