func (s *Socket) cancelOrder(p Payload) {
	ocp := NewOrderCancelPayload()

	if err := ocp.DecodeOrderCancelPayload(p); err != nil {
		log.Printf("Error: %v", err)
	}

	oc := ocp.OrderCancel

	if err := s.server.engine.CancelOrder(oc); err != nil {
		log.Printf("Error: %v", err)
	}
}
// cancelOrder decodes the message payload and then passes it to the engine object
cancelOrder decodes the message payload and then passes it to the engine object
// cancelOrder decodes the message payload and then passes it to the engine object
func (s *Socket) cancelOrder(p Payload) {
	ocp := NewOrderCancelPayload()
	if err := ocp.DecodeOrderCancelPayload(p); err != nil {
		log.Printf("Error: %v", err)
	}
	oc := ocp.OrderCancel
	if err := s.server.engine.CancelOrder(oc); err != nil {
		log.Printf("Error: %v", err)
	}
}
func ( s * Socket ) cancelOrder ( p Payload ) { ocp := NewOrderCancelPayload ( ) if err := ocp . DecodeOrderCancelPayload ( p ) ; err != nil { log . Printf ( " " , err ) } oc := ocp . OrderCancel if err := s . server . engine . CancelOrder ( oc ) ; err != nil { log . Printf ( " " , err ) } }
cancelOrder decodes the message payload and then passes it to the engine object
cancelOrder decodes the message payload and then passes it to the engine object