class ApiBench def create_order(base_url, market, side, volume, token, ord_type, price) url = "#{base_url}/api/v2/market/orders?market=#{market}&side=#{side}&volume=#{volume}&ord_type=#{ord_type}&price=#{price}" connection = Faraday.new(url) _response = connection.post do |request| request.headers["Authorization"] = token end end end