phil8192 / ob-analytics

R package intended for visualisation, analysis and reconstruction of limit order book data
Other
149 stars 45 forks source link

processData() does not always match a 'market' order with an appropriate 'limit' order so some trades are lost #24

Open petr-fedorov opened 6 years ago

petr-fedorov commented 6 years ago

Below is an excerpt from "Example limit order book data" (lob.data$events) showing 'changed' events for 'market' orders that do not have a corresponding limit order event (matching.event equals NA):

2018-10-02 17-58-04

It appears that the trades corresponding to the above events are missing from lob.data$trades . The total number of 'market' and 'market-limit' events with matching.event equals NA is 43 while the number of trades in lob.data$trades is 482. Thus approximately 8% of trades are missing?