Skip to content

Aspire Themes

Set up your stock ticker

Connect Cloudflare, then add your Finnhub API key. The key stays in Cloudflare and is never added to Ghost.

  1. 1 Connect CloudflareAuthorize your account.
  2. 2 Add your site and keyChoose an account and add your Finnhub key.
  3. 3 Add the Ghost snippetCopy one line into Ghost.

Step 1 of 3

Connect Cloudflare

Cloudflare will ask you to approve the connection, then return you here.

Before you start, you need:

  1. A Cloudflare account.
  2. A Finnhub API key.

You do not need GitHub.

Use stock quotes in your theme

In Taba or Siwa, write a symbol such as $AAPL in a post paragraph to show an inline stock quote. Use uppercase US stock symbols with up to five letters.

In Taba, you can also add an internal tag such as #stock-AAPL to a post. Taba shows its stock ticker in the post header and supported post cards.

How this setup protects your key

The setup creates an Aspire Gateway Worker in your Cloudflare account. Your Finnhub API key is stored there as a secret. Your Ghost site only uses the Worker address, so the key is not included in its code.

Add another site or update your API key

Run this setup again using the same Cloudflare account. It adds your website address and keeps your previously connected sites working. All connected sites use the Finnhub key you enter. If you use a different Cloudflare account, replace the snippet in Ghost with the new one.

If the ticker does not appear

  1. Check that the snippet is in Settings > Advanced > Code Injection under Site Header.
  2. Check that the post has a symbol such as $AAPL in a paragraph. For Taba’s post and card tickers, check the internal tag, such as #stock-AAPL.
  3. Refresh the page. If the problem continues, contact Aspire Themes with your site address and the stock symbol you used.

Need help with setup? Contact Aspire Themes.