#NEWLINE# def get_current_price( self , crypto , fiat ) : #NEWLINE# #INDENT# pair = ( '%s_%s' % ( crypto . lower ( ) , fiat . lower ( ) ) ) #NEWLINE# url = ( 'https://btc-e.com/api/3/ticker/' + fiat ) #NEWLINE# response = self . get_url ( url ) . json ( ) #NEWLINE# return response [ pair ] [ 'last' ]