Skip to content

Commit

Permalink
make multithreaded fillers compatible with new Order type
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Feb 28, 2025
1 parent 90ff8a2 commit 960af16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/experimental-bots/filler-common/dlobBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,16 +239,17 @@ class DLOBBuilder {
postOnly: false,
oraclePriceOffset: signedMsgOrderParams.oraclePriceOffset ?? 0,
maxTs: signedMsgOrderParams.maxTs ?? ZERO,
price: signedMsgOrderParams.price ?? ZERO,
userOrderId: signedMsgOrderParams.userOrderId ?? 0,
// Rest are not required for DLOB
price: ZERO,
triggerPrice: ZERO,
triggerCondition: OrderTriggerCondition.ABOVE,
existingPositionDirection: PositionDirection.LONG,
reduceOnly: false,
baseAssetAmountFilled: ZERO,
quoteAssetAmountFilled: ZERO,
quoteAssetAmount: ZERO,
userOrderId: 0,
bitFlags: 0,
postedSlotTail: 0,
};
signedMsgOrder.price = getAuctionPrice(
Expand Down
1 change: 1 addition & 0 deletions src/experimental-bots/filler-common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export type SerializedOrder = {
auctionStartPrice: string;
auctionEndPrice: string;
maxTs: string;
bitFlags: number;
postedSlotTail: number;
};

Expand Down

0 comments on commit 960af16

Please sign in to comment.