func (s *Socket) sendOrderFilled(p *TradePayload) error {
	m := &Message{MessageType: ORDER_FILLED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}

	// fmt.Printf("\nLOG. Sending Order Filled Message:\n%v\n\n", p)
	return nil
}
// sendOrderFilledMessage creates an ORDER_FILLED messages and writes it into the websocket connection
sendOrderFilledMessage creates an ORDER_FILLED messages and writes it into the websocket connection
// sendOrderFilledMessage creates an ORDER_FILLED messages and writes it into the websocket connection
func (s *Socket) sendOrderFilled(p *TradePayload) error {
	m := &Message{MessageType: ORDER_FILLED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}
	return nil
}
func ( s * Socket ) sendOrderFilled ( p * TradePayload ) error { m := & Message { MessageType : ORDER_FILLED , Payload : p } if err := s . connection . WriteJSON ( & m ) ; err != nil { return err } return nil }
sendOrderFilledMessage creates an ORDER_FILLED messages and writes it into the websocket connection
sendOrderFilledMessage creates an ORDER_FILLED messages and writes it into the websocket connection
// fmt.Printf("\nLOG. Sending Order Filled Message:\n%v\n\n", p)