Skip to content

Commit

Permalink
Phoenix: Add FIFOOrderId, FIFORestingOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
skynetcap committed Nov 19, 2023
1 parent 1ae8554 commit 93743d1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
14 changes: 14 additions & 0 deletions phoenix/src/main/java/com/mmorrell/phoenix/model/FIFOOrderId.java
Original file line number Diff line number Diff line change
@@ -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;

}
Original file line number Diff line number Diff line change
@@ -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

}

0 comments on commit 93743d1

Please sign in to comment.