func (f *OrderFactory) NewOrderCancel(o *Order) (*OrderCancel, error) {
	oc := &OrderCancel{}

	oc.OrderId = o.Id
	oc.PairID = f.Pair.ID
	oc.OrderHash = o.Hash
	oc.Sign(f.Wallet)
	return oc, nil
}
// NewOrderCancel creates a new OrderCancel object from an Order
NewOrderCancel creates a new OrderCancel object from an Order
// NewOrderCancel creates a new OrderCancel object from an Order
func (f *OrderFactory) NewOrderCancel(o *Order) (*OrderCancel, error) {
	oc := &OrderCancel{}
	oc.OrderId = o.Id
	oc.PairID = f.Pair.ID
	oc.OrderHash = o.Hash
	oc.Sign(f.Wallet)
	return oc, nil
}
func ( f * OrderFactory ) NewOrderCancel ( o * Order ) ( * OrderCancel , error ) { oc := & OrderCancel { } oc . OrderId = o . Id oc . PairID = f . Pair . ID oc . OrderHash = o . Hash oc . Sign ( f . Wallet ) return oc , nil }
NewOrderCancel creates a new OrderCancel object from an Order
NewOrderCancel creates a new OrderCancel object from an Order