Skip to content

Commit

Permalink
cleans up campbx code
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Mar 23, 2014
1 parent c07acaf commit a125e56
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/rbtc_arbitrage/campbx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ def api_request( info, post_data={} )
request.set_form_data( post_data )
end

# debug # need to test w/valid credentials
#puts "Sending request to #{uri}"
#puts "Post Data: #{post_data}"
make_request(http, request)
end

def make_request http, request
# CampBX API: max 1 request per 500ms
delta = Time.now - @@last
#puts delta*1000
Expand All @@ -90,7 +90,6 @@ def api_request( info, post_data={} )
else # HTTP ERROR
warn "HTTP Error: + #{res.code}"
end

end

end
Expand Down

0 comments on commit a125e56

Please sign in to comment.