Skip to main content

Read market data

You read Taji's market data with one call per product, GET /get/<product>: bars, quotes, depth, trades, option chains, news, corporate actions, earnings, fundamentals, filings, insider trades, fund holdings and economic releases, each the same call whatever provider answers, so nothing changes when you link another (why). A keyless Taji answers the five calls below from its own sources, and Coverage says which provider serves which product. Data of your own, a CSV, a private feed or a database, is served the same way by a plugin you write (Chart your own CSV).

You need a running Taji, curl, and Python with pyarrow (pip install pyarrow) to decode the answers.

1. Your first read​

Define get once: it calls your own Taji's wire with the token Taji writes for you and prints the answer's metadata, then its rows. Then read SPY's last two daily bars:

STATE="$HOME/Library/Application Support/Taji"
get() {
curl -s -H "x-taji-token: $(cat "$STATE/wire-token")" "http://localhost:$(cat "$STATE/wire-port")$1" |
python3 -c 'import sys, pyarrow as pa
b = sys.stdin.buffer.read()
if b[:1] == b"{": sys.exit(b.decode())
t = pa.ipc.open_stream(b).read_all()
print({k.decode(): v.decode() for k, v in t.schema.metadata.items()}); print(t.to_pylist())'
}
get "/get/bars?symbols=equity:SPY&timeframe=D&limit=2"

STATE is the macOS state dir; Configuration names Linux's and Windows'. The answer, as the harness decoded it to JSON (prices are Decimal128 on the wire, instants UTC):

{
"metadata": {
"adjustment": "raw",
"dataset_id": "bars:csv-source:SPY:D:raw",
"provider": "{\"equity:SPY\":\"csv-source\"}",
"source": "{\"equity:SPY\":\"vendor\"}",
"timeframe": "D"
},
"rows": [
{
"symbol": "SPY",
"provider": "csv-source",
"start_dt": "2026-12-02T00:00:00+00:00",
"knowable": "2026-12-02T21:00:00+00:00",
"open": 140.84,
"high": 141.21,
"low": 140.78,
"close": 141.19,
"volume": 4500000,
"vwap": null,
"trade_count": null,
"up_volume": null,
"down_volume": null
},
{
"symbol": "SPY",
"provider": "csv-source",
"start_dt": "2026-12-03T00:00:00+00:00",
"knowable": "2026-12-03T21:00:00+00:00",
"open": 141.45,
"high": 143.43,
"low": 141.23,
"close": 142.62,
"volume": 5000000,
"vwap": null,
"trade_count": null,
"up_volume": null,
"down_volume": null
}
]
}

Captured 2026-12-04 on a headless kernel reading a made-up daily series for SPY.

The provider in the metadata names who answered, here csv-source, the made-up series (on your Taji, a source you have, such as yahoo), and source says it came from the vendor and not your store; each row is one bar, oldest first, with knowable the instant it could first be read.

2. A quote​

get "/get/quotes?symbols=equity:SPY"
{
"metadata": {
"provider": "{\"equity:SPY\":\"samplefeed\"}",
"source": "{\"equity:SPY\":\"vendor\"}"
},
"rows": [
{
"symbol": "SPY",
"ts": "2026-12-04T20:21:11.955014+00:00",
"ts_init": 1796415671955014000,
"provider": "samplefeed",
"delayed": false,
"halted": null,
"session": null,
"bid": 143.07,
"ask": 143.09,
"last": 143.08,
"bid_size": null,
"ask_size": null,
"book_ts": null,
"last_ts": null,
"last_exchange": null,
"last_conditions": [],
"prev_close": 142.62,
"change": 0.46,
"change_pct": 0.3225,
"session_close": null,
"session_change": null,
"session_change_pct": null,
"market_session": "regular",
"next_session": "post",
"next_at": "2026-12-04T21:00:00+00:00"
}
]
}

Captured 2026-12-04 on a headless kernel reading a made-up quote for SPY.

A quote is one row per symbol, bid, ask and last with last_ts dating the trade behind last, and market_session is the calendar's word for the moment you asked (regular here, during the session); after the close it reads post, and the quote is the last session's.

