@@ -125,19 +125,19 @@ handleOrder party orders (orderCid, order) = do
125125 let fillQty = min passive.qty aggressive.qty
126126 fillPrice = passive.price
127127
128- time <- getTime
128+ nanoTimestamp <- (1000 *) <$> getUnixTimestamp
129129
130130 emitExerciseCmd aggressiveCid Order_Fill with
131131 fillQty, fillPrice
132132 counterOrderId = passive.orderId
133133 counterParty = passive.exchParticipant
134- timeMatched = show time
134+ timeMatched = show nanoTimestamp
135135
136136 emitExerciseCmd passiveCid Order_Fill with
137137 fillQty, fillPrice
138138 counterOrderId = aggressive.orderId
139139 counterParty = aggressive.exchParticipant
140- timeMatched = show time
140+ timeMatched = show nanoTimestamp
141141
142142 return ()
143143
@@ -192,7 +192,7 @@ handleClearedOrder party orders (orderCid, order) = do
192192 let fillQty = min passive.qty aggressive.qty
193193 fillPrice = passive.price
194194
195- time <- getTime
195+ nanoTimestamp <- (* 1000) <$> getUnixTimestamp
196196
197197 emitExerciseCmd aggressiveCid ClearedOrder_Fill with
198198 fillQty, fillPrice
@@ -210,7 +210,7 @@ handleClearedOrder party orders (orderCid, order) = do
210210 instrument = instrumentId
211211 exchange = party
212212 eventId = -1
213- timeMatched = ( show time)
213+ timeMatched = show nanoTimestamp
214214 pair = order.pair
215215 trackingNumber = -1
216216 buyer = buyer.exchParticipant
0 commit comments