getStreamTableTimestamp

First introduced in version 3.00.6

Syntax

getStreamTableTimestamp(streamTable)

Details

Retrieves the timestamp column set for a stream table by the setStreamTableTimestamp function.

Parameters

streamTable is a stream table.

Returns

A STRING scalar indicating the timestamp column name.

Examples

share streamTable(10000:0,`symbol`timestamp`price, [SYMBOL,TIMESTAMP,DOUBLE]) as trades
// Set timestamp as the timestamp column
setStreamTableTimestamp(trades, `timestamp)
// Get the timestamp column
getStreamTableTimestamp(trades)
// Output: 'timestamp'

Related function: setStreamTableTimestamp