heartrithm / exchanges Goto Github PK
View Code? Open in Web Editor NEWClean python library for communicating with cryptocurrency exchanges
Clean python library for communicating with cryptocurrency exchanges
exchanges/exchanges/apis/bitfinex.py
Line 24 in 5485265
This works for TESTBTC (coins that start with TEST), but my fix didn't address non-test coins.
@gorillamania
We recently had a downtime at Bitfinex cause celery jobs to back up / timeout. This should not have happened, as the retry mechanism should have failed sooner.
Stacktrace
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 385, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/celery/app/trace.py", line 650, in __protected_call__
return self.run(*args, **kwargs)
File "lendy/tasks.py", line 41, in run_lend_bot
return lb.run()
File "lendy/lendbot.py", line 633, in run
run_data = self._run()
File "lendy/lendbot.py", line 253, in _run
config = self.get_config(self.lba.exchange, self.lba.currency)
File "lendy/lendbot.py", line 36, in wrapper_lba_required
return func(self, *args, **kwargs)
File "lendy/lendbot.py", line 526, in get_config
out = lms.config(lendbook)
File "lendy/lendbot.py", line 106, in config
rate_data = self.rate_data()
File "lendy/lendbot.py", line 91, in rate_data
"recent_high_short": self.get_recent_high(self.RECENCY_WINDOW_MINUTES[0]),
File "lendy/lendbot.py", line 83, in get_recent_high
rates, amounts, timestamps = bot.fetch_rate_data(self.currency, minutes, 10000)
File "lendy/lendbot.py", line 888, in fetch_rate_data
results = client.brequest(2, "trades/f%s/hist" % currency.abbr, params={"start": start, "limit": limit})
File "exchange_apis/__init__.py", line 134, in brequest
return self.request(url, method, params, data, headers)
File "exchange_apis/__init__.py", line 68, in request
response = self.session.request(method, url, params=params, json=data, headers=headers, timeout=self.TIMEOUT)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.6/dist-packages/urllib3/connectionpool.py", line 813, in urlopen
retries.sleep(response)
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py", line 300, in sleep
slept = self.sleep_for_retry(response)
File "/usr/local/lib/python3.6/dist-packages/urllib3/util/retry.py", line 279, in sleep_for_retry
time.sleep(retry_after)
File "/usr/local/lib/python3.6/dist-packages/billiard/pool.py", line 229, in soft_timeout_sighandler
raise SoftTimeLimitExceeded()
billiard.exceptions.SoftTimeLimitExceeded: SoftTimeLimitExceeded()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.