wwzeng1 / CoralME

A simple, fast and garbage-free matching engine order book that you can use as a starting point for your matching engines.
Apache License 2.0
0 stars 0 forks source link

Implement Core Enums and Order Class for CoralME #26

Open sweep-nightly[bot] opened 3 weeks ago

sweep-nightly[bot] commented 3 weeks ago

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:

  1. CancelReason: Defines reasons for order cancellations.
  2. ExecuteSide: Specifies whether an order is a taker or maker.
  3. RejectReason: Enumerates reasons for order rejections.
  4. Side: Defines buy and sell sides with additional utility methods.
  5. TimeInForce: Specifies order duration (GTC, IOC, DAY).
  6. Type: Defines order types (MARKET, LIMIT).
  7. 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

Fixes

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.

Tracking ID: 164f105393