Q: how Filled Size in Simulation is determined #86
-
Hi Again, I am trying to understand how partial filled size or exec_qty is determined. I read from https://hftbacktest.readthedocs.io/en/latest/order_fill.html and tried to go through your codes in partialfillexchange.py. I see that is it using min(q_qty, qty, order.leaves_qty), but when I put in ridiculous large order size, I still get fully filled. Perhaps my input data is incorrect? What do you think is a good way to debug this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I understand why it fully filled now. Current version does not count the trades size when the prices cross our orders price, same with market moves. |
Beta Was this translation helpful? Give feedback.
I understand why it fully filled now. Current version does not count the trades size when the prices cross our orders price, same with market moves.