Expand description
Core domain models for the flow trading system.
This module contains the fundamental data structures that represent the domain entities.
The models in this module are primarily data structures with minimal business logic, following the principles of the hexagonal architecture to separate domain entities from their persistence and processing implementations.
Structs§
- Constant
Curve - A representation of a flat demand curve supporting interval, half-line, and full-line trading domains
- Constant
Curve Dto - A DTO to ensure that we always validate when we deserialize from an untrusted source
- Date
Time Range Query - A query type for dealing with datetime ranges
- Date
Time Range Response - The paginated response to a datetime query
- Demand
Group - A wrapper around an implementation of a HashMap, with values of f64.
- Demand
Record - Represents a demand entity in the flow trading system.
- Map
- A wrapper around an implementation of a HashMap, defaulting to values of f64.
- Outcome
Record - A timestamped record of an outcome from batch processing.
- Point
- A representation of a point for use in defining piecewise-linear curves
- Portfolio
Record - Represents a portfolio entity in the flow trading system.
- Product
Group - A wrapper around an implementation of a HashMap, with values of f64.
- PwlCurve
- A representation of a piecewise-linear, weakly monotone decreasing demand curve
- PwlCurve
Dto - DTO to ensure that we always validate when we deserialize from an untrusted source
- Value
Record - A timestamped record of a component of a user’s bid.
Enums§
- Constant
Curve Error - Errors that can occur when creating or validating a ConstantCurve
- Demand
Curve - A demand curve expressing a bidder’s willingness to pay at different rates.
- Demand
Curve Dto - DTO for demand curves to enable validation during deserialization
- Demand
Curve Error - Errors that can occur when constructing demand curves
- PwlCurve
Error - Errors that can occur when creating or validating a PwlCurve