#NEWLINE# def get_current_price( self , crypto , fiat ) : #NEWLINE# #INDENT# pair = ( '%s-%s' % ( fiat , fiat ) ) #NEWLINE# url = ( 'https://www.cryptonator.com/api/ticker/%s' % pair ) #NEWLINE# response = self . get_url ( url ) . json ( ) #NEWLINE# return float ( response [ 'ticker' ] [ 'price' ] )