api/orders.js
function cancelOrder(account, sequence, secret, options, callback) {
  var transaction = createOrderCancellationTransaction(account, sequence);
  var converter = TxToRestConverter.parseCancelOrderFromTx;
  transact(transaction, this, secret, options, converter, callback);
}
function cancelOrder(account, sequence, secret, options, callback) {
  var transaction = createOrderCancellationTransaction(account, sequence);
  var converter = TxToRestConverter.parseCancelOrderFromTx;
  transact(transaction, this, secret, options, converter, callback);
}
function cancelOrder ( account , sequence , secret , options , callback ) { var transaction = createOrderCancellationTransaction ( account , sequence ) ; var converter = TxToRestConverter . parseCancelOrderFromTx ; transact ( transaction , this , secret , options , converter , callback ) ; }
Cancel an order in the ripple network

@url
@param {Number String} request.params.sequence
- sequence number of order to cancel

@query
@param {String "true"|"false"} request.query.validated
- used to force request to wait until rippled has finished
validating the submitted transaction
Cancel an order in the ripple network