Skip to content

Log

Log a message to the console.

tm.log(message: str)
ParameterArgument typeDescriptionDefault Value
messagestrThe message to print to the console-

None

strategy.py
import tradomate as tm
@tm.strategy()
def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Log a message
tm.log("Hello world!")