4.4.3 Processing Data Using FDT and MDT
The following sections describe how Ingestion Manager processes trade-related data, orders and executions, and trades through the Firm Data Transformer (FDT).
FDT Process Flow
Figure 4-2 Firm Data Transformer (FDT) Processing
- Processes all files that reside in the /data/firm/transform directory for the current date and batch.
- Terminates automatically after processing files that it found at startup.
- Ignores files that the system adds after processing begins; the system may process these files by starting FDT again, after exiting from the previous invocation.
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDP.sh TradeExecution
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDP.sh Order
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDP.sh OpenOrder
- Enriches data.
- Produces summary records for orders and trades.
- Calculates derived values to support detection needs.
- Derives state chains (that is, order life cycle states, marketability states, and displayability states).
- Provides data for loading into FSDM.
The system executes the FDT with the runFDT.sh script; the following
provides a sample command: <OFSAAI Installed
Directory>/ingestion_manager/scripts/runFDT.sh
When Ingestion Manager executes runFDT.sh, it places output files in the directories described in the following table.
Table 4-3 runFDT.sh Output Directories
Directory | Description |
---|---|
/data/firm/transform | Rollover data that processing saves for the next run of the FDT. Includes open and closed orders, old executions, old trades, old derived trades, lost order events, and lost trade execution events. |
/logs/<yyyymmdd> | Status and error messages. |
/data/errors/<yyyymmdd> | Records that the system was unable to transform. |
/data/backup/<yyyymmdd> | Backup of Pre-processed input files. |
/data/firm/load | Transformed output files for loading into the database. |
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh Order
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh OrderSummary
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh TradeExecution
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh Execution
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh Trade
<OFSAAI Installed Directory>/ingestion_manager/scripts/runDL.sh DerivedTrade
FDT processes are also available with BDF. To perform this action, you must execute the following datamaps in the order given:
- OpenOrderStage
- OrderStage
- TradeExecutionEventStage
- Scrty_TradeExecutionStageInsert
- Scrty_OrderStageInsert
- MktCntr_OrderStageInsert
- OrderStage_DQupdate
- TradeExecutionEventStage_DQupdate
- OrderStage_FDTupdate
- OrderStage_RmngQtupdate
- OrderSummary
- OrderSummary_OpenOrdrInsrt
- OrderSummary_QtyUpdate
- OrderStage_OpenOderUpd
- OrderSummary_Update
- OrderStage_OrdrSeqUpd
- OrderEvent_OrderStage
- Execution_NewEvents
- Execution_CancelAndReplace
- Execution_CancelEvents
- Execution_CorrectionEvents
- Trade_NewEvents
- Trade_CancelAndReplace
- Trade_CorrectionEvents
- Trade_CancelEvents
- Trade_DerivedTrade
- Trade_OrigSeqIDUpd
- Trade_ParentSeqIDUpd
- Trade_RplcngSeqIDUpd
- TradeExecutionEvent_Trade
- TradeExecutionEvent_Execution
- TradeExecutionEvent_CancelReplaceTrade
- TradeExecutionEvent_FirmRefTrade
- TradeExecutionEvent_MktRefTrade
- Trade_RefData
- Execution_Update
Populating Summary Information for Market Data
As part of end of day processing, Market and Trade data summary information gets
updated in the following path of the Java Utility: <OFSAAI Installed
Directory>/ingestion_manager/scripts/ process_firm_summary.sh