3. An option chain​

get "/get/chains?symbols=equity:SPY&expiry=2026-12-18&strikes=2&right=call"
{
"metadata": {
"expiries": "{\"equity:SPY\":[{\"atm_strike\":\"143\",\"dte\":14,\"expiry\":\"2026-12-18\",\"root\":\"SPY\"}]}",
"feed": "{}",
"provider": "{\"equity:SPY\":\"samplefeed\"}",
"source": "{\"equity:SPY\":\"vendor\"}",
"spot": "{\"equity:SPY\":\"143.08\"}"
},
"rows": [
{
"underlying": "SPY",
"provider": "samplefeed",
"snapshot_dt": "2026-12-04T20:21:12.345965+00:00",
"contract": "SPY261218C00143000",
"root": "SPY",
"expiry": "2026-12-18",
"strike": 143,
"right": "call",
"listed": true,
"tradable": null,
"ts": null,
"ticks": [
{
"from": 0,
"increment": 0.01
},
{
"from": 3,
"increment": 0.05
}
],
"spread_ticks": null,
"last_trade_at": null,
"first_notice": null,
"settlement": null,
"style": null,
"expiry_type": null,
"qty_step": 1,
"min_qty": 1,
"multiplier": 100,
"bid": 1.86,
"ask": 1.9,
"mid": 1.88,
"last": null,
"spot": 143.08,
"volume": null,
"open_interest": 12189,
"iv": 0.1602,
"bid_iv": 0.1518,
"ask_iv": 0.1554,
"delta": 0.5345,
"gamma": 0.0885,
"theta": -0.0725,
"vega": 0.1114,
"rho": 0.0286,
"theo": 1.9535,
"std_dev": 0.0314,
"p_itm": null,
"p_otm": null,
"p_be": null,
"p_itm_iv": 0.522,
"p_otm_iv": 0.478,
"p_be_iv": 0.3591,
"computed": [
"bid_iv",
"ask_iv",
"delta",
"gamma",
"theta",
"vega",
"rho",
"theo",
"std_dev",
"probability"
],
"intrinsic": 0.08,
"time_value": 1.8735,
"breakeven": 144.9535,
"to_breakeven_pct": 1.3094073246,
"distance": 0.08,
"distance_pct": 0.0559127761,
"spread_pct": 2.1276595745,
"bid_yield_pct": 1.2999720436,
"ask_yield_pct": 1.3279284316,
"bid_yield_ann_pct": 33.8921282799,
"ask_yield_ann_pct": 34.6209912536,
"iv_spread": 0.0036
},
{
"underlying": "SPY",
"provider": "samplefeed",
"snapshot_dt": "2026-12-04T20:21:12.345965+00:00",
"contract": "SPY261218C00144000",
"root": "SPY",
"expiry": "2026-12-18",
"strike": 144,
"right": "call",
"listed": true,
"tradable": null,
"ts": null,
"ticks": [
{
"from": 0,
"increment": 0.01
},
{
"from": 3,
"increment": 0.05
}
],
"spread_ticks": null,
"last_trade_at": null,
"first_notice": null,
"settlement": null,
"style": null,
"expiry_type": null,
"qty_step": 1,
"min_qty": 1,
"multiplier": 100,
"bid": 1.72,
"ask": 1.76,
"mid": 1.74,
"last": null,
"spot": 143.08,
"volume": null,
"open_interest": 4497,
"iv": 0.1582,
"bid_iv": 0.1821,
"ask_iv": 0.1857,
"delta": 0.4453,
"gamma": 0.0891,
"theta": -0.0699,
"vega": 0.1108,
"rho": 0.0239,
"theo": 1.4544,
"std_dev": 0.031,
"p_itm": null,
"p_otm": null,
"p_be": null,
"p_itm_iv": 0.4331,
"p_otm_iv": 0.5669,
"p_be_iv": 0.2891,
"computed": [
"bid_iv",
"ask_iv",
"delta",
"gamma",
"theta",
"vega",
"rho",
"theo",
"std_dev",
"probability"
],
"intrinsic": 0,
"time_value": 1.4544,
"breakeven": 145.4544,
"to_breakeven_pct": 1.6594911937,
"distance": 0.92,
"distance_pct": 0.6429969248,
"spread_pct": 2.2988505747,
"bid_yield_pct": 1.2021246855,
"ask_yield_pct": 1.2300810735,
"bid_yield_ann_pct": 31.3411078717,
"ask_yield_ann_pct": 32.0699708455,
"iv_spread": 0.0036
}
]
}

