{
  "methodId": "DN-QUOTE-TIMING-1.0.0",
  "version": "1.0.0",
  "kind": "N012",
  "slug": "delayed-quote-stale-quote-clock-entitlement-2027",
  "title": "DN Quote Timing Comparison: method, source ledger and synthetic validation",
  "documentationCheckedOn": "2026-12-04",
  "guideEdition": "2027",
  "canonicalUrl": "https://decentralised.news/delayed-quote-stale-quote-clock-entitlement-2027",
  "evidenceType": "primary_documentation_review_with_original_synthetic_examples",
  "scope": "Two observations of the same quote feed, instrument, field and session. Original quote receipt remains separate from later inspection time.",
  "observedProviderMeasurements": false,
  "providerDataDownloaded": false,
  "formulas": {
    "offsetConvention": "offset = local clock minus independent reference clock; positive means the local clock is fast",
    "correctedReceipt": "recorded local receipt - verified constant offset",
    "correctedObservation": "recorded local inspection - verified constant offset",
    "rawAge": "recorded local inspection - source event",
    "correctedAge": "corrected inspection - source event",
    "eventToReceipt": "corrected receipt - source event; not isolated network transit",
    "timeSinceReceipt": "recorded local inspection - original local receipt",
    "excess": "corrected event age - documented intentional-delay baseline",
    "excessInterval": "[excess - combined uncertainty, excess + combined uncertainty]",
    "withinBand": "the entire excess interval is inside the inclusive range [0, reader additional-age allowance]",
    "aboveAllowance": "lower excess bound > additional-age allowance",
    "belowBaseline": "upper excess bound < 0",
    "boundaryUncertain": "interval overlaps a band boundary without being wholly inside",
    "progression": "observation B timestamp minus corresponding observation A timestamp; retain sign"
  },
  "assumptions": [
    "The same instrument, feed, quote field and session scope applies to both records.",
    "Source event and exact original receipt semantics are independently established.",
    "One local clock offset applies to both receipts and inspections throughout the window; unbounded drift or steps invalidate this model.",
    "The entered uncertainty covers source-clock uncertainty, local offset error, timestamp resolution and capture error.",
    "The update expectation concerns a later quote that should already be visible by B after entitlement delay; an open session alone is not sufficient.",
    "The intentional-delay baseline and comparison allowance are separate inputs; neither is silently inferred from quote age."
  ],
  "unknownHandling": "Unknown selectors are valid and keep the diagnostic unresolved. Unknown clock correction and entitlement use JSON null, never zero. Blank required timestamps or numerical fields for a declared-known baseline raise a useful error. Exact numerical zero is accepted only where explicitly supported.",
  "classificationPriority": [
    "unresolved_evidence",
    "unresolved_chronology",
    "investigate_regression",
    "unresolved_update_health",
    "investigate_no_advance",
    "unresolved_baseline_conflict",
    "investigate_age",
    "unresolved_boundary",
    "advancing_within_band"
  ],
  "parser": {
    "calendar": "Gregorian; years 1900–2100; validate components before Date.UTC",
    "precision": "integer milliseconds; no silent truncation of finer timestamps",
    "offsetProfile": "Z or explicit ±HH:MM through ±14:00; -00:00 is outside the supported explicit-offset profile",
    "excluded": [
      "unqualified local time",
      "epoch integers with guessed units",
      "leap-second notation",
      "calendar rollover",
      "automatic venue session or timezone-rule inference"
    ],
    "maximumObservationIntervalSeconds": 86400,
    "numericBoundsSeconds": {
      "clockOffset": [
        -86400,
        86400
      ],
      "uncertainty": [
        0,
        86400
      ],
      "intentionalDelay": [
        0,
        86400
      ],
      "allowance": [
        0,
        86400
      ]
    },
    "boundsAreImplementationLimits": true
  },
  "validation": {
    "runner": "node --test tests.mjs",
    "fixture": "example.json",
    "calculator": "tool.js",
    "knownAnswersIndependentlyRecorded": true,
    "casesPassedAtAuthorReview": 61,
    "coverage": [
      "advancing delayed feed",
      "clock-offset contribution",
      "stopped original record",
      "new receipt of old event",
      "quiet/frozen/snapshot ambiguity",
      "unknown evidence",
      "real-time explicit-zero baseline",
      "negative clock offset",
      "equivalent timezone offsets",
      "daylight-saving repeated hour",
      "leap-year validation",
      "inclusive boundaries",
      "uncertainty overlap",
      "negative chronology",
      "regressions",
      "millisecond arithmetic",
      "nonfinite, missing, malformed and unsupported inputs",
      "determinism and immutability"
    ]
  },
  "defaultExample": {
    "kind": "N012",
    "name": "Fictional delayed stream with an independently established fast local clock",
    "evidenceType": "synthetic",
    "inputs": {
      "feedLabel": "FICTIONAL EQUITY / same delayed quote stream",
      "identity": "same",
      "timestampMeaning": "verified",
      "deliveryMode": "streaming",
      "entitlement": "delayed",
      "entitlementDelay": "900",
      "entitlementRef": "FICTIONAL entitlement record: 900-second intentional delay",
      "clockEvidence": "verified",
      "clockOffset": "42",
      "uncertainty": "1",
      "clockRef": "FICTIONAL independent check: local clock 42 seconds fast, whole-window bound ±1 second",
      "updateExpectation": "expected",
      "updateRef": "FICTIONAL independently recorded later quote should be visible by observation B",
      "allowance": "10",
      "eventA": "2027-01-12T10:00:00Z",
      "receivedA": "2027-01-12T10:15:44Z",
      "observedA": "2027-01-12T10:15:45Z",
      "eventB": "2027-01-12T10:01:00Z",
      "receivedB": "2027-01-12T10:16:44Z",
      "observedB": "2027-01-12T10:16:45Z"
    },
    "expected": {
      "diagnosticStatus": "advancing_within_band",
      "rawAgeSeconds": [
        945,
        945
      ],
      "correctedAgeSeconds": [
        903,
        903
      ],
      "eventToReceiptSeconds": [
        902,
        902
      ],
      "timeSinceReceiptSeconds": [
        1,
        1
      ],
      "excessSeconds": [
        3,
        3
      ],
      "excessLowerSeconds": [
        2,
        2
      ],
      "excessUpperSeconds": [
        4,
        4
      ],
      "eventAdvanceSeconds": 60,
      "receiptAdvanceSeconds": 60,
      "observationAdvanceSeconds": 60
    }
  },
  "limitations": [
    "No provider connection or clock query.",
    "No source authentication, timestamp-accuracy guarantee, feed-completeness check, price-accuracy test or outage certification.",
    "No strategy, order, execution or investment suitability assessment.",
    "Two observations cannot reconstruct missing event history, sequence gaps or corrections.",
    "An unchanged timestamp can reflect quiet trading, a product mode, duplicate delivery or timestamp resolution.",
    "A known display entitlement is not a licence to redistribute market data."
  ],
  "sources": [
    {
      "id": "alpaca-stock-stream",
      "title": "Alpaca — Real-time Stock Data",
      "url": "https://docs.alpaca.markets/us/docs/real-time-stock-pricing-data",
      "reviewedOn": "2026-12-04",
      "supports": [
        "Separate SIP, IEX and 15-minute delayed SIP endpoints.",
        "Authentication fails for a feed outside the subscription.",
        "Quote timestamp schema specifies RFC 3339 and nanosecond precision."
      ],
      "doesNotEstablish": [
        "Individual account entitlement",
        "Observed provider latency",
        "Source-clock accuracy",
        "Permission to redistribute a licensed feed"
      ]
    },
    {
      "id": "ibkr-data-types",
      "title": "Interactive Brokers — Delayed Market Data, TWS API",
      "url": "https://www.interactivebrokers.com/docs/tws-api/doc/md/delayed-data",
      "reviewedOn": "2026-12-04",
      "supports": [
        "Live, frozen, delayed and delayed-frozen data types are distinct.",
        "The documented callback reports the type returned."
      ],
      "doesNotEstablish": [
        "Uniform delay for every market and account",
        "Account-specific availability",
        "A measured service-level agreement"
      ]
    },
    {
      "id": "ibkr-llc-scope",
      "title": "Interactive Brokers — Why do I not receive delayed U.S. Stock data?",
      "url": "https://www.interactivebrokers.com/support/faq/content/not-receive-delayed-u-s-64163147",
      "reviewedOn": "2026-12-04",
      "supports": [
        "FAQ states delayed US equity quotations are unavailable to Interactive Brokers LLC clients.",
        "FAQ distinguishes paper and free-trial accounts."
      ],
      "doesNotEstablish": [
        "Eligibility of any individual reader",
        "A rule for every other IBKR legal entity or market"
      ]
    },
    {
      "id": "nist-time-transfer",
      "title": "NIST — Internet Time Service",
      "url": "https://www.nist.gov/pml/time-and-frequency-division/time-distribution/internet-time-service-its",
      "reviewedOn": "2026-12-04",
      "supports": [
        "NTP estimates and compensates for signalling delay.",
        "Network asymmetry and instability contribute to transfer errors.",
        "A client record and reference are needed to interpret a local offset."
      ],
      "doesNotEstablish": [
        "A clock check performed by DN",
        "A provider clock bound",
        "A browser timestamp accuracy certificate"
      ]
    },
    {
      "id": "rfc3339",
      "title": "IETF RFC 3339 — Date and Time on the Internet: Timestamps",
      "url": "https://www.rfc-editor.org/rfc/rfc3339.html",
      "reviewedOn": "2026-12-04",
      "supports": [
        "Numeric UTC-offset representation.",
        "An explicit offset distinguishes instants in a repeated local clock hour."
      ],
      "doesNotEstablish": [
        "Physical clock synchronization",
        "Venue session or daylight-saving calendar validation"
      ]
    }
  ],
  "rights": {
    "originalCompilationAndSyntheticExamples": "https://creativecommons.org/licenses/by/4.0/",
    "thirdPartySources": "Linked only; retain their own rights and are not relicensed or bundled as market-data extracts."
  },
  "downloads": {
    "method": "/data/continuation-2027/v1/delayed-quote-stale-quote-clock-entitlement-2027/method.json",
    "example": "/data/continuation-2027/v1/delayed-quote-stale-quote-clock-entitlement-2027/example.json",
    "calculator": "/data/continuation-2027/v1/delayed-quote-stale-quote-clock-entitlement-2027/calculator.js",
    "archive": "/data/continuation-2027/v1/delayed-quote-stale-quote-clock-entitlement-2027/evidence-pack.zip"
  }
}
