prof7bit / goxtool

display Mt.Gox live market data (in the console) and experiment with trading bots
185 stars 53 forks source link

nocache results in 500 server error #14

Closed BleuSquid closed 11 years ago

BleuSquid commented 11 years ago

In the latest commit (e30f4283f36553199e99df63c2a7ceefa5f5dcff) there are two changes to goxapi.py that both result in HTTP Error 500: Internal Server Error:

-                + "/api/2/BTC" + self.currency + "/money/depth/full")
+                + "/api/2/BTC" + self.currency + "/money/depth/full?"
+                + str(time.time()))

and

+            if since:
+                querystring = "?since=" + str(since * 1000000)
+                querystring += "&nocache=" + str(time.time())
+            else:
+                querystring = "?nocache=" + str(time.time())

It appears the server doesn't like the unexpected unknown parameter.

BleuSquid commented 11 years ago

Fixed with commit 7ef87ef09f3554a53837e1acad2be4322056a42b