FMP

FMP

stock prices

stock widget

stock analysis

tickers widgets

wix website

stock tickers

tickers extract

create widget

api endpoint

stock quotes

stock live

live quotes

How to Create a Stock Price Widget in Wix using FMP’s Stock Quote API endpoint.

-

twitterlinkedinfacebook
blog post cover photo

Image credit: stock price widget

Are you building a finance website or blog using Wix, and want to show real-time stock prices like Apple, Tesla, or Google? In this step-by-step guide, you'll learn how to create a scrolling stock ticker widget in Wix using FMP's Stock Quote API endpoint, without exposing your secret API key to the public.

Even if you don't have coding experience, don't worry — I'll walk you through everything.

What You Will Learn:

  • How to get real-time stock data

  • How to store your API key safely in Wix

  • How to embed a custom stock ticker in your website

  • How to fetch data securely without showing your API key

What You Need

Step 1: Get a Free API Key from FMP

  1. Register with FMP

  2. After signing in, go to your Dashboard

  3. Copy your API Key — you'll use this in Wix, but don't share it publicly

Step 2: Store the API Key in Wix Secrets Manager

This step keeps your key hidden from the public.

  1. In Wix Editor, turn on Dev Mode as shown in the below image

  2. Click on BackendSecrets Manager

  3. Click + New Secret

    • Name: FMP_API_KEY

    • Value: paste your real API key here

  4. Click Save

WIX secret manager store your API key

Your API key is now safe. Only Wix backend code can access it.

Step 3: Add Secure Code in Backend (news.jsw)

  1. In the Backend section, right-click → Add New Web Module as shown in the below image

  2. Name it news.jsw

  3. Paste this code inside:

This code fetches stock prices securely using your hidden API key.

Step 4: Add HTML Embed Widget to Your Wix Page

  1. Go to the page where you want the stock ticker

  2. Click Add (+) → Embed CodeHTML Embed

  3. Paste this HTML code (you can style it however you like):

Step 5: Add Page Code to Communicate With Backend

  1. Click Page Code in the editor

  2. Paste this code:

Congratulations! You've just created a custom stock ticker widget in Wix that:

  • Shows live stock prices

  • Works beautifully on desktop and mobile

  • Keeps your API key secure

This is how it should look:

With this simple and secure method, you can now display real-time stock prices on your Wix website without exposing your API key. It's a great way to enhance your site and provide live financial insights to your visitors.

Other Blogs

Nov 22, 2024 5:08 AM - Parth Sanghvi

Fundamental Analysis: Principles, Types, and How to Use It

Fundamental analysis is one of the most essential tools for investors and analysts alike, helping them assess the intrinsic value of a stock, company, or even an entire market. It focuses on the financial health and economic position of a company, often using key data such as earnings, expenses, ass...

blog post title

Dec 22, 2024 7:59 AM - Sanzhi Kobzhan

Two great Software Platform Stocks Similar to Palantir (PLTR)

When it comes to cutting-edge software and data analytics, Palantir Technologies (NYSE: PLTR) is often front and center. But for many investors, it’s important to consider alternative or complementary stocks in the same sector that may offer robust growth potential. As PLTR looks expensive (overvalu...

blog post title

Dec 30, 2024 4:32 AM - Sanzhi Kobzhan

Walk Me Through a DCF: A Simple Guide to Discounted Cash Flow Valuation

Are you curious about how professional investors decide whether a stock might be one of the best undervalued stocks to buy now? One of the most popular tools is the Discounted Cash Flow (DCF) model. In this article, I’ll walk you through a DCF step by step. By the end, you’ll see how the Advanced DC...

blog post title