# Wholesale Metals Data Spine — Specification Updated: 2026-07-12 Status: Phase 2 design Purpose: auditable 2019–2026 daily and event-level record for New York, London, Shanghai, and Hong Kong metals infrastructure --- ## 1. Design principle The data spine must not create a single fake “gold market” series by joining unlike objects. Every observation must preserve: 1. legal object; 2. venue and contract/account system; 3. price or quantity type; 4. physical location and border status; 5. currency and unit; 6. timestamp and business date; 7. delivery month or settlement tenor; 8. tax treatment where material; 9. source and retrieval timestamp; 10. revision/restatement history. The spine should support three different products without mixing them: - **factual timeline:** institutional and rule changes; - **market-state panel:** daily prices, positions, stocks, warrants, deliveries, and clearing/vault data; - **derived conversion panel:** normalized basis and stress measures with every assumption exposed. --- ## 2. Source hierarchy | Rank | Source class | Permitted use | |---|---|---| | A | Exchange/regulator/government machine-readable file or signed filing | Authoritative observation or rule state | | B | Official PDF, rulebook, notice, annual report, benchmark statement | Authoritative event/document record; extract carefully | | C | Official webpage/dashboard without downloadable history | Current state or source locator; archive snapshots needed | | D | Audited fund/custodian disclosure, bar list, SEC prospectus | Product/account-specific fact | | E | Institutional research using cited market data | Corroboration and methodology; not a substitute where raw data exist | | F | Financial reporting | Gap-filling with source/date label | | G | Social post, screenshot, newsletter | Event-archive capture only until independently verified | No derived series should silently replace a source series. Every transformation gets a method version. --- ## 3. Core tables ### 3.1 `entities` | Field | Description | |---|---| | `entity_id` | Stable project identifier | | `legal_name` | Exact legal name | | `display_name` | Human-readable label | | `jurisdiction` | Formation jurisdiction | | `legal_form` | Corporation, company limited by guarantee, membership legal person, government body, division, platform, etc. | | `parent_entity_id` | Direct legal/economic parent where established | | `owner_entity_ids` | Shareholders/members with ownership rights | | `regulator_entity_ids` | Primary regulators/supervisors | | `self_regulatory` | Boolean plus authority source | | `market_role` | DCM, DCO/CCP, bilateral utility, benchmark administrator, vault, clearer, custodian, refiner, border authority, etc. | | `title_record_role` | Whether entity creates, controls, or merely reads the authoritative title record | | `guarantee_role` | CCP guarantee, bilateral credit, custody only, government guarantee, none/unknown | | `founded_date` | Verified legal formation/operational date | | `date_precision` | exact/day, month, year, approximate | | `source_url` | Formation/governance source | ### 3.2 `documents` | Field | Description | |---|---| | `document_id` | Stable hash or project ID | | `title` | Exact title | | `document_type` | Charter, bylaws, rulebook, participant agreement, custody agreement, filing, notice, manual, dataset documentation | | `issuer_entity_id` | Issuing legal entity | | `counterparty_scope` | Public/member/customer/bilateral/regulator | | `effective_date` | Legal effective date | | `published_date` | Publication date | | `supersedes_document_id` | Prior version | | `status` | current, superseded, proposed, withdrawn, historical, unknown | | `access_status` | public-full, public-summary, confidentiality-gated, customer-specific, direct-request, registry/FOIA candidate, unavailable | | `governing_law` | If specified | | `source_url` | Direct file, not generic homepage where possible | | `retrieved_at` | UTC retrieval timestamp | | `sha256` | Original-file hash | | `local_archive_path` | Immutable stored copy when authorized | | `legal_effect_note` | What the document actually controls | ### 3.3 `institutional_events` | Field | Description | |---|---| | `event_id` | Stable ID | | `event_date` / `event_time` | Occurrence clock | | `effective_date` | Separate legal/operational clock | | `announcement_date` | Separate publication clock | | `entity_ids` | Actors affected | | `event_type` | formation, admission, rule change, product launch, vault approval, suspension, margin change, outage, default, data revision | | `legal_object` | Warrant, unallocated account, allocated bar, bullion account, standard warrant, future, benchmark, border permit | | `description_fact` | Source-grounded description | | `inference_note` | Explicit analytical implication | | `source_document_ids` | Controlling sources | | `charting_anchor` | Actual/proposed time and location, with convention label | ### 3.4 `market_prices` Minimum fields: `timestamp_utc`, `business_date`, `venue`, `instrument_id`, `contract_month`, `tenor`, `price_type` (trade/settlement/fix/bid/offer), `currency`, `price_unit`, `value`, `volume`, `open_interest`, `source_document_id`, `revision_id`. Do not put LBMA PM, COMEX active future, SHAU PM, SGE Au99.99, SHFE AU, and Hong Kong HAU in one column without instrument identity. ### 3.5 `physical_stock_and_title` | Field | Description | |---|---| | `date` | Observation date | | `system` | COMEX, London aggregate, BoE, SGE, SHFE, HKPMCC | | `facility_id` | Vault/depository/warehouse when public | | `metal` | Gold/silver/etc. | | `bar_form` | 100 oz, kilo, ~400 oz, 1,000 oz, 3 kg, etc. | | `fineness` | Minimum/actual where known | | `title_status` | eligible, registered, pledged, allocated, unallocated, standard warrant, safe deposit, bonded, duty-paid | | `quantity` | Fine or gross units as source states | | `unit` | troy oz, kg, tonnes, bars, warrants | | `owner_disclosed` | boolean | | `beneficial_owner_id` | Only when actually disclosed; never infer from vault operator | | `received` / `withdrawn` | Daily movement where available | | `revision_flag` | Source corrected/reclassified observation | | `source_document_id` | Exact report | ### 3.6 `deliveries_and_warrants` Fields: - venue/product/contract month; - notice date, intent date, assignment date, delivery date; - issues/stops by clearing member where officially public; - contracts and fine quantity; - warrant registrations, transfers, cancellations, load-outs; - EFP/EFRP volume separately from exchange delivery; - settlement price and invoice value; - failure/damage/emergency status; - source and subsequent correction. An issue/stop record is not automatically physical load-out. A warrant transfer is not a bar movement. Keep the steps separate. ### 3.7 `clearing_and_risk` Fields: - initial/performance-bond margin by product and account class; - variation settlement cycles; - guaranty-fund size and CME/CCP contribution; - collateral type, cap, haircut, lien/control terms; - position limits, accountability, reportable levels; - price limits and emergency adjustments; - clearing-member/default event; - recovery tool activated; - rule/model version, including SPAN/SPAN 2. ### 3.8 `cross_border_and_tax` Fields: - origin/destination jurisdiction; - bonded or duty-paid status; - import/export permit authority and licensee; - tariff/VAT/tax rule and effective date; - eligible refiner/brand and production cutoff; - bar transformation/refining requirement; - customs/transport window; - source document. This table is mandatory for Shanghai/New York/London basis analysis. --- ## 4. Official source inventory ### COMEX/CME/CFTC | Dataset | Frequency | Principal source | Access note | |---|---|---|---| | Gold/silver registered and eligible stocks | Daily | CME NYMEX/COMEX Delivery Notices & Stocks | Current XLS/XLSX/PDF links; historical archive and revision capture required | | Pledged warrant quantities | Daily/periodic where exposed | CME stock/collateral reports | Confirm field availability across years | | Issues and stops | Daily/monthly/YTD | CME delivery notices | Download original reports by trade date | | Futures prices, volume, open interest | Daily | CME Daily Bulletin; official settlement files | Historical bulk access may require CME DataMine/license | | EFP/EFRP volume | Daily/periodic | CME bulletin/market reports | Preserve Rule 538 category | | Margin/performance bond | Event/daily | CME clearing advisories and margin files | Capture effective timestamp and account class | | Position limits/accountability/reportable levels | Rule state | CME Market Regulation notices; CFTC filings | Version by product and effective date | | Bank/trader positioning | Weekly/monthly | CFTC COT and Bank Participation Reports | Aggregate only; cannot identify JPMorgan | | DCO resources/PFMI | Quarterly | CME CPMI-IOSCO disclosures | Default-resource panel | | Rule filings | Event | CME Part 40/CFTC industry filing indexes | Archive filing and all exhibits | ### London/LBMA/BoE/ICE | Dataset | Frequency | Principal source | Access note | |---|---|---|---| | LBMA benchmark prices | Twice daily/daily | ICE Benchmark Administration/LBMA | Licensing may constrain redistribution | | LPMCL clearing volume/value/transfers | Monthly | LBMA clearing data | Net transfers, not gross outstanding credit | | London vault holdings | Monthly | LBMA vault data | Aggregate gold/silver; includes BoE gold in aggregate methodology | | BoE gold custody quantity | Monthly | BoE statistics | Allocated official/commercial custody aggregate, not owner-level | | Benchmark auction imbalance/volume | Per auction | IBA auction data | Check downloadable/history/license terms | | Lease/bullion financing proxy | Daily-derived | Official rates plus market gold swap/forward source | No official universal lease-rate series; method must be explicit | | Good Delivery status and production cutoffs | Event/current | LBMA GDL and notices | Snapshot list; preserve suspensions and legacy-bar treatment | | GBI adoption/milestones | Event/periodic | LBMA GBI pages/reports | Ownership not included | | LPMCL membership/vault/weigher lists | Event/current | LPMCL/LBMA | Snapshot and diff | ### SGE/SHFE/PBoC/Customs/Hong Kong | Dataset | Frequency | Principal source | Access note | |---|---|---|---| | SHAU AM/PM and SGE product prices | Daily/intraday | SGE official data | Preserve CNY, gram, fixing timestamp | | SGE trading/withdrawal/delivery data | Daily/monthly | SGE statistics/reports | Product/account classification required | | SHFE AU/AG settlement, volume, OI | Daily | SHFE market data | Contract-month series, CNY/gram or kg conventions | | SHFE standard warrants | Daily | SHFE warrant reports | Separate gold/silver, warehouse, duty status | | SGE/SHFE vault/member/refiner rosters | Current/event | Exchange official lists and notices | Snapshot and diff; Chinese version controls | | PBoC gold import/export rules | Event | PBoC/Customs official gazette/consultation | Archive attachments and redlines | | China trade flows | Monthly | General Administration of Customs | Partner/origin and form codes; reconcile Hong Kong re-exports | | HKPMCC balances/volumes | Trial/future | HK government/HKPMCC | Public series not yet established | | HAU reference price | Daily/future | HKPMCC/HKEX/official methodology | Confirm administrator and methodology | | Delivery Connect transfers | Event/future | HKPMCC/SGE announcements | Need operating manual and quantitative series | --- ## 5. Derived conversion measures Every derived series requires `method_id`, version, formula, and inputs. ### 5.1 COMEX futures versus London spot basis At minimum adjust for: - matched timestamp; - futures maturity and forward carry; - USD funding rate; - gold/silver lease or forward rate; - bar-form conversion; - transport, insurance, and vault cost; - tariff expectation; - contract deliverability and location. Output both raw and adjusted basis. Never label either “physical premium” without defining the London claim and COMEX contract. ### 5.2 Shanghai normalized premium Formula components: - SGE/SHFE instrument identity; - AM/PM/settlement timestamp; - CNY or CNH FX matched to time; - grams/kilograms to fine troy ounces; - VAT, invoice, duty, and import-license status; - domestic duty-paid versus bonded International Board location; - bar size/fineness/refining conversion; - financing/storage/transport; - executable bid/offer and volume. Publish a confidence grade. If tax or border status is unresolved, the premium is provisional. ### 5.3 Delivery pressure Do not use only `open_interest / registered_stock`. Report a panel: - spot-month open interest; - notices tendered; - issues/stops completed; - registered, eligible, and pledged stocks; - CME's contemporaneous deliverable-supply methodology; - warrant registrations/cancellations/load-outs; - EFP volume; - margin and lease/basis changes; - facility throughput/capacity notices. No single ratio is a default probability. ### 5.4 Title-conversion latency Track separately: - trade-to-clearing; - clearing-to-delivery assignment; - assignment-to-warrant/title; - warrant-to-load-out; - London unallocated-to-allocation; - BoE allocation/withdrawal queue where disclosed; - offshore/bonded-to-mainland conversion; - HKPMCC-to-SGE transfer. This is likely more revealing than raw vault totals during stress. --- ## 6. Revision and archive rules 1. Store every original file with retrieval date and SHA-256. 2. Never overwrite a report when an exchange republishes it; create a revision record. 3. Compute semantic diffs for rules, agreements, rosters, methodologies, and website language. 4. Preserve both announcement and effective dates. 5. Store source timezone and convert to UTC without discarding local time. 6. Mark weekends/holidays and exchange business-date conventions explicitly. 7. Distinguish “not published,” “zero,” “not applicable,” and “retrieval failed.” 8. Respect market-data licenses; derived results must not imply permission to redistribute restricted raw data. --- ## 7. Implementation order ### Wave 1 — freely available authoritative spine 1. Institutional events and documents, 2019–2026. 2. CME stock/delivery reports and CFTC positioning. 3. LBMA monthly clearing/vault and BoE custody data. 4. SGE/SHFE official daily prices, volumes, open interest, and warrants where downloadable. 5. Entity/roster snapshots and rule notices. ### Wave 2 — licensed and harder historical data 1. CME historical settlement/open-interest bulk series. 2. IBA benchmark auction history under applicable license. 3. China customs flows by product/form/origin. 4. Intraday timestamp-matched basis inputs. ### Wave 3 — operating data not presently public 1. Warrant registration/cancellation and pledged-status detail if absent from public reports. 2. LPMCL allocation calls, member credit limits, and AURUM finality/volume detail. 3. Vault throughput and withdrawal latency. 4. HKPMCC balances, Delivery Connect conversions, and RTGS/DvP timestamps. Wave 3 should be represented as documented gaps until obtained—not estimated into existence. --- ## 8. Observatory integration The first useful view is not another top-level tab. Add a Metals Infrastructure mode inside the existing Money/World/Clearing views with four synchronized lanes: 1. **PRICE:** named instruments and normalized bases; 2. **TITLE:** unallocated, allocated, eligible, registered, pledged, standard-warrant states; 3. **FLOW:** issues/stops, load-in/load-out, allocation, imports, Delivery Connect; 4. **RULE:** margin, eligibility, membership, vault, border, and emergency changes. Filters should include legal object, venue, metal, location, title state, entity, source rank, and confirmed/unverified status. The chart should make it impossible to confuse a price spike with a title transfer or a warrant cancellation with a physical withdrawal.