ob-analytics icon indicating copy to clipboard operation
ob-analytics copied to clipboard

why do we need to infer the trades from orders? the log already has them

Open ssh352 opened this issue 5 years ago • 1 comments

First, thank you for such a useful package! I am not familiar to bitstamp data so have this question:

I assume extdata/2015-05-01.log.xz is the raw market data recording, it already has trades in it. Why does the package spend time on inferring the trades from orders?

Screen Shot 2020-01-13 at 3 06 43 PM the inferred trades count is 482 Screen Shot 2020-01-13 at 3 06 15 PM parse.sh explicitly filters trades and generates the orders.csv Screen Shot 2020-01-13 at 3 05 58 PM the log has 575 trades, which is different from number of inferred trades.

the individual orders and trades are usually directly provided by exchanges, so why does the package spend time on inferring trades from orders?

ssh352 avatar Jan 13 '20 07:01 ssh352

For not all matched orders produce trades. There are so-called 'self-trades' which can be inferred from live_orders data but will not appear among trades due to sefl-trade prevention by Bitstamp Also have a look at this discussion

petr-fedorov avatar Feb 14 '20 10:02 petr-fedorov