.md · 2 sections · 16055 characters
workbench: Research Packages/Wholesale Metals/WHOLESALE_METALS_DATA_SPINE_SPEC.md
Canonical source SHA-256: d04800b6d3541131e8e2d77dda7f6c819e4ac9fd5a8a8c93094aa2fd1333f175
Served copy SHA-256: d04800b6d3541131e8e2d77dda7f6c819e4ac9fd5a8a8c93094aa2fd1333f175
Owner evidence cutoffs: {}
These are package-level cutoffs, not a claim that this source was rechecked on those dates. Use its own publication and capture dates.
Owners: wholesale-metals
Section 1 of 2
# 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
The data spine must not create a single fake “gold market” series by joining unlike objects.
Every observation must preserve:
The spine should support three different products without mixing them:
| 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.
| 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 |
| 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 |
| 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 |
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:
An issue/stop record is not automatically physical load-out. A warrant transfer is not a bar movement. Keep the steps separate.
Fields:
Fields:
This table is mandatory for Shanghai/New York/London basis analysis.
## 4. Official source inventory
| 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 |
| 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:
Output both raw and adjusted basis. Never label either “physical premium” without defining the London claim and COMEX contract.
Section 2 of 2
### 5.2 Shanghai normalized premium
Formula components:
Publish a confidence grade. If tax or border status is unresolved, the premium is provisional.
Do not use only open_interest / registered_stock.
Report a panel:
No single ratio is a default probability.
### 5.4 Title-conversion latency
Track separately:
This is likely more revealing than raw vault totals during stress.
## 6. Revision and archive rules
### Wave 1 — freely available authoritative spine
### Wave 2 — licensed and harder historical data
### Wave 3 — operating data not presently public
Wave 3 should be represented as documented gaps until obtained—not estimated into existence.
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:
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.