// Refresh refreshes the calling order, and changes it to be the actual
// state of the order.
// Calls GetOrderStatus with the asociated client of the order.
// https://developers.cryptomkt.com/es/#estado-de-orden
Refresh refreshes the calling order, and changes it to be the actual
state of the order.
Calls GetOrderStatus with the asociated client of the order.
// Refresh refreshes the calling order and changes it to be the actual // state of the order . // Calls GetOrderStatus with the asociated client of the order . // https : // developers . cryptomkt . com / es / #estado - de - orden
func (o *Order) Refresh() (*Order, error) {
	oRefreshed, err := o.client.GetOrderStatus(args.Id(o.Id))
	if err != nil {
		return nil, fmt.Errorf("Refresh order %s failed: %s", o.Id, err)
	}
	oRefreshed.client = o.client
	return oRefreshed, nil
}
func ( o * Order ) Refresh ( ) ( * Order , error ) { oRefreshed , err := o . client . GetOrderStatus ( args . Id ( o . Id ) ) if err != nil { return nil , fmt . Errorf ( " " , o . Id , err ) } oRefreshed . client = o . client return oRefreshed , nil }
Refresh refreshes the calling order, and changes it to be the actual
state of the order.
Refresh refreshes the calling order and changes it to be the actual state of the order .