broker_id IN Broker ID, which was obtained in Frame 1. comm_amount IN The broker commission amount, computed by the VGen code st_completed_id IN The index ID value into STATUS_TYPE for status. “Completed” trade_dts IN Trade date and time provided by the output of Frame 2. The Trade ID for the trade to be settled passed to the transaction by the Market trade_id IN Exchange Emulator. trade_price IN Trade price provided by the Market Exchange Emulator. status OUT Code indicating the execution status for this frame. Trade-Result_Frame-5 Pseudo-code: Record the trade result and the broker's commission { update TRADE set T_COMM = comm_amount, T_DTS = trade_dts, T_ST_ID = st_completed_id, T_TRADE_PRICE = trade_price where T_ID = trade_id insert into TRADE_HISTORY ( TH_T_ID, TH_DTS, TH_ST_ID ) values ( trade_id, trade_dts, st_completed_id ) update BROKER set B_COMM_TOTAL = B_COMM_TOTAL + comm_amount, B_NUM_TRADES = B_NUM_TRADES + 1 where B_ID = broker_id }
broker_id IN Broker ID, which was obtained in Frame 1. comm_amount IN The broker commission amount, computed by the VGen code st_completed_id IN The index ID value into STATUS_TYPE for “Completed” status. trade_dts IN Trade date and time provided by the output of Frame 2. trade_id IN The Trade ID for the trade to be settled passed to the transaction by the Market Exchange Emulator. trade_price IN Trade price provided by the Market Exchange Emulator. status OUT Code indicating the execution status for this frame. Trade-Result_Frame-5 Pseudo-code: Record the trade result and the broker's commission { update TRADE set T_COMM = comm_amount, T_DTS = trade_dts, T_ST_ID = st_completed_id, T_TRADE_PRICE = trade_price where T_ID = trade_id insert into TRADE_HISTORY ( TH_T_ID, TH_DTS, TH_ST_ID ) values ( trade_id, trade_dts, st_completed_id ) update BROKER set B_COMM_TOTAL = B_COMM_TOTAL + comm_amount, B_NUM_TRADES = B_NUM_TRADES + 1 where B_ID = broker_id }
tpcx-v_v2.1.0.docx