一个 python 脚本正在运行,但现在没有。
public_client = bitstamp.client.Public()
data=backTestBitCoin.getHistoricalPrices();
trading_client = bitstamp.client.Trading(username='AAA', key='BBB', secret='CCC')
tick=trading_client.ticker();
lastBid = float(tick['bid']);
lastAsk = float(tick['ask']);
balances = trading_client.account_balance(); #error thrown from this line
我收到以下错误:
return self._post("balance/", return_json=True)
File "/Library/Python/2.7/site-packages/bitstamp/client.py", line 47, in _post
return self._request(requests.post, *args, **kwargs)
File "/Library/Python/2.7/site-packages/bitstamp/client.py", line 80, in _request
raise BitstampError(error)
bitstamp.client.BitstampError: Invalid nonce
有没有人经历过这个?对图书馆不太熟悉,因此不确定是什么原因造成的。