Log
Log a message to the console.
Method
Section titled “Method”tm.log(message: str)Inputs
Section titled “Inputs”| Parameter | Argument type | Description | Default Value |
|---|---|---|---|
| message | str | The message to print to the console | - |
Outputs
Section titled “Outputs”None
Example usage
Section titled “Example usage”import tradomate as tm
@tm.strategy()def my_strategy(config: tm.TradomateConfig, data: tm.TradomateData):
# Log a message tm.log("Hello world!")