module BittraderBot::ExchangeInterface

ExchangeInterface

Author

Richard Davis

Copyright

Copyright 2017 Richard Davis

License

GNU Public License 3

Provides namespace for all exchange wrapper modules

Public Class Methods

proc_request(host, endpoint, params) click to toggle source
# 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