-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Connection Error
Sorry, we're unable to connect to the server at the moment.
Please try again in a few minutes.
Access denied
You do not have access to poloniex.com.
The site owner may have set restrictions that prevent you from accessing the site.
- Ray ID: 7a215e368931e3d3
- Timestamp: 2023-03-03 10:59:05 UTC
- Your IP address: 141.226.170.246
- Requested URL: poloniex.com/tradingApi
- Error reference number: 1020
- Server ID: FL_149F22
- User-Agent: python-requests/2.27.1
</div>
Ray ID: 7a215e368931e3d3, IP: 141.226.170.246
const xLanguageCookie = document.cookie.match(
/(; )?x-lang-override=([^;]*);?/
);
const xLanguage = xLanguageCookie && xLanguageCookie[2];
const title = document.getElementById("title");
const desc = document.getElementById("desc");
// eslint-disable-next-line no-prototype-builtins
if (xLanguage && translations.hasOwnProperty(xLanguage) && title && desc) {
title.innerHTML = translations[xLanguage].title;
desc.innerHTML = translations[xLanguage].desc;
}
}
</script>
Повторите попытку через несколько минут." }, "tr-tr": { "title": "Bağlantı Hatası", "desc": "Üzgünüz, şu anda sunucuya bağlanamıyoruz.
Lütfen birkaç dakika sonra tekrar deneyin." }, "vi-vn": { "title": "Lỗi kết nối", "desc": "Rất tiếc, chúng tôi không thể kết nối tới máy chủ vào lúc này.
Vui lòng thử lại sau ít phút." }, "zh-cn": { "title": "连接错误", "desc": "抱歉!目前无法连接服务器。
请在几分钟后再试一次。" } }; translateErrorPage(translations); </script> <script>for(var i=0;i --------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) File ~/.local/lib/python3.10/site-packages/poloniex/__init__.py:268, in PoloniexBase._handleReturned(self, data) 267 if not self.jsonNums: --> 268 out = _loads(data.text, parse_float=str) 269 else:
File /usr/lib/python3.10/json/init.py:359, in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
358 kw['parse_constant'] = parse_constant
--> 359 return cls(**kw).decode(s)
File /usr/lib/python3.10/json/decoder.py:337, in JSONDecoder.decode(self, s, _w)
333 """Return the Python representation of s (a str instance
334 containing a JSON document).
335
336 """
--> 337 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
338 end = _w(s, end).end()
File /usr/lib/python3.10/json/decoder.py:355, in JSONDecoder.raw_decode(self, s, idx)
354 except StopIteration as err:
--> 355 raise JSONDecodeError("Expecting value", s, err.value) from None
356 return obj, end
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
PoloniexError Traceback (most recent call last)
Cell In[9], line 1
----> 1 POLO.returnBalances()
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:373, in Poloniex.returnBalances(self)
371 def returnBalances(self):
372 """ Returns all of your available balances."""
--> 373 return self.call('returnBalances')
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:156, in PoloniexBase._retry..retrying(*args, **kwargs)
153 for delay in _chain(retryDelays, [None]):
154 try:
155 # attempt call
--> 156 return func(*args, **kwargs)
158 # we need to try again
159 except RequestException as problem:
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:220, in PoloniexBase.call(self, command, args)
217 ret = self.session.post(**payload)
219 # return data
--> 220 return self._handleReturned(ret)
222 # public?
223 if cmdType == 'Public':
224 # encode url
File ~/.local/lib/python3.10/site-packages/poloniex/init.py:275, in PoloniexBase._handleReturned(self, data)
273 except:
274 self.logger.error(data.text)
--> 275 raise PoloniexError('Invalid json response returned')
277 # check if poloniex returned an error
278 if 'error' in out:
PoloniexError: Invalid json response returned