SGX Gateway Documentation
- SGX Gateway And The Exchange
- Installing And Upgrading
- Configuring Global Settings
- Configuring Market Data
- Configuring The Order Server
- Configuration Parameters
- Configuration Parameters: Multi Member
- Disaster Recovery
Calculating Volume at Price
TT SGX Gateways forward both Last Traded Price (LTP) and Last Traded Quantity (LTQ) and Total Traded Quantity (TTQ) information directly from the exchange to client applications. By default LTP, LTQ, and TTQ automatically update for all trades that occur in the market with the exception of spread and block trades. When a spread or block trade occurs, the exchange does not publish any associated trade information. You cannot configure this behavior.
TTQ, VAP, and Spread Trades
Both TTQ and Volume at Price (VAP) update for every trade that occurs in the market except spread and block trades.
On TT SGX Gateways, VAP and TTQ update simultaneously. Therefore, TTQ should always equal VAP. An exception occurs if the Price Server experiences an unclean shutdown intra-day. In this instance, VAP resets to 0 and does not equal TTQ.
Additionally, the exchange manages two separate sessions each day (the T and T+1 sessions). When the session changes, the exchange resets TTQ to equal 0. However, TT SGX Gateways continue to accumulate VAP between the two sessions.
In this instance, TTQ only contains the volume from the T+1 session while VAP equals the total volume for the entire trading day.
Configuring LTQ Behavior
You can configure whether the TT SGX Gateway accumulates the Last Traded Quantity using the Last-Traded-Quantity parameter in the aconfig_local.xml file. This parameter has two available values:
- 0: Accumulate LTQ. The TT Gateway keeps a count of all consecutive trades that occur at the same price. The Price Server forwards this information with all price updates related to last traded price and last traded quantity.
- 1: Do not accumulate LTQ. The TT Gateway only sends price information relevant to the last trade.
By default, TT SGX Gateways install set to 0.
All TT SGX Gateways store LTP and LTQ in physical memory. When the TT Gateway shuts down, the OS clears its memory and the TT Gateway resets LTQ and LTP to 0. The TT Gateway resets its stored LTP and LTQ values on shutdown regardless of the setting you use in Last-Traded-Quantity.