-
Notifications
You must be signed in to change notification settings - Fork 692
Description
Hi,
I’m mapping NSE (India) TBT data to hftbacktest, and I need some clarification regarding the event constants. The current documentation doesn’t fully explain, how these constants should be used, so I want to confirm whether my interpretation is correct.
NSE TBT provides two categories of messages:
Trade Messages
In NSE trade messages, each trade includes two order IDs corresponding to the matched orders. I am currently mapping a single NSE trade message to both EXCH_FILL_EVENT and EXCH_TRADE_EVENT. Also, clarify the distinction between FILL_EVENT and EXCH_FILL_EVENT?
NSE Trade → EXCH_FILL_EVENT + EXCH_TRADE_EVENT
Order Messages
Additionally, I want to confirm whether the following mapping is correct for NSE order messages:
NSE New Order → EXCH_ADD_ORDER_EVENT
NSE Modify Order → EXCH_MODIFY_ORDER_EVENT
NSE Cancel Order → EXCH_CANCEL_ORDER_EVENT
Please confirm whether this overall mapping approach makes sense, or suggest corrections if needed?
Thanks