Logging
To account for and analyze the functioning of the script, a log of all messages submitted by the script and generated by the system in response to user actions is maintained.
System messages
System messages are generated by the botbeetle program.
Command | Meaning | |
– | The start command is given only by the user in manual mode | |
Api.Stop() Api.Stop(…) |
The stop command can be submitted by:
|
|
– | If the user has not allowed the trade, a warning is issued that the trade is prohibited | |
– | Security system, if the script has exceeded the allowed values of the number of orders sent, or a total amount, a warning is issued and all the scripts in the trading window are stopped at the same time. |
If the script is allowed to trade (sending real orders), the messages in the log will have the following notation.
Command | Meaning | |
Api.PlaceInstruction(…) Api.PlaceLimitOrder(…) |
The script called the sending command order | |
Api.Green() | The script issued a command to equalize the market | |
Api.CancelOrders(…) Api.CancelOrders() |
The script called the order cancellation |
If trading is prohibited, trading operations will have icons:
Command | Meaning | |
Api.PlaceInstruction(…) Api.PlaceLimitOrder(…) |
The script called the order sending command | |
Api.Green() | The script issued a command to equalize the market | |
Api.CancelOrders(…) Api.CancelOrders() |
The script called the order cancellation |
Custom messages
All messages that are sent from the script body have an information icon.
Command | Meaning | |
Api.Log(…) | Text message. Any content for logging the script |