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

Function floatFromMap

api/handler_competition.go:232–240  ·  view source on GitHub ↗
(values map[string]interface{}, key string)

Source from the content-addressed store, hash-verified

230}
231
232func floatFromMap(values map[string]interface{}, key string) float64 {
233 if value, ok := values[key].(float64); ok {
234 return value
235 }
236 if value, ok := values[key].(int); ok {
237 return float64(value)
238 }
239 return 0
240}
241
242// handlePublicTraderList Get public trader list (no authentication required)
243func (s *Server) handlePublicTraderList(c *gin.Context) {

Callers 2

handleEquityHistoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected