Reference / Trade execution

What the price records refuse

The check on a price weighs two records against each other, and each refuses what it is built from on its own terms.

Contents

The reading of the market

Its two moments — when the reading was taken, and when the book it read was stamped — must each be a whole number at or above nought where given. A true-or-false is refused by a test standing beside the one for kind, because a true-or-false answers as a whole number.

Its two figures — the width of the spread and the distance from the reference — are walked by name, and each held where given to being a finite figure of the exact kind at or above nought.

Its named source, where given, must be text with something left once trimmed. It is carried as it arrived rather than trimmed.

Every field may be absent

Each test stands behind one for absence. So a reading of the market with nothing in it at all is built without complaint, and what that costs is settled by the checking rather than here.

The record of limits

Its own staleness is held to a whole number at or above nought on the same terms. Its two caps are held to finite figures of the exact kind at or above nought.

Its named source is held to the same rule as the reading's, and neither is trimmed as it is stored. The checking trims both and lowers their case before comparing them, so the two records keep what they were given and the comparison does the tidying.

Source evidence
---
row: N73-01
baseline: 49aa659
created: 2026-11-08 21:33 UTC
modified: 2026-11-08 21:33 UTC
evidence:
  - claim: "Each of the snapshot's two moments, where given, must be a whole number at or above nought, with a true-or-false refused by a test standing beside the one for kind"
    source: "`nexus/core/validator/price_stage.py` 43-49, and 51-57"
  - claim: "Its two figures are walked by name and each, where given, held to being a finite figure of the exact kind at or above nought"
    source: "`nexus/core/validator/price_stage.py` 59-72"
  - claim: "Its named source, where given, must be text with something left once trimmed, and is carried as it arrived"
    source: "`nexus/core/validator/price_stage.py` 74-82"
  - claim: "Every field of the snapshot may be left out, each test standing behind one for absence"
    source: "`nexus/core/validator/price_stage.py` 43, and 51, and 61, and 74"
  - claim: "The limits record holds its own staleness to a whole number at or above nought on the same terms, and its two caps to finite figures of the exact kind at or above nought"
    source: "`nexus/core/validator/price_stage.py` 100-106, and 108-117"
  - claim: "Its named source is held to the same rule as the snapshot's, and neither is trimmed as it is stored"
    source: "`nexus/core/validator/price_stage.py` 171-179, against 74-82"
  - claim: "The checking trims both and lowers their case before comparing them, so the storing leaves that to the comparison"
    source: "`nexus/core/validator/price_stage.py` 351-354"
---

Edit this sourceCheckout revision · 7381aa49
Reference / keep your place
Find a passage