#NEWLINE# def cancelOrder( self , orderId ) : #NEWLINE# #INDENT# url = 'https://www.bitstamp.net/api/cancel_order/' #NEWLINE# params = { #NEWLINE# #INDENT# 'id' : orderId , #NEWLINE# #UNINDENT# } #NEWLINE# jsonResponse = self . _post ( url , self ) #NEWLINE# if ( jsonResponse != True ) : #NEWLINE# #INDENT# raise Exception ( 'Failed to cancel order' )