Shortcodes allow you to display stock or ETF information & enable transactions directly on your website. It's as simple as copy-pasting a URL or code snippet!
Tickertape shortcode is a mechanism to add stock transactions to existing web pages with ease.
We currently support 4 methods of embedding:
In all of these cases you are required to add our shortcode script to the webpage using the following code:
<script async src="https://www.gateway-tt.in/assets/embed.js"></script>
The script exposes a method window.scEmbedController.load(). You need to call this method after your components are mounted to the DOM. In case of React, while using snippets from the dashboard, you need to add the snippet as dangerouslySetInnerHTML.
This method is similar to the one above. It adds an onClick handler to existing clickables (like buttons, anchors).
For the card to render, check whether -