Captured 2026-12-04 on a headless kernel reading a made-up option chain for SPY.

expiry picks one date and strikes=2 the two strikes nearest spot, which the metadata states beside the listed expiries; each row is one contract with its quote, volume and open interest, and its greeks are Taji's own where computed names them (use another expiry once this one has passed).

4. Earnings​

get "/get/earnings?symbols=equity:ACME&from=2026-01-01&to=2027-02-01"
{
"metadata": {
"provider": "{\"equity:ACME\":\"samplefeed\"}",
"source": "{\"equity:ACME\":\"vendor\"}"
},
"rows": [
{
"symbol": "ACME",
"item": "equity:ACME",
"knowable_utc": 1769720700,
"report_date": "2026-01-29",
"timing": "amc",
"fiscal_year": 2025,
"fiscal_period": "Q4",
"eps_estimate": 1.42,
"eps_actual": 1.51,
"eps_surprise": 0.09,
"eps_surprise_pct": 6.338,
"revenue_estimate": 2150000000,
"revenue_actual": 2210000000,
"revenue_surprise": 60000000,
"revenue_surprise_pct": 2.7907,
"verified": true,
"provider": "samplefeed",
"revenue_estimate_provider": "samplefeed",
"revenue_actual_provider": "samplefeed",
"name": null,
"primary": null
},
{
"symbol": "ACME",
"item": "equity:ACME",
"knowable_utc": 1777579500,
"report_date": "2026-04-30",
"timing": "amc",
"fiscal_year": 2026,
"fiscal_period": "Q1",
"eps_estimate": 1.38,
"eps_actual": 1.33,
"eps_surprise": -0.05,
"eps_surprise_pct": -3.6232,
"revenue_estimate": 2090000000,
"revenue_actual": 2075000000,
"revenue_surprise": -15000000,
"revenue_surprise_pct": -0.7177,
"verified": true,
"provider": "samplefeed",
"revenue_estimate_provider": "samplefeed",
"revenue_actual_provider": "samplefeed",
"name": null,
"primary": null
},
{
"symbol": "ACME",
"item": "equity:ACME",
"knowable_utc": 1785441900,
"report_date": "2026-07-30",
"timing": "amc",
"fiscal_year": 2026,
"fiscal_period": "Q2",
"eps_estimate": 1.45,
"eps_actual": 1.58,
"eps_surprise": 0.13,
"eps_surprise_pct": 8.9655,
"revenue_estimate": 2180000000,
"revenue_actual": 2260000000,
"revenue_surprise": 80000000,
"revenue_surprise_pct": 3.6697,
"verified": true,
"provider": "samplefeed",
"revenue_estimate_provider": "samplefeed",
"revenue_actual_provider": "samplefeed",
"name": null,
"primary": null
},
{
"symbol": "ACME",
"item": "equity:ACME",
"knowable_utc": 1793304300,
"report_date": "2026-10-29",
"timing": "amc",
"fiscal_year": 2026,
"fiscal_period": "Q3",
"eps_estimate": 1.55,
"eps_actual": 1.61,
"eps_surprise": 0.06,
"eps_surprise_pct": 3.871,
"revenue_estimate": 2240000000,
"revenue_actual": 2295000000,
"revenue_surprise": 55000000,
"revenue_surprise_pct": 2.4554,
"verified": true,
"provider": "samplefeed",
"revenue_estimate_provider": "samplefeed",
"revenue_actual_provider": "samplefeed",
"name": null,
"primary": null
},
{
"symbol": "ACME",
"item": "equity:ACME",
"knowable_utc": 1793624400,
"report_date": "2027-01-28",
"timing": "amc",
"fiscal_year": 2026,
"fiscal_period": "Q4",
"eps_estimate": 1.66,
"eps_actual": null,
"eps_surprise": null,
"eps_surprise_pct": null,
"revenue_estimate": 2350000000,
"revenue_actual": null,
"revenue_surprise": null,
"revenue_surprise_pct": null,
"verified": false,
"provider": "samplefeed",
"revenue_estimate_provider": "samplefeed",
"revenue_actual_provider": null,
"name": null,
"primary": null
}
]
}

