(values map[string]interface{}, key string)
| 230 | } |
| 231 | |
| 232 | func 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) |
| 243 | func (s *Server) handlePublicTraderList(c *gin.Context) { |
no outgoing calls
no test coverage detected