Reference / Trade execution

What a strategy's action is checked for

What a strategy asks for is one record of thirteen fields, and each is weighed on its own before the kind of action is considered at all.

Contents

The one field required

The kind of action. It must be one of the four named kinds, and nothing stands in front of that test.

The twelve that may be absent

Every other field has its test standing behind a test for its absence. So leaving a field out is never refused here — what a given kind of action needs is settled later.

Five kinds

The direction, the way of working, the kind of order and the maker preference must each be one of their own named kinds. A bare word carrying the right spelling fails, the test asking what the value is rather than what it says.

Three figures

The size, the amount of money to spend and the reference price must each be a finite figure of the exact kind standing above nought.

One count

The deadline must be a whole number above nought. A true-or-false is refused by a test standing beside the one for kind, which is there because a true-or-false answers as a whole number.

Two references

The trade's and the command's references must each be text with something left once trimmed. They are tested trimmed and carried as they arrived.

Then the kind

Only once all thirteen have been weighed are the requirements of the kind looked at. So a bad figure is reported before a missing field.

The thirteen carry fourteen refusals between them: the fields a change rewrites are refused both for not being a mapping and for being an empty one.

Source evidence
---
row: N67-01
baseline: 49aa659
created: 2026-11-08 20:17 UTC
modified: 2026-11-08 20:17 UTC
evidence:
  - claim: "The kind of action is the one field required outright, held to being one of the four named kinds"
    source: "`nexus/strategy/action.py` 77-79"
  - claim: "Every other field is held to its own test standing behind a test for its absence, so leaving one out is never a refusal here"
    source: "`nexus/strategy/action.py` 81, or 85, or 93, or 101, or 107, or 134, or 142, or 149, or 156, or 162"
  - claim: "Five fields are held to being one of their own named kinds: the direction, the way of working, the kind of order, the maker preference and the kind of action"
    source: "`nexus/strategy/action.py` 81-83, or 101-105, or 107-109, or 156-160, with the kind of action at 77-79"
  - claim: "Three figures are each held to being a finite figure of the exact kind standing above nought: the size, the amount of money and the reference price"
    source: "`nexus/strategy/action.py` 85-91, or 93-99, or 162-168"
  - claim: "The deadline is held to being a whole number above nought, with a true-or-false refused by a test standing beside the one for kind"
    source: "`nexus/strategy/action.py` 134-140"
  - claim: "The two references are each held to being text with something left once trimmed, and are carried as they arrived"
    source: "`nexus/strategy/action.py` 142-147, or 149-154"
  - claim: "Only once all thirteen fields have been weighed are the requirements of the kind looked at, those thirteen carrying fourteen refusals between them"
    source: "`nexus/strategy/action.py` 170, standing after 77-168, the extra refusal at 125-127"
---

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