MCPcopy Create free account
hub / github.com/ccxt/ccxt / handle_http_status_code

Method handle_http_status_code

python/ccxt/base/exchange.py:1999–2003  ·  view source on GitHub ↗
(self, code, reason, url, method, body)

Source from the content-addressed store, hash-verified

1997 raise InvalidOrder(self.id + ' create_order() amount should be above 0')
1998
1999 def handle_http_status_code(self, code, reason, url, method, body):
2000 codeAsString = str(code)
2001 if codeAsString in self.httpExceptions:
2002 ErrorClass = self.httpExceptions[codeAsString]
2003 raise ErrorClass(self.id + ' ' + method + ' ' + url + ' ' + codeAsString + ' ' + reason + ' ' + body)
2004
2005 @staticmethod
2006 def crc32(string, signed=False):

Callers 2

fetchMethod · 0.95
fetchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected