func (s *Socket) sendOrderPartiallyFilled(p *TradePayload) error {
	fmt.Printf("Send order partially filled message")
	m := &Message{MessageType: ORDER_PARTIALLY_FILLED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}

	// fmt.Printf("\nLOG. Sending Partially Filled Message:\n%v\n\n", p)
	return nil
}
// sendOrderPartiallyFilledMessage creates and ORDER_PARTIALLY_FILLED message and writes it into the websocket connection
sendOrderPartiallyFilledMessage creates and ORDER_PARTIALLY_FILLED message and writes it into the websocket connection
// sendOrderPartiallyFilledMessage creates and ORDER_PARTIALLY_FILLED message and writes it into the websocket connection
func (s *Socket) sendOrderPartiallyFilled(p *TradePayload) error {
	fmt.Printf("Send order partially filled message")
	m := &Message{MessageType: ORDER_PARTIALLY_FILLED, Payload: p}
	if err := s.connection.WriteJSON(&m); err != nil {
		return err
	}
	return nil
}
func ( s * Socket ) sendOrderPartiallyFilled ( p * TradePayload ) error { fmt . Printf ( " " ) m := & Message { MessageType : ORDER_PARTIALLY_FILLED , Payload : p } if err := s . connection . WriteJSON ( & m ) ; err != nil { return err } return nil }
sendOrderPartiallyFilledMessage creates and ORDER_PARTIALLY_FILLED message and writes it into the websocket connection
sendOrderPartiallyFilledMessage creates and ORDER_PARTIALLY_FILLED message and writes it into the websocket connection
// fmt.Printf("\nLOG. Sending Partially Filled Message:\n%v\n\n", p)