Module: Revolut::Clients::Exchanges

Included in:
Revolut::Client
Defined in:
lib/revolut/clients/exchanges.rb

Overview

Revolut Exchanges

Instance Method Summary collapse

Instance Method Details

#exchange(params = {}) ⇒ Object



11
12
13
# File 'lib/revolut/clients/exchanges.rb', line 11

def exchange(params = {})
  connection.post('exchange', params)
end

#exchange_rate(from:, to:, amount:) ⇒ Object



7
8
9
# File 'lib/revolut/clients/exchanges.rb', line 7

def exchange_rate(from:, to:, amount:)
  connection.get('rate', from: from, to: to, amount: amount)
end