Giter VIP home page Giter VIP logo

exchanges's People

Contributors

dependabot[bot] avatar edmondtam1 avatar maebert avatar manos avatar pablomitchell avatar technickai avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jeromeku

exchanges's Issues

Investigate/Fix/Test "retry"

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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.