This pull request implements essential enums and the Order class for the CoralME trading system, providing a foundation for order management and execution.
Description
This pull request introduces several key enums and the Order class, which are fundamental to the CoralME trading system:
CancelReason: Defines reasons for order cancellations.
ExecuteSide: Specifies whether an order is a taker or maker.
RejectReason: Enumerates reasons for order rejections.
Side: Defines buy and sell sides with additional utility methods.
TimeInForce: Specifies order duration (GTC, IOC, DAY).
Type: Defines order types (MARKET, LIMIT).
Order: Implements the core Order class with essential fields and methods.
These components provide a robust structure for handling various aspects of order management, including order creation, execution, cancellation, and rejection. The enums use the CharEnum interface and CharMap for efficient mapping and lookup.
Summary
Implemented CancelReason, ExecuteSide, RejectReason, Side, TimeInForce, and Type enums
Added Order class with fields for order properties and execution status
Utilized CharEnum interface and CharMap for efficient enum handling
Included FIX protocol codes in relevant enums for compatibility
Added utility methods in Side enum for order comparison and validation
Updated Order class with initialization method and essential fields
Purpose
This pull request implements essential enums and the Order class for the CoralME trading system, providing a foundation for order management and execution.
Description
This pull request introduces several key enums and the Order class, which are fundamental to the CoralME trading system:
These components provide a robust structure for handling various aspects of order management, including order creation, execution, cancellation, and rejection. The enums use the CharEnum interface and CharMap for efficient mapping and lookup.
Summary
CancelReason
,ExecuteSide
,RejectReason
,Side
,TimeInForce
, andType
enumsOrder
class with fields for order properties and execution statusCharEnum
interface andCharMap
for efficient enum handlingSide
enum for order comparison and validationOrder
class with initialization method and essential fieldsFixes
Fixes #1. Continue the conversation here: http://localhost:3000/c/f9f028dd-ab6a-4b6f-979b-103ad1a6207b.
To have Sweep make further changes, please add a comment to this PR starting with "Sweep:".
:book: For more information on how to use Sweep, please read our documentation.