Skip to main content

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.

OfferedEndpointSource, 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.xlsxthe 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>.xlsxSPY 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.xlsxSPY 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.pdfSPY 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.pdfSPY fund page, 2026-12-04

Code map​

  • plugins/ssga/taji-plugin.toml: the manifest, with id ssga, name SSGA, free = true, the terms line, one [[sources]] and no [[link]].
  • plugins/ssga/src/lib.rs: read holdings first, the workbook's bytes to a Holdings. It also owns Plugin::build (registers source::Ssga::new), the constants ID, HOST, INDEX, LAG_S and FORMAT, url (the file's URL under a base, None for any index but $SPX), provider (the hub's ProviderId), members (the sheet's cells to members), and as_of (a DD-Mon-YYYY date at 00:00 UTC). Its unit tests build sheets from literal cells.
  • plugins/ssga/src/source.rs: the Source impl Ssga, its FACTS, and the parse. Read Ssga::get first, the one place a request leaves the process. parse turns the stored page into rows, and rows_json states each as a JSON object.
  • plugins/ssga/tests/live.rs: the live test, Ssga::raw_read against the real file.
  • plugins/ssga/Cargo.toml: depends on taji-plugin with its vendor feature, calamine for the workbook, jiff for the date and rust_decimal for 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.

  • seat answers Seated { history: None, live: None, kept: true }, so the source serves reads with no client or stream built.
  • probe answers None: no plan to learn, no grants.
  • raw_read answers Ssga::get's Raw, so the hub stores every answer as a pull.
  • read is the same GET, then parse. The hub calls it only where raw_read answers None, which never happens here.

FACTS (plugins/ssga/src/source.rs):

FieldValueWhat the hub does with it
reads(Index, Constituents, Now)the one read it routes here: a now answer, no span
seatKeylessseated at boot and at each unlock
formats, parsessga-holdings-xlsx-1parses a stored page again with no request
permits1the provider gate's shared permits: a second call waits
fills(Index, Constituents): name, weightthe optional columns the file's rows fill; the kernel's join states the rest (held by the_decoded_rows_fill_what_facts_declares)
rowsnot setthe Facts::NONE default maps raw["rows"] to constituents rows: symbol, name, weight, knowable_utc
bars_capCAP, no classes or intervalsthe 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:

  • name the listing's, else the file's; sector and industry from the bundled listings;
  • last, change, change_pct and delayed from one now quotes read of every member through whichever linked sources quote it, null where none answers;
  • sources names who gave each column (ssga for weight, listings for sector);
  • rows run largest weight first, then by symbol, a member with no weight last;
  • a row's knowable_utc is the latest of its inputs', never past the read's instant.
Taji surfaceVendor callFile
GET /get/constituents?symbols=index:$SPXGET /library-content/products/fund-data/etfs/us/holdings-daily-us-en-spy.xlsxplugins/ssga/src/source.rs (Ssga::get)
any other indexnone: refused ssga reads $SPX, not <asked>plugins/ssga/src/source.rs (file_url)
a replayed pullnone: the stored workbook goes through FACTS.parseplugins/ssga/src/source.rs (parse)

One read, from the wire to SSGA and back. Take GET /get/constituents?symbols=index:$SPX.

  1. engine/crates/taji/src/wire/data.rs parses the query into a Get and hands it to the hub; constituents::asked refuses a second index or a time word.
  2. The hub walks the sources that read (Index, Constituents, Now). A now answer already stored is served again while reusable (engine/crates/taji-trading/src/hub/products.rs): until the next session opens, unless refresh=1. No ssga rule shortens that, so the file is one GET per trading day, however many panes ask.
  3. A miss opens a pull in pulls.db and calls raw::read, which calls Ssga::raw_read.
  4. Ssga::get turns the ask into the URL with file_url, which refuses a class that is not index and any symbol but $SPX. It sends one GET inside cx.call, the provider's gate. The client comes from taji_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 becomes VendorError::Vendor("ssga: <status> <body>").
  5. The hub stores the workbook as the pull's raw answer, in format ssga-holdings-xlsx-1, with request set to [{"method":"GET","url":…}]. It then runs parse: holdings opens the workbook, finds the header and the "As of" line, and reads each member; rows_json stamps each knowable_utc = as_of + LAG_S.
  6. FACTS.rows maps {"rows": […]} to constituents rows; Hub::constituents joins 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::Now is 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_read keeps the bytes (FORMAT names them ssga-holdings-xlsx-1), and parse is 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 of engine/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 new FORMAT.
  • The sheet is found by its header, not by a row number. members looks for the row naming Name, Ticker and Weight, and reads the columns by those words. The "As of" line is any cell above it starting As 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 as 2600001D, 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 number fails the whole parse. A silent skip would serve an index that sums short of 100 %. A float is read through its shortest decimal text, so 8.25 stays 8.25 and 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's equity: does too, so the join on listings and the quote read need no translation. A test pins BRK.B and BF.B.
  • A redirect is a refusal, never followed. The file is only ever where url says. The shared pooled builder sets redirect::Policy::none(), so a moved file surfaces as the vendor's status.
  • The index is the file's, so the id is not generic. url answers $SPX only. A vendor plugin is named for its vendor and carries that vendor's terms line 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 same reads triple.
  • 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 from Last-Modified, so a replay at any later time gives the same knowable_utc and a read at a 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 stamps knowable_utc; the source declares no available, so nothing yet holds a read until the stamp.
  • A 20 s timeout, one permit. REQUEST_TIMEOUT bounds 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_S stamps each row knowable_utc = as_of + 136_800. A read whose instant is before that sees the join's cut instead, never a row from the future; the source itself declares no release gate.
  • Symbology. An ask must be class index and the symbol $SPX. Anything else is refused before any request with VendorError::NoSource("ssga reads $SPX, not <asked>"), and the hub reports it as not_served naming ssga and why. The wire accepts index:SPX, index:$SPX and index:SPX.X and normalises them first.
  • Shape refusals. A file that is no workbook, has no sheet, no header row naming Name, Ticker and Weight, no "As of" line above it, an "As of" date that is not DD-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 as ssga: <n> pages, not one. A format other than ssga-holdings-xlsx-1 fails as ssga parses no <format>.
  • Vendor errors. A non-2xx status, any 3xx included, is VendorError::Vendor carrying 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_none is 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.B and BF.B kept, a weight that is no number refused by name, a sheet without the header or the date refused, and as_of over a leap day and four malformed dates, and a contingent value right dropped;
    • plugins/ssga/src/source.rs: the URL for $SPX and the refusal of any other index or class, and a member as a row stamped as_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; and cargo test -p ssga --test hub, Ssga itself through a real Hub over a wiremock vendor 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, and index:$NDX not_served naming it; the same file holds FACTS.fills to the rows a workbook decodes.
  • Against SSGA, keyless: cargo test -p ssga --test live -- --ignored --test-threads=1 reads the real file through Ssga::raw_read and holdings (no key, no order; SKIP when www.ssga.com is 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.B among 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.