Module: BittraderBot::ExchangeInterface

Defined in:
lib/bittrader-bot/exchange_interface.rb,
lib/bittrader-bot/poloniex.rb

Overview

ExchangeInterface

Author

Richard Davis

Copyright

Copyright 2017 Richard Davis

License

GNU Public License 3

Provides namespace for all exchange wrapper modules

Defined Under Namespace

Modules: Poloniex

Class Method Summary collapse

Class Method Details

.proc_request(host, endpoint, params) ⇒ Object



27
28
29
30
# File 'lib/bittrader-bot/exchange_interface.rb', line 27

def self.proc_request host, endpoint, params
  params_str = params.map{|param, value| "#{param}=#{value}"}.join('&')
  return host, "#{endpoint}?#{params_str}"
end