Captured 2026-12-04 on a headless kernel reading made-up earnings for ACME.

Each row is one report, with its report_date, timing (amc after the close, bmo before the open) and the estimate, actual and surprise of its earnings per share and revenue; the last row is scheduled, so its actuals and surprises are null until the company reports. provider names who stated the row (here the made-up samplefeed), and name and primary are null because the kernel's listings do not know ACME. from is required: without it the kernel answers 400 bad_ask; to ends the range, which otherwise ends now and would leave the scheduled report out.

5. The same bars, as of a past date​

get "/get/bars?symbols=equity:SPY&timeframe=D&from=2026-11-24&at=2026-11-27T17:00:00Z"
{
"metadata": {
"adjustment": "raw",
"dataset_id": "bars:csv-source:SPY:D:raw",
"provider": "{\"equity:SPY\":\"csv-source\"}",
"source": "{\"equity:SPY\":\"store\"}",
"timeframe": "D"
},
"rows": [
{
"symbol": "SPY",
"provider": "csv-source",
"start_dt": "2026-11-24T00:00:00+00:00",
"knowable": "2026-11-24T21:00:00+00:00",
"open": 137.68,
"high": 138.22,
"low": 136.76,
"close": 137.32,
"volume": 5500000,
"vwap": null,
"trade_count": null,
"up_volume": null,
"down_volume": null
},
{
"symbol": "SPY",
"provider": "csv-source",
"start_dt": "2026-11-25T00:00:00+00:00",
"knowable": "2026-11-25T21:00:00+00:00",
"open": 137.31,
"high": 140.3,
"low": 136.39,
"close": 139.53,
"volume": 2000000,
"vwap": null,
"trade_count": null,
"up_volume": null,
"down_volume": null
}
]
}

Captured 2026-12-04 on a headless kernel reading a made-up daily series for SPY.

at reads the bars as the market could have shown them at that instant, so the 2026-11-27 bar, which became knowable only at that day's close, is not in the answer; an at needs a from, and a to past at is refused as lookahead (Data).

The pattern​

Every product is GET /get/<product> with symbols, a span (from, to, limit) and at; and the answer names its provider. Who can make the same call:

Who readsHow
Your agentThe read tool, the same route (Wire)
An indicatorA data entry (Inputs)
A plugin[grants] reads in its manifest (Build a feature plugin)
A scriptThe wire, as above (Read bars over the wire with curl)

What you can build from it​

You wantReadBuilt with it
A liquidity heatmap and cumulative delta/get/taji-orderflow.depth, .prints, .deltaDraw an order-flow heatmap
Dealer gamma by strike/get/taji-gex.levels, .strikes, built on /get/chainsChart dealer gamma exposure on SPY
Your own file charted beside the rest/get/bars with provider=csv-sourceChart your own CSV of daily bars
Live quotes in a scriptquotes over the market socketStream live quotes over the wire

If it fails​

A refusal is JSON, {"error": <code>, "reason": <prose>}, so get prints it as text. The three a first read meets (the full list):

CodeCauseFix
not_served (501)No linked provider serves the ask, or not on its basisRead reason, which names each linked provider passed over and why; link one that serves it, or change the ask
not_linked (422)You pinned a provider that is not linked, or whose data is switched offLink it, or drop the pin
fetch_first (409)A span only a metered provider can fill, and a read never buysPrice it with fetch's dry_run, then buy within your data budget (Data)

Next​

  • Set an alert: an alert on a price or an indicator's plot, judged by the kernel as quotes arrive.
  • Wire: every GET /get/<product> row, its words and its refusals.
  • Data: where a read is answered from, and what it costs.
  • Coverage: which provider serves which product.