Share Price Installation
Share Price Installation
Add the following scripts to your HTML document:
Header Files
Add these CSS files before the closing </head> tag:
<link rel="stylesheet" href="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-main.css">
<link rel="stylesheet" href="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-frontend.css">
Footer Scripts
Add these JavaScript files before the closing </body> tag:
Make sure to replace the __TICKER__ with your site ticker code which should be provided.
<script src="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-main.umd.js"></script>
<script src="https://d1hr1rj5wo6cu6.cloudfront.net/proactive-frontend.js"></script>
<script src="https://__TICKER__.live.irmau.com/site/content/js/proactive-main-config.js"></script>
Required Attribute Changes
After installing the scripts, you need to update the following data attributes in your HTML:
Replace quote API attribute:
data-quoteapi="price"
with
data-proactive="price"
Add decimal precision:
data-decimal="3"
Note: Make sure to test your implementation after making these changes. The decimal attribute controls the number of decimal places displayed for price values.