Just wanted to ask the best way to track multiple bot actions:
For example, I have 2 bots running on seperate timers placing bets at various time intervals on different markets and betting criteria.
Bot 1 places async bets and writes the bet details to a log file. I then use this log file later to provide statistics. This works well as I know all the bets in this log file belong to bot1.
When I start using bot 2, I want it to write to the same log file but I want to be able to distinguish which bot placed which bet.
I'm thinking along the lines of passing a parameter containing a botID reference (generated by the timer tick event) through to the PlaceBet sub. I can then link the botID ref to the PlaceBet response's BetID and send this data to the log file.
Am I going about this in the right manner or is there a smarter way to acheive what I need?
For example, I have 2 bots running on seperate timers placing bets at various time intervals on different markets and betting criteria.
Bot 1 places async bets and writes the bet details to a log file. I then use this log file later to provide statistics. This works well as I know all the bets in this log file belong to bot1.
When I start using bot 2, I want it to write to the same log file but I want to be able to distinguish which bot placed which bet.
I'm thinking along the lines of passing a parameter containing a botID reference (generated by the timer tick event) through to the PlaceBet sub. I can then link the botID ref to the PlaceBet response's BetID and send this data to the log file.
Am I going about this in the right manner or is there a smarter way to acheive what I need?



Comment