Status: contract version 1.
A provider is a console executable that fills the data store. QuantX runs it as a child process (the desktop's Import and Data series pages) or a scheduler runs it (the daily snapshot), always with the command line below. This page is that contract: what a provider is given, what it must print and which exit code it returns. Writing a provider explains how to build one with the shared host, which implements all of it.
There are two kinds of provider. A quote provider fills market quotes and fixings for the market the library defines. A series provider fills data series, such as FRED's CPI, which no market needs. A manifest says which a provider serves.
The manifest
Beside the executable sits quantx-plugin.json (schema:
plugin-manifest.schema.json):
{
"contractVersion": 1,
"kind": "provider",
"name": "Acme",
"description": "Quotes and fixings from the Acme market data service.",
"executable": "Acme.QuantXProvider.exe",
"serves": ["quotes"]
}
nameis the name the settings use (providers.snapshot,providers.defaultSeries) and the settings page shows. Names are compared without regard to case; the first provider found with a name is kept and any later one is reported and left out.executableis a file of the manifest's folder, never a path.serveslistsquotes,seriesor both; both when it is left out.- A manifest of another contract version, with an unknown member or with a missing executable is reported with its file name and left out.
A folder named in the settings holds one manifest directly, or one provider per immediate subfolder.
Quote providers
<provider> <command> [options]
| Command | What it does | Exit code |
|---|---|---|
requirements --date D |
prints every quote key and fixing window the market needs; fetches nothing | 0 |
snapshot --date D |
fetches and saves what the market needs on D, then reports what is missing | 0, or 2 |
backfill --from D1 --to D2 |
snapshot on every date from D1 to D2 |
0, or 2 |
fixings --from D1 --to D2 |
saves every fixing of the market's indices from D1 to D2 | 0, or 2 |
check --date D |
reports what the store still lacks on D; fetches nothing | 0, or 2 |
vols import --grid G --asof D --file F --source S |
saves a volatility table as the grid's next snapshot | 0 |
help |
prints the usage text | 0 |
| Option | Meaning |
|---|---|
--date D, --from D, --to D |
ISO 8601 dates (2026-10-14) or today; --date also takes previous |
--settings PATH |
the settings file naming the store; by default the machine's and the user's |
--store PATH |
a SQLite file, opened instead of the store the settings name; not with --settings. The settings are still read, for the series provider |
--<name> VALUE |
an option of the provider's own, such as --input for the CSV provider |
A provider may add commands of its own; its help text lists them under
"Provider commands". The desktop reads help to learn them.
Every command covers the one market: every shipped curve, spot rate, fixing
series and volatility grid, or the stored definition that replaces it. A
provider answers the keys it can and leaves the rest; the market is then
built from whatever the store holds, each part it cannot build named as an
issue. The options --market and --all were removed on 2026-11-01 and are
refused with a message.
Series providers
| Command | What it does | Exit code |
|---|---|---|
describe --code C |
prints what the provider says about its series C; saves nothing |
0 |
add --code C [--id ID] |
stores the definition of C as ID (default C) |
0 |
update --series ID or --all [--from D] |
fetches each series and saves the new and revised values | 0, or 2 |
list |
prints the stored series, with their stored dates | 0 |
set-key, clear-key |
saves or deletes the user's API key, when the provider needs one | 0 |
help |
prints the usage text and the provider's notice | 0 |
--settings PATH and --store PATH name the store, as for quote providers.
A series definition names its provider, so update --all updates only the
series of the running provider.
Output and exit codes
- Standard output carries the report, one line per date (or per series), each written as soon as it is known, so that the desktop can show a long backfill as it runs. Lines are plain text in English; dates are ISO 8601.
- Standard error carries the error message, one line the user can act on, never a secret and never a stack trace.
- Exit codes:
0complete;1an error (bad arguments, an unreadable file, a provider or store failure), with its message on standard error;2the store still lacks something a market needs, or a series failed or returned nothing. - Cancelling: the desktop stops a run by ending the process tree. A provider saves each date or block as it goes, so a stopped run keeps what it saved.
The store
A provider opens the store the settings name, through the store catalog, so
it writes into SQLite or a client's own store alike
(data store contract). It writes quotes under the
library's names and units only: a vendor's tickers and units
stay inside the provider. The desktop passes a settings file of its session
with --settings, so a provider it runs opens the same store as the desktop.
The CSV quote table
The bundled CSV provider reads every *.csv file of the folder given with
--input, one quote per row:
date,instrument,field,value
# SAR swaps, 14-Oct-2026 close
2026-10-14,SAR-SAIBOR-3M-IRS 5Y,Mid,0.0525
2026-10-13,SAR-SAIBOR-3M,Fixing,0.0548
- The header row is required; blank rows and rows starting with
#are skipped. dateis ISO 8601; a fixing is dated its fixing date.instrumentandfieldare the library's quote names (requirementsprints them); a fixing is the index's identifier with the fieldFixing. Neither holds a comma or|, and neither is quoted.valueis a number with a decimal point, in the library's units: rates and volatilities as decimals (0.0525, not5.25), FX forward points in points, spot rates as rates.- A quote given twice with the same value is read once; with two values it is an error naming both files and lines.
A client whose feed can write this table needs no provider of its own.