Provider API
How a pricing engine, or any other signal source, feeds the top 10 lists, the heat map and the profile chart on SignalShopper. You serve a few small JSON calls. SignalShopper's pages read them.
How it works
SignalShopper does not receive data from you. A visitor's browser asks your server for it, directly, each time a page opens. So "talking to the front end" means answering a few GET requests in the format below.
| Call | Recommended address | Needed | Fills |
|---|---|---|---|
| Provider description | GET /provider | To plug in with one address | The provider picker |
| Ranked list | GET /ranked?side={side} | At least one of these three | Top 10 buys and sells |
| Grid | GET /grid?symbol={symbol} | At least one of these three | Heat map |
| Profile | GET /profile?symbol={symbol} | At least one of these three | Profile chart |
The addresses are yours to choose. The page only needs to know where {side} and {symbol} go, and your provider description tells it. Static files work as well as a live server: the sample providers on this site are plain .json files.
There are no calls to SignalShopper, no keys, and no sign-up to try it. Open Live Signals, choose Add your own feed in the provider picker, and paste your provider address. It is saved in your browser only.
Quick start
- Serve a ranked list for
side=buyandside=sell, a grid for each symbol you cover, or both. - Serve a provider description that points at them.
- Send
Access-Control-Allow-Origin: *on every response, overhttps. See what your server must do. - Paste your provider address into Check your feed on this page. Fix what it lists.
- Add it in Live Signals to see it on screen, then ask to be listed.
Provider description
Describes your provider and gives the addresses of your feeds. No parameters. With this call in place, a person plugs you in with one address and never types a symbol by hand.
{
"format": "signalshopper.provider/1",
"name": "Acme pricing engine",
"kind": "Pricing engine",
"description": "Model prices for listed equity options, next to the market.",
"ranked": "ranked?side={side}",
"grid": "grid?symbol={symbol}",
"symbols": ["SPY", "QQQ"]
}
| Field | Required | Meaning |
|---|---|---|
format | yes | Always signalshopper.provider/1. |
name | yes | Shown in the provider picker and under each view. |
kind | no | The kind of signal, for example Pricing engine, Dealer gamma, Volatility spread. Providers of one kind are grouped together. |
description | no | One line about the signal. |
ranked | one of | Address of the ranked list, with {side} where buy or sell goes. |
grid | one of | Address of the grid, with {symbol} where the symbol goes. |
profile | one of | Address of the profile, with {symbol} where the symbol goes. |
symbols | with grid or profile | The symbols you serve a grid or a profile for, in the order to offer them. Sent back to you exactly as written, so SPY and spy are different. |
An address that is not absolute is read relative to the description's own address. In the example above, the ranked list is at https://api.example.com/signalshopper/v1/ranked?side=buy.
Ranked list
Your signals for one side, already in your order, strongest first. The page shows the first ten and does not re-sort them.
| Parameter | Values | Meaning |
|---|---|---|
side | buy, sell | Which list. The page asks for both and shows them next to each other. |
{
"format": "signalshopper.ranked/1",
"side": "buy",
"asOf": "2026-12-03T15:30:00Z",
"refreshSeconds": 60,
"items": [
{ "symbol": "TSLA", "type": "put", "expiry": "2026-12-18", "strike": 155, "market": 18.15, "model": 49.33 },
{ "symbol": "SPY", "type": "call", "expiry": "2026-12-04", "strike": 595, "market": 5.25, "model": 5.60 },
{ "symbol": "UNH", "type": "stock", "edge": 0.12, "note": "earnings Thursday" }
]
}
| Field | Required | Meaning |
|---|---|---|
format | yes | Always signalshopper.ranked/1. |
side | yes | buy or sell, matching the request. |
items | yes | Up to 100 entries. An empty list is fine and shows as "nothing right now". |
items[].symbol | yes | Ticker or name. |
items[].marketitems[].model | one of | The market price and your price. Give both or neither. market must be above zero. |
items[].edge | one of | The signed value, when there are no prices to show. See values and signs. If prices are also given, this is the number shown. |
items[].type | no | call, put, stock, or your own word. |
items[].expiry | no | YYYY-MM-DD. |
items[].strike | no | A number. |
items[].note | no | A few words shown beside the contract. |
items[].grid | no | Where this entry sits on your heat map: { "symbol", "panel", "row", "column" }. Clicking the row then selects that cell. An option with a strike and an expiry is found without it. |
asOf | no | When the list was calculated, as an ISO 8601 time with a zone. |
refreshSeconds | no | How often the list changes. See freshness. |
label, meaning | no | Your own name for this list and a few words on it, in place of "Buys · model above market". |
valueNamevalueFormatvalueUnit | no | For a signal that is not a price gap. See values and signs. |
Grid
One table of values for one symbol: rows by columns, in one or more panels. For options that is strike by expiry, with a panel for calls and one for puts.
| Parameter | Values | Meaning |
|---|---|---|
symbol | One of your symbols | Sent exactly as you listed it, URL-encoded. |
{
"format": "signalshopper.grid/1",
"symbol": "SPY",
"asOf": "2026-12-03T15:30:00Z",
"refreshSeconds": 60,
"rowLabel": "Strike",
"columnLabel": "Expiry",
"columns": ["2026-12-04", "2026-12-11"],
"panels": [
{
"key": "call",
"label": "Calls",
"rows": [590, 595, 600],
"values": [[0.04, 0.02], [-0.10, null], [-0.31, -0.22]],
"market": [[9.10, 11.40], [5.25, null], [2.60, 4.05]],
"model": [[9.46, 11.63], [4.73, null], [1.79, 3.16]]
},
{
"key": "put",
"label": "Puts",
"rows": [590, 595, 600],
"values": [[0.08, 0.05], [0.01, -0.03], [null, -0.12]]
}
]
}
| Field | Required | Meaning |
|---|---|---|
format | yes | Always signalshopper.grid/1. |
symbol | yes | The symbol this grid is for. |
columns | yes | Column labels, left to right, up to 60. A date written YYYY-MM-DD is shown as "Dec 4". Any other text is shown as it is. |
panels | yes | One to six tables that share the columns. |
panels[].keypanels[].label | yes | A short id, unique in the grid, and the panel's title. |
panels[].rows | yes | Row labels, up to 200. Numbers (strikes) are shown highest first, and panels are lined up on them. Text keeps your order. |
panels[].values | yes | One list per row, one entry per column. A number, or null where there is no value. |
panels[].marketpanels[].model | no | Same shape as values. When both are given, the two prices appear in a cell's detail. |
rowLabel, columnLabel | no | Names for the two axes. |
legend | no | { "positive": "...", "negative": "..." }: what green and red mean, when it is not "model above market" and "model below market". |
asOf, refreshSeconds | no | As in the ranked list. |
valueNamevalueFormatvalueUnit | no | See values and signs. |
Colour strength is scaled inside each panel, separately for green and red, against that panel's largest value. You do not need to normalise.
Profile
One value at each level of a price axis for one symbol, drawn as a curve around zero, with the levels you mark on it. Use it when the signal is about where the price is on that curve. Dealer gamma is the usual case: the total gamma dealers would hold if the price were at each level, with the last price and the level where that total turns from negative to positive.
{
"format": "signalshopper.profile/1",
"symbol": "SPY",
"asOf": "2026-12-03T15:30:00Z",
"refreshSeconds": 300,
"levelLabel": "Price",
"valueName": "dealer gamma",
"valueFormat": "number",
"valueUnit": "$M",
"legend": {
"positive": "Dealers long gamma: their hedging damps moves",
"negative": "Dealers short gamma: their hedging amplifies moves"
},
"markers": [
{ "level": 590.42, "label": "Last", "kind": "last" },
{ "level": 583.5, "label": "Zero GEX" }
],
"points": [
{ "level": 575, "value": -518.5 },
{ "level": 580, "value": -281.2 },
{ "level": 585, "value": 120.1 },
{ "level": 590, "value": 634.4 },
{ "level": 595, "value": 1027.4 }
]
}
| Field | Required | Meaning |
|---|---|---|
format | yes | Always signalshopper.profile/1. |
symbol | yes | The symbol this profile is for. |
points | yes | Two to 500 entries, each a level and a value, with the levels rising. The chart joins them with straight lines. |
markers | no | Up to 12 levels to mark, each a level and a label, the most important first. A marker outside the range of points is not drawn. |
markers[].kind | no | "last" on one marker says it is the last price. The line above the chart then gives the value at that level and what its sign means, and the other markers show how far they are from it. |
levelLabel | no | What the levels are, such as Price. Shown when a visitor reads one level. |
legend | no | { "positive": "...", "negative": "..." }: what a value above zero and a value below zero mean. |
asOf, refreshSeconds | no | As in the ranked list. |
valueNamevalueFormatvalueUnit | no | See values and signs. valueName is also the chart's title. |
The sample dealer gamma profile is a complete one.
Values and signs
One rule holds everywhere: a positive value is drawn green and belongs on the buy side, a negative value is drawn red and belongs on the sell side.
A pricing engine
The value is the gap between your price and the market's, as a fraction of the market price:
edge = (model - market) / market
0.25 means your model is 25% above the market. -0.25 means 25% below. It is a fraction, not a percentage. In a ranked list you can send market and model and leave the arithmetic to the page. In a grid, values always carries the result.
Any other signal
Keep the sign rule and say what the number is:
| Field | Meaning | Default |
|---|---|---|
valueName | What the value is called. It heads the last column and appears in a cell's detail. | gap |
valueFormat | percent for a fraction shown as a percentage, or number for a number shown as it is, with its sign. | percent |
valueUnit | For number: the unit, such as $M or vol pts. | none |
Rename the two sides to match: label and meaning on a ranked list, legend on a grid or a profile. Three sample providers on this site do it, and their files are a working reference:
- Dealer gamma: a profile of the gamma dealers would hold at each price level, in millions of dollars, with the last price and the zero-GEX level marked, for 21 symbols. Its grid splits the same totals by expiry, and its lists say how far each symbol's last price is above or below its zero-GEX level, in percent.
- Volatility spread: forecast minus implied volatility in vol points, by symbol and tenor.
- Order flow: net buying as a share of volume, by symbol and half hour.
What your server must do
| Rule | Why |
|---|---|
Answer GET with JSON | The page sends a plain GET with no body, no cookies and no extra headers, so the browser makes no preflight request. |
Access-Control-Allow-Origin: * | The request comes from a visitor's browser on signalshopper.com, or on any site that embeds the views. Without this header the browser refuses to hand your answer to the page. |
https | A page served over https cannot read http. |
Content-Type: application/json | UTF-8. |
| Answer within a few seconds | Nothing is shown until you answer. Calculate ahead of the request and serve the stored result. |
| Stay inside the size limits | 100 items in a list. 60 columns, 200 rows and 6 panels in a grid. A larger answer is refused, not trimmed. |
| Expect every visitor | Each open page asks you directly, and again every refreshSeconds. Put a cache or a CDN in front of anything slow. |
Your addresses are public. Anyone can read what you serve there, with or without SignalShopper. Do not put anything in a feed that you would not publish. Feeds that need a key are not supported yet.
Fields the page does not know are ignored, so you can add your own. Every text field is shown as plain text, never as HTML.
Errors
Use ordinary status codes. To explain an error to the person looking at the page, add a short message:
HTTP/1.1 404 Not Found
Content-Type: application/json
Access-Control-Allow-Origin: *
{ "error": { "code": "unknown_symbol", "message": "No grid for ZZZ." } }
| You answer | The page shows |
|---|---|
200 with a valid feed | The view. |
200 with a feed that breaks the format | "The feed doesn't match the format", with the first five problems listed by field. |
4xx or 5xx | "The feed answered with an error (404)", followed by your error.message if you sent one (first 200 characters). |
| Nothing, or no CORS header | "Couldn't reach the feed", after one retry. |
Send the CORS header on error answers too, or the page cannot read your message.
Freshness
asOfis shown beside your name as "as of Dec 3, 3:30 PM" in the visitor's own time zone. Send it, so stale data is visible as stale.refreshSecondsasks the page to read the feed again after that many seconds, for as long as it is on screen. The lowest accepted value is 5. Leave it out for data that changes daily, and the feed is read once per page load.- While a refresh loads, the old data stays up. If the refresh fails, the old data stays and the page tries again after the same wait.
- A page in a background tab does not ask.
- The page asks the browser not to cache your answers, so a new answer is seen at the next read.
Check your feed
Paste the address of your provider description, or of a single ranked list, grid or profile. The check runs in your browser against your server, with the same rules the live page uses, so it also catches a missing CORS header.
To try it now, paste the address of a sample: providers/demo-dealer-gamma/provider.json.
From a terminal, the same rules are in tools/validate.mjs of the front end's source: node tools/validate.mjs your-file.json.
Getting listed
Anyone can add your provider to their own browser with Add your own feed. To appear in the picker for every visitor, your provider has to be added to SignalShopper's own list. Send your provider address to api-support@signalshopper.com.
Before asking, make sure that the check above passes for the description, both sides of the ranked list and every symbol, and that your asOf times are current.
Showing your signal on your own site
The same views can be placed on any page. They read your feeds directly:
<script type="module" src="https://signalshopper.com/signals/src/embed.js"></script>
<signal-top10 src="https://api.example.com/signalshopper/v1/ranked?side={side}" side="both"></signal-top10>
<signal-heatmap src="https://api.example.com/signalshopper/v1/grid?symbol={symbol}" symbol="SPY" panel="all"></signal-heatmap>
<signal-profile src="https://api.example.com/signalshopper/v1/profile?symbol={symbol}" symbol="SPY"></signal-profile>
| Attribute | On | Meaning |
|---|---|---|
src | all | Your feed address, with {side} for the top 10 and {symbol} for the heat map and the profile. |
provider | both | In place of src: the id of a listed provider. |
provider-name | both | The name to show under a view that uses src. |
side | top 10 | both for buys beside sells, or buy / sell for one list with a switch. |
limit | top 10 | How many entries to show. 10 unless set. |
fixed | top 10 | No switch: the list stays on the side given. |
symbol | heat map, profile | Required. |
panel | heat map | all for every panel side by side, or a panel's key for one panel with a switch. |
fill | heat map | Stretch the rows to the height your page gives the element. |
float | heat map | On a phone, pin the chosen cell's detail to the top of the screen. |
compact | both | A small version for a card. |
theme | both | light or dark. Without it, the visitor's system setting. |
Example server
A complete provider in Python's standard library. It serves the three calls with made-up numbers and the right headers. Replace the two functions that build the answers with your engine's output.
import json
from datetime import datetime, timezone
from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
from urllib.parse import urlparse, parse_qs
SYMBOLS = ["SPY"]
now = lambda: datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
def ranked(side):
sign = 1 if side == "buy" else -1
return {"format": "signalshopper.ranked/1", "side": side, "asOf": now(), "refreshSeconds": 60,
"items": [{"symbol": "SPY", "type": "call", "expiry": "2026-12-18", "strike": 595,
"market": 5.25, "model": round(5.25 * (1 + sign * 0.07), 2)}]}
def grid(symbol):
return {"format": "signalshopper.grid/1", "symbol": symbol, "asOf": now(), "refreshSeconds": 60,
"rowLabel": "Strike", "columns": ["2026-12-11", "2026-12-18"],
"panels": [{"key": "call", "label": "Calls", "rows": [590, 595, 600],
"values": [[0.04, 0.02], [-0.10, 0.07], [-0.31, -0.22]]}]}
class Handler(BaseHTTPRequestHandler):
def send(self, status, body):
data = json.dumps(body).encode()
self.send_response(status)
self.send_header("Content-Type", "application/json")
self.send_header("Access-Control-Allow-Origin", "*")
self.send_header("Content-Length", str(len(data)))
self.end_headers()
self.wfile.write(data)
def fail(self, status, code, message):
self.send(status, {"error": {"code": code, "message": message}})
def do_GET(self):
url = urlparse(self.path)
query = {key: values[0] for key, values in parse_qs(url.query).items()}
if url.path == "/provider":
self.send(200, {"format": "signalshopper.provider/1", "name": "Example engine",
"kind": "Pricing engine", "ranked": "ranked?side={side}",
"grid": "grid?symbol={symbol}", "symbols": SYMBOLS})
elif url.path == "/ranked":
if query.get("side") not in ("buy", "sell"):
return self.fail(400, "bad_side", "side must be buy or sell.")
self.send(200, ranked(query["side"]))
elif url.path == "/grid":
if query.get("symbol") not in SYMBOLS:
return self.fail(404, "unknown_symbol", f"No grid for {query.get('symbol')}.")
self.send(200, grid(query["symbol"]))
else:
self.fail(404, "not_found", "No such call.")
ThreadingHTTPServer(("127.0.0.1", 8787), Handler).serve_forever()
Run it, then paste http://127.0.0.1:8787/provider into the check above. A page on your own machine may read http from 127.0.0.1. A public page needs https.
Not supported yet
- Keys and private feeds. The page sends no credentials, and a key placed in a web page is public. A paid or private feed needs SignalShopper to fetch it on a server and check who is asking. That server does not exist yet.
- Pushing data to SignalShopper. The site is static pages, so there is nothing to receive a push. You are always asked, never told to send.
- Streaming. No WebSocket or server-sent events. Use
refreshSeconds. - History. Each call returns the latest answer only. There is no date parameter.
- Paging and filters. A ranked list is one answer of up to 100 entries. The page sends no
limitor filter.
Schemas and versions
- openapi.json: the calls as an OpenAPI 3.1 description, for code generators and API tools.
- JSON Schemas: provider, ranked, grid, profile. A schema cannot say that every grid row needs one value per column, so the page checks that itself, and so does the check above.
- Sample feeds: every file under providers.json.
The number at the end of each format is the version. New optional fields are added without changing it, which is why unknown fields are ignored. A change that would break an existing feed gets a new number, and the old one keeps working alongside it.