diff --git a/src/publishers/tradesPublisher.ts b/src/publishers/tradesPublisher.ts index 4f53f57..513de34 100644 --- a/src/publishers/tradesPublisher.ts +++ b/src/publishers/tradesPublisher.ts @@ -161,7 +161,9 @@ const main = async () => { ), maker: fill.maker?.toBase58(), makerOrderId: fill.makerOrderId, - makerOrderDirection: getVariant(fill.makerOrderDirection), + makerOrderDirection: fill.makderOrderDirection + ? getVariant(fill.makerOrderDirection) + : undefined, makerOrderBaseAssetAmount: convertToNumber( fill.makerOrderBaseAssetAmount, BASE_PRECISION