Skip to main content

Module reserve

Module reserve 

Source
Expand description

Reserve A against remaining T − S − W − H (E17.4–E17.5). Quote O/F/A stay split.

Structs§

Quote
Operating cost O, fees F and positive recovery A are independent amounts.

Functions§

allot_offline
Finite offline allotment: cannot exceed remaining. Same owner and remaining cap.
cancel
Release a live hold. Duplicate cancel is idempotent.
expire
Hold expiry follows the same release as cancel.
reserve_hold
Reserve A = min(quote_a, remaining after class). Duplicate op_id is idempotent.