MCPcopy Create free account
hub / github.com/NoFxAiOS/nofx / formatTraderStartError

Function formatTraderStartError

api/handler_trader.go:316–321  ·  view source on GitHub ↗
(reason, nextStep string)

Source from the content-addressed store, hash-verified

314}
315
316func 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
324func (s *Server) handleCreateTrader(c *gin.Context) {

Callers 1

handleStartTraderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected