From 93743d11b94198ab61e9677df632e2c3cce4b5ef Mon Sep 17 00:00:00 2001 From: skynetcap <100323448+skynetcap@users.noreply.github.com> Date: Sat, 18 Nov 2023 19:19:29 -0800 Subject: [PATCH] Phoenix: Add FIFOOrderId, FIFORestingOrder --- .../com/mmorrell/phoenix/model/FIFOOrderId.java | 14 ++++++++++++++ .../mmorrell/phoenix/model/FIFORestingOrder.java | 16 ++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 phoenix/src/main/java/com/mmorrell/phoenix/model/FIFOOrderId.java create mode 100644 phoenix/src/main/java/com/mmorrell/phoenix/model/FIFORestingOrder.java diff --git a/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFOOrderId.java b/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFOOrderId.java new file mode 100644 index 0000000..1916649 --- /dev/null +++ b/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFOOrderId.java @@ -0,0 +1,14 @@ +package com.mmorrell.phoenix.model; + +import lombok.Builder; +import lombok.Data; + +@Data +@Builder +public class FIFOOrderId { + + public static final int FIFO_ORDER_ID_SIZE = 16; + private long priceInTicks; + private long orderSequenceNumber; + +} diff --git a/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFORestingOrder.java b/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFORestingOrder.java new file mode 100644 index 0000000..be44e83 --- /dev/null +++ b/phoenix/src/main/java/com/mmorrell/phoenix/model/FIFORestingOrder.java @@ -0,0 +1,16 @@ +package com.mmorrell.phoenix.model; + +import lombok.Builder; +import lombok.Data; + +@Data +@Builder +public class FIFORestingOrder { + + public static final int FIFO_RESTING_ORDER_SIZE = 32; + private long traderIndex; + private long numBaseLots; + + // 16 bytes of padding + +}