NR Stocks

WordPress block plugin

Market charts, right in the editor.

NR Stocks adds stock, forex, and crypto charts to posts and pages. Pick a provider, search a symbol, compare several on one chart, and show the latest quote. Data is fetched and cached on your server, so API keys never reach the browser.

Stock Chart block · Shortcode · REST API · Five data providers

Screenshots

How it looks

The Stock Chart block in the WordPress editor, with symbol search, a live chart preview, and block settings in the sidebar.
The Stock Chart block in the editor: symbol search, live preview, and block settings.
A published post comparing EUR/USD and GBP/USD on one chart, with a legend and a quote panel.
On the site: two symbols compared, with a legend and the latest quotes.
The NR Stocks settings screen with the default provider, API key fields, and cache times.
Settings: default provider, API keys, and cache times.

What it does

Make market context part of your story

Stock Chart block

Search symbols, compare several on one chart, and choose daily, weekly, monthly, or intraday series with a live preview.

Swappable providers

Alpha Vantage and Twelve Data with a free key; Frankfurter forex, CoinGecko crypto, and ECB reference rates with no key.

Server-side caching

Cache times per endpoint and per block, protection against bursts of requests, and a purge button and WP-CLI command.

Shortcode and REST API

Use [nr-stocks] in classic content and widgets, or the nr-stocks/v1 REST API for headless sites.

Setup

Install and configure

  1. Clone the repository with git clone --recurse-submodules, then run scripts/zip.sh (needs Node 24, rsync, and zip). It builds the block assets and writes dist/nr-stocks.zip. The source archives on the releases page do not include the built assets, so they will not install.
  2. Upload the ZIP under Plugins → Add New Plugin → Upload Plugin, then activate NR Stocks.
  3. Open Settings → NR Stocks, pick a default provider, and add an API key if that provider needs one.
  4. Insert the Stock Chart block, search a symbol, and publish.

Free provider plans are rate-limited. NR Stocks caches every answer on the server, so one upstream call serves many visitors.