SSGA: how it works
State Street Global Advisors publishes the holdings of its SPDR S&P 500 ETF (SPY) as one workbook on its site. SPY replicates the S&P 500, so the file is the index's member list with each member's weight, and Taji serves it as the hub product constituents of index:$SPX. The plugin is one crate, plugins/ssga, with one keyless data source and no venue, link form or stream. It reaches one host, www.ssga.com, with one GET of one file.
The vendor
Hosts. https://www.ssga.com/library-content/products/fund-data/etfs/us/holdings-daily-us-en-spy.xlsx. The path names the fund (spy), the language (us-en) and the cadence (holdings-daily). There is one environment: no sandbox, no paper.
Auth. None. The file takes no key, cookie or header, and there is no account or entitlement. The proposal's read of 2026-12-02 got 200 with an OOXML workbook and no credential.
API family. One: a static .xlsx per fund, fetched with a plain GET. The file has no version and no query words, so every request returns the whole workbook. Its first sheet is laid out as in Behaviour and limits: fund lines, one As of DD-Mon-YYYY line, a header row, one row per holding, a cash row, then footnote sentences.
Stated limits. No publish time or rate limit is recorded: the one Last-Modified reading is in Behaviour and limits. The source's terms line (plugins/ssga/taji-plugin.toml) carries the one stated restriction: SSGA's disclosure says its holdings content may not be reproduced, copied or transmitted without its written consent, and says nothing of automated reads. Taji's maintainers approved on 2026-12-03 that Taji reads the file, for the person's own screen, with the clause shown in Connections and the source switchable off. Yahoo is the precedent: its terms forbid automated access and it is read on the same footing (plugins/yahoo/taji-plugin.toml). The disclosure page itself was not fetched for this page; the manifest line is the plugin's wording of it.
Why this file. No vendor Taji has lists an index's members. Robinhood's agentic-trading tool categories and Crypto API name no index list. Schwab's one index-keyed market-data route, /movers/{index}, returns the top movers of $SPX, $DJI or $COMPX, not the members. Massive's indices overview says index providers "determine the methodology and constituent lists", and its All Tickers route carries market=indices only. Databento's DBIX.CORE carries an index's values and its definition as an INDEX instrument, with no members or weights. Each is cited in References, as the proposal read it on 2026-12-03. A fund that replicates the index states the members in its daily holdings, so SSGA's SPY file is the source.
Offered, not read
What Taji reads, down to each field it fills, is docs/reference/coverage/ssga.md. SSGA has no plan: every file below is keyless and free.
| Offered | Endpoint | Source, fetched |
|---|---|---|
The file's Identifier, SEDOL, Sector, Shares Held and Local Currency columns: members reads Name, Ticker and Weight. constituents has no column for an identifier or a share count, and the kernel states a member's sector from listings, one taxonomy on every row | /library-content/products/fund-data/etfs/us/holdings-daily-us-en-spy.xlsx | the file's header row as of 02-Dec-2026, 2026-12-04 |
Other SPDR funds' holdings, the same path with the fund's ticker (holdings-daily-us-en-xlk.xlsx answered 200 to a HEAD; not parsed). INDEX admits $SPX alone, so a second index is a second file and a second url arm | /library-content/products/fund-data/etfs/us/holdings-daily-us-en-<ticker>.xlsx | SPY fund page links SPY's alone, 2026-12-04 |
| SPY's NAV history and its premium and discount history (the link labelled "Fund Data"); their columns were not read | /library-content/products/fund-data/etfs/us/navhist-us-en-spy.xlsx, .../pdhist-us-en-spy.xlsx | SPY fund page, 2026-12-04 |
| Distributions (quarterly): the history and a schedule PDF | /us/en/intermediary/resources/documents/etf-dividend-distributions, .../distribution/SPDR_Dividend_Distribution_Schedule.pdf | SPY fund page, 2026-12-04 |
| The product-data workbook for the whole SPDR line, the ICI tax summaries (primary and secondary), the factsheet, prospectus and reports | /library-content/products/fund-data/etfs/us/spdr-product-data-us-en.xlsx, .../fund-docs/etfs/us/tax-documents/, .../factsheets/etfs/us/factsheet-us-en-spy.pdf | SPY fund page, 2026-12-04 |
Code map
plugins/ssga/taji-plugin.toml: the manifest, with idssga, nameSSGA,free = true, thetermsline, one[[sources]]and no[[link]].plugins/ssga/src/lib.rs: readholdingsfirst, the workbook's bytes to aHoldings. It also ownsPlugin::build(registerssource::Ssga::new), the constantsID,HOST,INDEX,LAG_SandFORMAT,url(the file's URL under a base,Nonefor any index but$SPX),provider(the hub'sProviderId),members(the sheet's cells to members), andas_of(aDD-Mon-YYYYdate at 00:00 UTC). Its unit tests build sheets from literal cells.plugins/ssga/src/source.rs: theSourceimplSsga, itsFACTS, and the parse. ReadSsga::getfirst, the one place a request leaves the process.parseturns the stored page into rows, androws_jsonstates each as a JSON object.plugins/ssga/tests/live.rs: the live test,Ssga::raw_readagainst the real file.plugins/ssga/Cargo.toml: depends ontaji-pluginwith itsvendorfeature,calaminefor the workbook,jifffor the date andrust_decimalfor the weight.
plugins/ssga/tests/hub.rs drives Ssga through a real Hub over a wiremock vendor.
How it plugs into Taji
Composition. engine/crates/taji-open/src/lib.rs adds ssga::Plugin after cboe_daily::Plugin, and the Ties in engine/crates/taji-open/ties/src/lib.rs place ssga after cboe-daily in each order: it is the only constituents source, so its place decides no walk. The manifest has no link form: FACTS.seat is Seat::Keyless, which the kernel lists as linked on every device, as cboe-daily's is.
Traits. The plugin implements taji_plugin::vendor::Source and nothing else: no HistoricalData, LiveStream, VenueReads, ExecutionOps or Auth.
seatanswersSeated { history: None, live: None, kept: true }, so the source serves reads with no client or stream built.probeanswersNone: no plan to learn, no grants.raw_readanswersSsga::get'sRaw, so the hub stores every answer as a pull.readis the same GET, thenparse. The hub calls it only whereraw_readanswersNone, which never happens here.
FACTS (plugins/ssga/src/source.rs):
| Field | Value | What the hub does with it |
|---|---|---|
reads | (Index, Constituents, Now) | the one read it routes here: a now answer, no span |
seat | Keyless | seated at boot and at each unlock |
formats, parse | ssga-holdings-xlsx-1 | parses a stored page again with no request |
permits | 1 | the provider gate's shared permits: a second call waits |
fills | (Index, Constituents): name, weight | the optional columns the file's rows fill; the kernel's join states the rest (held by the_decoded_rows_fill_what_facts_declares) |
rows | not set | the Facts::NONE default maps raw["rows"] to constituents rows: symbol, name, weight, knowable_utc |
bars_cap | CAP, no classes or intervals | the walk asks only a source with a bars row (capped), so a source with none is never asked; this one says no bars |
available and offer are not set.
Product and route. constituents is a platform product (DataProduct::Constituents): an index's members, each row on the taji_brokerage::reference constituents schema symbol, name?, sector?, industry?, weight?, last?, change?, change_pct?, delayed?, knowable_utc, sources. Clients read it as GET /get/constituents?symbols=index:$SPX; the //! header of engine/crates/taji/src/wire/mod.rs documents the route. It takes one index, and at, from and to are refused bad_ask (constituents::asked in engine/crates/taji-trading/src/hub/constituents.rs), because the file states today's members only.
What the kernel adds. The source states four columns: symbol, name, weight and knowable_utc. Hub::constituents joins the rest, per column from the one input that states it:
namethe listing's, else the file's;sectorandindustryfrom the bundledlistings;last,change,change_pctanddelayedfrom one nowquotesread of every member through whichever linked sources quote it, null where none answers;sourcesnames who gave each column (ssgaforweight,listingsforsector);- rows run largest
weightfirst, then by symbol, a member with no weight last; - a row's
knowable_utcis the latest of its inputs', never past the read's instant.
| Taji surface | Vendor call | File |
|---|---|---|
GET /get/constituents?symbols=index:$SPX | GET /library-content/products/fund-data/etfs/us/holdings-daily-us-en-spy.xlsx | plugins/ssga/src/source.rs (Ssga::get) |
| any other index | none: refused ssga reads $SPX, not <asked> | plugins/ssga/src/source.rs (file_url) |
| a replayed pull | none: the stored workbook goes through FACTS.parse | plugins/ssga/src/source.rs (parse) |
One read, from the wire to SSGA and back. Take GET /get/constituents?symbols=index:$SPX.
engine/crates/taji/src/wire/data.rsparses the query into aGetand hands it to the hub;constituents::askedrefuses a second index or a time word.- The hub walks the sources that read
(Index, Constituents, Now). A now answer already stored is served again whilereusable(engine/crates/taji-trading/src/hub/products.rs): until the next session opens, unlessrefresh=1. Nossgarule shortens that, so the file is one GET per trading day, however many panes ask. - A miss opens a pull in
pulls.dband callsraw::read, which callsSsga::raw_read. Ssga::getturns the ask into the URL withfile_url, which refuses a class that is notindexand any symbol but$SPX. It sends oneGETinsidecx.call, the provider's gate. The client comes fromtaji_brokerage::http::pooled(substrate/taji-brokerage/src/http.rs): a redirect is never followed, with a 20 s request timeout. A status other than 2xx becomesVendorError::Vendor("ssga: <status> <body>").- The hub stores the workbook as the pull's raw answer, in format
ssga-holdings-xlsx-1, withrequestset to[{"method":"GET","url":…}]. It then runsparse:holdingsopens the workbook, finds the header and the "As of" line, and reads each member;rows_jsonstamps eachknowable_utc = as_of + LAG_S. FACTS.rowsmaps{"rows": […]}toconstituentsrows;Hub::constituentsjoins them as above and the hub answers one Arrow IPC batch.
There are no orders: this plugin has no venue.
Why it is built this way
- One file, so one GET per read, whole. The file takes no range and states one day, so a read costs the whole workbook and
Span::Nowis its only shape. The hub's now-answer reuse, not a rule in this crate, holds the cost to one GET a trading day. H4b's hub test is to pin it. - The workbook is stored as SSGA served it.
raw_readkeeps the bytes (FORMATnames themssga-holdings-xlsx-1), andparseis a free function of the pages and the ask, so a stored pull replays to the same rows with no request. This follows the recipe in the//!header ofengine/crates/taji-trading/src/hub/raw.rs. A change to how the sheet is read is a new parse over old pulls; a change to the file's layout is a newFORMAT. - The sheet is found by its header, not by a row number.
memberslooks for the row namingName,TickerandWeight, and reads the columns by those words. The "As of" line is any cell above it startingAs of. A moved column or an extra fund line does not break it; a missing header or date is refused in words (no header row naming Name, Ticker and Weight,no "As of" line above the header) rather than read as an empty index. - A member is a row whose ticker starts with a letter. The cash row has ticker
-, the footnotes leave the ticker cell empty, and the fund's one contingent value right (a code such as2600001D, a weight near zero, in the file as of 2026-12-02) has a code that starts with digits: a fund holding, no index member. That one test removes all three with no list of their tickers or words, which SSGA can reword. Every one of the file's 502 real tickers is letters with an optional.class; the file marks no other column apart (the cash row shares the CVR's-SEDOL, but a new member could lack one too). - A weight that is no number refuses the file, by name.
AAPL: weight String("n/a") is no numberfails the whole parse. A silent skip would serve an index that sums short of 100 %. A float is read through its shortest decimal text, so8.25stays8.25and no binary rounding reaches the row (ADR 0007: the vendor's values as given). - The class ticker keeps its dot. The file spells Berkshire
BRK.B, and Taji'sequity:does too, so the join onlistingsand the quote read need no translation. A test pinsBRK.BandBF.B. - A redirect is a refusal, never followed. The file is only ever where
urlsays. The sharedpooledbuilder setsredirect::Policy::none(), so a moved file surfaces as the vendor's status. - The index is the file's, so the id is not generic.
urlanswers$SPXonly. A vendor plugin is named for its vendor and carries that vendor'stermsline and this page; a second issuer's file is a second plugin. - A product, not a vendor route. Clients see
constituents, never an SSGA path (ADR 0004). The product names no vendor, so a second provider can declare the samereadstriple. - The kernel computes the join, the plugin does not. Sector, quotes and ordering are the hub's (ADR 0001). The plugin states what the file states and nothing it would have to look up.
LAG_S = 136_800(38 h), from one reading. On 2026-12-03 the file as of Wed 02-Dec was last modified Thu 03-Dec 13:52 UTC, 37 h 52 m after that date's midnight. 38 h is the whole hours past it. The lag is fixed, not read fromLast-Modified, so a replay at any later time gives the sameknowable_utcand a readata past instant sees only what was knowable then. One observation is not a measured rule: the README lists the re-measure under Open, and a later one may move the number. Today the lag stampsknowable_utc; the source declares noavailable, so nothing yet holds a read until the stamp.- A 20 s timeout, one permit.
REQUEST_TIMEOUTbounds one GET of a workbook of hundreds of rows. One permit is Taji's own bound for a file read once a day, not a measured vendor ceiling.
Constraints and limits
- Rate. SSGA states none and Taji has measured none (see Open). The bound is the gate's 1 permit and the hub's reuse of a now answer.
- Release time.
LAG_Sstamps each rowknowable_utc = as_of + 136_800. A read whose instant is before that sees the join'scutinstead, never a row from the future; the source itself declares no release gate. - Symbology. An ask must be class
indexand the symbol$SPX. Anything else is refused before any request withVendorError::NoSource("ssga reads $SPX, not <asked>"), and the hub reports it asnot_servednamingssgaand why. The wire acceptsindex:SPX,index:$SPXandindex:SPX.Xand normalises them first. - Shape refusals. A file that is no workbook, has no sheet, no header row naming
Name,TickerandWeight, no "As of" line above it, an "As of" date that is notDD-Mon-YYYY(English month abbreviations), or a member whose weight is no number, fails whole, the error naming what was missing or the symbol. A pull holding more than one page fails asssga: <n> pages, not one. A format other thanssga-holdings-xlsx-1fails asssga parses no <format>. - Vendor errors. A non-2xx status, any 3xx included, is
VendorError::Vendorcarrying the status and the body's text. - What a weight is. A percent of the fund as the file states it, as of the "As of" date, which is earlier than the fetch. The weights are SPY's, so they track the S&P 500 within the fund's own tracking. No market cap and no cap-weighted sector figure comes from this source: no header of the file prints one.
- Terms. SSGA's clause is stated in the manifest and in Connections. The hub stores the workbook as a pull:
FACTS.stores_noneis false. The file is never committed, cached in the repo or served by Taji: the tests run on literal cells.
Examples
The sheet as the parser reads it. From members_read_from_cells and the helpers beside it (plugins/ssga/src/lib.rs), cells laid out as the file was measured on 2026-12-03 (names, ids and weights are the test's made-up literals):
Fund Name: State Street SPDR S&P 500 ETF Trust
Ticker Symbol: SPY
Holdings: As of 01-Dec-2026
Name Ticker Identifier SEDOL Weight Sector Shares Held Local Currency
APPLE INC AAPL 000000AA0 0000001 8.25 - 100000000 USD
…
US DOLLAR - … … 0.125 …
(an empty row)
State Street Global Advisors is now State Street Investment Management.
Portfolio holdings are as of the date indicated.
A row as parsed. a_member_is_a_row_knowable_after_the_files_date (plugins/ssga/src/source.rs) states Berkshire's Class B shares, with the file's 1 December 2026 date (1,796,083,200 s) and LAG_S:
{ "rows": [{
"symbol": "BRK.B", "name": null, "weight": "1.5",
"knowable_utc": 1796220000
}] }
1796220000 is 2026-12-02 14:00 UTC: 1,796,083,200 + 136,800. With the name read from the file the row carries "name": "BERKSHIRE HATHAWAY INC CL B", as a_dotted_class_ticker_is_kept reads it. The cash row (US DOLLAR, ticker -) is read by the_cash_row_and_the_notes_are_not_members and yields no row.
The request the pull keeps. Ssga::get records one GET:
[{ "method": "GET", "url": "https://www.ssga.com/library-content/products/fund-data/etfs/us/holdings-daily-us-en-spy.xlsx" }]
only_spx_has_a_file (plugins/ssga/src/source.rs) asserts this URL under a test base.
The join. a_member_source_is_joined_through_the_hub (engine/crates/taji-trading/src/hub/constituents.rs) drives a toy member source named like this one through the hub. With AAPL, BRK.B and a member no listing carries, the answer's symbol column is AAPL, BRK.B, ZZZZQ (largest weight first); AAPL has the listing's sector and the quoter's last of 200; BRK.B keeps its row with last null; and sources for AAPL names weight from the member source, last from the quoter and sector from listings. An index the source does not state is not_served, its skip naming $NDX.
A refusal. only_spx_has_a_file asserts file_url for index:$NDX errors with a message containing $NDX, and for equity:SPX errors. A weight n/a is held by a_member_with_no_numeric_weight_is_refused_by_name, and a missing header or date by a_sheet_without_the_header_or_the_date_is_refused. No capture of SSGA's real answer, and none of a live refusal.
Testing
No fixture directory exists. SSGA's file is never committed, so every offline test builds its sheet from literal cells; the live test reads the real file and keeps nothing.
- Offline, no network:
cargo test -p ssga --lib. This runs:plugins/ssga/src/lib.rs: members read from cells, the cash row and the notes dropped,BRK.BandBF.Bkept, a weight that is no number refused by name, a sheet without the header or the date refused, andas_ofover a leap day and four malformed dates, and a contingent value right dropped;plugins/ssga/src/source.rs: the URL for$SPXand the refusal of any other index or class, and a member as a row stampedas_of + LAG_S.
- Through the hub, offline:
cargo test -p taji-trading --lib constituents, the join and the refusal of a second index, over a toy member source; andcargo test -p ssga --test hub,Ssgaitself through a realHubover awiremockvendor serving a workbook written in the test:index:$SPX's members largest weight first, the cash row dropped, the day figures null with no quoter, andindex:$NDXnot_servednaming it; the same file holdsFACTS.fillsto the rows a workbook decodes. - Against SSGA, keyless:
cargo test -p ssga --test live -- --ignored --test-threads=1reads the real file throughSsga::raw_readandholdings(no key, no order; SKIP whenwww.ssga.comis unreachable) and asserts what the plugin relies on: a parse with no error, 495 to 510 members, weights summing to 99.5 to 100.5, an "As of" day within the last 5 weekdays (US Eastern, holidays not counted),BRK.Bamong the members, and no member whose ticker starts with a non-letter. On 2026-12-03 it passed on the file as of 2026-12-02, 502 members.
References
Read 2026-12-03 for the proposal behind this plugin; this page did not re-fetch them.
- SSGA SPY daily holdings: the file. Last fetched 2026-12-03 for its
Last-Modified. - Robinhood: agentic trading overview and Crypto API: no index list.
- Schwab Market Data's
/movers/{index}: the top movers of an index, not its members. Schwab's own portal specification answers 403 unsigned, soplugins/schwab/ARCHITECTURE.mdis the second source. - Massive: indices overview and All Tickers: index providers "determine the methodology and constituent lists".
- Databento: Core Indices and indices: an index's values and definition, no members.
- Measured behaviour and what is unmeasured of this plugin.
- Write a compiled-in provider.