Replies: 1 comment 6 replies
-
Are DOTUP/DOTDOWN futures or also available for spot trading? Future trading is not implemented yet. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Program fails trying to fetch data for an invalid symbol with error: RecursionError: maximum recursion depth exceeded while calling a Python object
I have a transaction 10068567,2021-05-20 23:11:32,Spot,Buy,DOTDOWN,553.36000000,""
The program tries to fetch the DOTDOWNBTC and ends up running into recursion issue, How can i make the program to check this symbol only for USDT. ie. tell the program to look for DOTDOWNUSDT instead of DOTDOWNBTC.
2022-04-19 22:43:12,384 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=DOTDOWNBTC&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:12,561 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:12,739 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:12,916 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:13,090 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:13,266 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:13,448 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
2022-04-19 22:43:13,631 price_data DEBUG Calling https://api.binance.com/api/v3/aggTrades?symbol=BTCDOTDOWN&startTime=1621549949000&endTime=1621550009000
.
.
.
.
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 114, in _get_price_binance
quote = self.get_price("binance", "BTC", utc_time, quote_asset)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 551, in get_price
price = get_price(coin, utc_time, reference_coin, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/misc.py", line 204, in wrapper
ret = func(*args, **kwargs)
File "/Users/ummehabeeba/github/CoinTaxman/src/price_data.py", line 88, in _get_price_binance
response = requests.get(url)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "", line 3, in raise_from
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 440, in _make_request
httplib_response = conn.getresponse()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 339, in begin
self.headers = self.msg = parse_headers(self.fp)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 238, in parse_headers
return email.parser.Parser(_class=_class).parsestr(hstring)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/parser.py", line 67, in parsestr
return self.parse(StringIO(text), headersonly=headersonly)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/parser.py", line 56, in parse
feedparser.feed(data)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/feedparser.py", line 176, in feed
self._call_parse()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/feedparser.py", line 180, in _call_parse
self._parse()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/feedparser.py", line 295, in _parsegen
if self._cur.get_content_maintype() == 'message':
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/message.py", line 594, in get_content_maintype
ctype = self.get_content_type()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/message.py", line 578, in get_content_type
value = self.get('content-type', missing)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/message.py", line 471, in get
return self.policy.header_fetch_parse(k, v)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/_policybase.py", line 316, in header_fetch_parse
return self._sanitize_header(name, value)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/_policybase.py", line 287, in _sanitize_header
if _has_surrogates(value):
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/email/utils.py", line 57, in _has_surrogates
s.encode()
RecursionError: maximum recursion depth exceeded while calling a Python object
Beta Was this translation helpful? Give feedback.
All reactions