Skip to content

The crypto market price inserter is provided by executium as a plugin. This plugin allows you to add the javascript CDN to your page and it will find all occurences of crypto related words such as bitcoin and append a price to them.

License

Notifications You must be signed in to change notification settings

executium/crypto-market-price-inserter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crypto Market Price Inserter

Price inserter The crypto market price inserter is provided by executium as a plugin. This plugin allows you to add the javascript CDN to your page and it will find all occurences of crypto related words such as bitcoin and append a price to them.

Ethereum converted on google

What words are currently supported?

We currently support the followin words::

  • Bitcoin
  • Ethereum
  • XRP
  • Ripple
  • Monero
  • Litecoin
  • XTZ
  • Tezos

All prices quoted are that of USDT.

Wordpress plugin

If you are looking to get started right away with your wordpress installation, there is a wordpress plugin available for the crypto inserter here. It is easy to install and starts working on installation.

Hosted Installation

Simply insert the following code into the foot of your page.

<script src="https://cdn.executium.com/media/dist/crypto-market-price-inserter/min.js"></script>

Live Websocket for Cryptocurrency Market Price

The plugin allows you to simply add the javascript at the foot of your page and then it will do the rest of the work. It will connect to the executium websocket network and stream you live price data to your page.

Stopping an area from converting to price

If you do not want an area to convert then add nopriceinsert in a class. All children of that class will then not convert. For example if you didn't want an entire page to convert you could set it as <body class="nopriceinsert"> then the entire page would not convert.

How does it convert?

The conversion happens based on a pre-arranged array. An example of that array is as follows:

[{phrase:"Bitcoin",code:"bids-binance-btcusdt",icon:"btc"},{phrase:"Ethereum",code:"bids-binance-ethusdt",icon:"eth"},{phrase:"XRP",code:"bids-binance-xrpusdt",icon:"xrp"},{phrase:"Ripple",code:"bids-binance-xrpusdt",icon:"xrp"},{phrase:"Monero",code:"bids-binance-xmrusdt",icon:"xmr"},{phrase:"Litecoin",code:"bids-binance-ltcusdt",icon:"ltc"},{phrase:"XTZ",code:"bids-binance-xtzusdt",icon:"xtz"},{phrase:"Tezos",code:"bids-binance-xtzusdt",icon:"xtz"}]

Ths object is currently not editable. If you have suggestions on what you would like to see included then please let us know so we can consider it.

Content Delivery Network

The content delivery network is provided by executium ltd and is subject to change. Images are provided via the network and are subject to change. An example of a cdn image link is as follows:

https://cdn.executium.com/media/brands/icons/usdt.png
https://cdn.executium.com/media/brands/icons/btc.png
https://cdn.executium.com/media/brands/icons/eth.png
https://cdn.executium.com/media/brands/icons/xrp.png
https://cdn.executium.com/media/brands/icons/xmr.png
https://cdn.executium.com/media/brands/icons/ltc.png
https://cdn.executium.com/media/brands/icons/xtz.png

tether logo bitcoin logo eth logo xrp logo link logo link logo link logo

Try it in devtools

Visit a website, open devtools and then in console paste the following line:

var my = document.createElement('script');my.setAttribute('src','https://cdn.executium.com/media/dist/crypto-market-price-inserter/min.js');document.head.appendChild(my);

The above will allow you to load the crypto inserter into the page manually to see how it works.

License

MIT License

Copyright (c) 2020 executium ltd

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

The crypto market price inserter is provided by executium as a plugin. This plugin allows you to add the javascript CDN to your page and it will find all occurences of crypto related words such as bitcoin and append a price to them.

Topics

Resources

License

Stars

Watchers

Forks