Reference / Trade execution

What each kind of command must carry

Each of the three kinds of command is held to its own list, weighed after the checks every command makes have passed.

Contents

A new order

It must carry a side, a self-trade setting, and exactly one of a size or a spend, which is to say one of the two and only one.

A change, and a cancel

Each is refused for carrying any of eleven things: no side, no size, no spend, no self-trade setting, no way of executing, no kind of order, no settings, no deadline, no maker preference, no reference price, no strategy name.

Written twice over

The two lists are the same eleven, and each kind has its own copy of them. A change is refused by one test and a cancel by another, rather than by a check they share.

Source evidence
---
row: N11-04
baseline: 49aa659
created: 2026-11-07 19:33 UTC
modified: 2026-11-07 21:10 UTC
evidence:
  - claim: "The checks each kind makes are reached only once the checks every command makes have passed"
    source: "`nexus/infrastructure/praxis_connector/trade_command.py` 221, standing after the last of them at 215-219"
  - claim: "A new order must carry a side, a self-trade setting, and exactly one of a size or a spend"
    source: "`nexus/infrastructure/praxis_connector/trade_command.py` 227-229, or 230-232, or 233-235, or 236-238, all under the test at 226"
  - claim: "A change must carry none of the eleven things beyond the common ones, each refused on its own"
    source: "`nexus/infrastructure/praxis_connector/trade_command.py` 241-273 under the test at 240"
  - claim: "A cancel must carry none of those eleven either, refused the same way rather than by a check the two share"
    source: "`nexus/infrastructure/praxis_connector/trade_command.py` 276-308 under the test at 275"
---

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