keep getting my “Failed because of: HTTP Error 400: Bad Request”from the line I put in bold. I know this is alot of code and is astrech but any help is good.
Im writing this in python3 btw
def animate(i):
global refreshRate
global DatCounter
if chartLoad:
if paneCount == 1:
if DataPace == “tick”:
try:
if exchange == “BTC-e”:
a = plt.subplot2grid((6,4), (0,0), rowspan = 5, colspan = 4)
a2 = plt.subplot2grid((6,4), (5,0), rowspan = 1, colspan = 4,sharex = a)
dataLink =’https://btc-e.com/api/3/trades/btc_usd?limit=2000′
data = urllib.request.urlopen(dataLink)
data = data.readall().decode(“utf-8”)
data = json.loads(data)
data = data[“btc_usd”]
data = pd.DataFrame(data)
data[“datestamp”] =np.array(data[‘timestamp’]).astype(“datetime64[s]”)
allDates = data[“datestamp”].tolist()
buys = data[(data[‘type’]==”bid”)]
#buys[“datestamp”] =np.array(buys[“timestamp”]).astype(“datetime64[s]”)
buyDates = (buys[“datestamp”]).tolist()
sells = data[(data[‘type’]==”ask”)]
#sells[“datestamp”] =np.array(sells[“timestamp”]).astype(“datetime64[s]”)
sellDates = (sells[“datestamp”]).tolist()
volume = data[“amount”]
a.clear()
a.plot_date(buyDates, buys[“price”], lightColor,label=”buys”)
a.plot_date(sellDates, sells[“price”], darkColor,label=”sells”)
a2.fill_between(allDates,
PayPal Gateway not configured
PayPal Gateway not configured