(reason, nextStep string)
| 314 | } |
| 315 | |
| 316 | func formatTraderStartError(reason, nextStep string) string { |
| 317 | if nextStep == "" { |
| 318 | return fmt.Sprintf("Failed to start the bot this time: %s.", reason) |
| 319 | } |
| 320 | return fmt.Sprintf("Failed to start the bot this time: %s. %s.", reason, nextStep) |
| 321 | } |
| 322 | |
| 323 | // handleCreateTrader Create new AI trader |
| 324 | func (s *Server) handleCreateTrader(c *gin.Context) { |