The Time And Sales block is a trading block that provides information for individual trades. Whenever a trade occurs for the specified instrument, the Time And Sales block outputs a discrete event message containing information regarding the last trade (trade price or quantity). The discrete event message can be sent to another discrete block, such as the MsgInfo Extractor block, to extract trade data.
Example The Time and Sales block receives an update from the Instrument block each time a transaction occurs and sends the time & sales information to a MsgInfo Extractor block to extract the price and quantity of the last trade.
The Time And Sales block provides the following trade data:
The Time And Sales block and the Field block both allow you to access last-traded-price (LTP) and last-traded-quantity (LTQ) values; however, the values from these two block can differ due to how the blocks propagate changes in market data.
Example Differences between Field blocks and Time And Sales blocks
Note When developing an algo, you must start an algo to see time and sales data.
The following blocks can extract and use the information generated from a Time And Sales block:
Note Certain logic propagated from a Time And Sales block discrete message could behave differently when running an algo in live and simulation modes, due to coalescing differences in the two environments.
To customize the block, update the Block Properties.
Property | Description |
---|---|
Name | Name to display beneath the block on the ADL canvas |