Welcome to MeatPy Discussions! #59
Replies: 3 comments 1 reply
-
|
Would it be possible to use the parquet file as a staring point to examine the cancellations, orders etc at specific time interval. My idea is that to use the parquet file limit order book to jump to a specific point in time in the gz file. For example suppose I want to see the activity in the limit order book starting ta 10:00. The parquet file gives me the state of the limit order book at that time. Thus any additions, deletions, fills starting at 10:00 could be reviewed by racing through without creating the lob until 10:00 and then message by message at that time. That is, I'm trying to find a way to speed up the process to look at the dynamics of the limit order book at an interval in time. From a research stand point I want to look at the dynamics of order cancellation as most researchers who use TAQ fail to incorporate order cancellation into their understanding of limit order book dynamics. So as a first crack, I just want to look the message/order book dynamics for a period of time. |
Beta Was this translation helpful? Give feedback.
-
|
I think this is technically possible, but it would require rewriting a lot of code. When you say "examine the cancellations .. at a specific time interval", do you mean doing it interactively, or do you mean recording events and order book only for a specific interval? The most costly operation is recording events and storing them to disk, so if you want to record only a specific interval, you can set MeatPy/src/meatpy/event_handlers/lob_event_recorder.py Lines 26 to 36 in 7c0c641 |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for your reply.
When I read through the academic articles, they seem to be missing the importance of hidden orders or those which are cancelled. Market makers like to entice the buyer to "reach for it" in order to fill his order like Kung Fu Panda reaching for his meal of dumplings.
…________________________________
From: Vincent Grégoire ***@***.***>
Sent: Wednesday, December 3, 2025 6:13 AM
To: vgreg/MeatPy ***@***.***>
Cc: rumcode ***@***.***>; Comment ***@***.***>
Subject: Re: [vgreg/MeatPy] Welcome to MeatPy Discussions! (Discussion #59)
I think this is technically possible, but it would require rewriting a lot of code. When you say "examine the cancellations .. at a specific time interval", do you mean doing it interactively, or do you mean recording events and order book only for a specific interval?
The most costly operation is recording events and storing them to disk, so if you want to record only a specific interval, you can set record_start and record_end for each recorder that you are interested in. It will still have to replay the full order book, but it will avoid any write operation until the interval of interest.
https://github.com/vgreg/MeatPy/blob/7c0c641c029370620193fa344c73e413f0fa2ae1/src/meatpy/event_handlers/lob_event_recorder.py#L26-L36
—
Reply to this email directly, view it on GitHub<#59 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ADHLVRIWZINSIGILCAFJV7D373HWTAVCNFSM6AAAAACCJWDVHWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMJUHAYTIMI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions