Skip to content

Log

Log a message to the console.

Method

tm.log(message: str)

Inputs

ParameterArgument typeDescriptionDefault Value
messagestrThe message to print to the console-

Outputs

None

Example usage

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