(self, path, api='public', method='GET', params={}, headers=None, body=None, config={})
| 803 | raise ExchangeError(feedback) # unknown message |
| 804 | |
| 805 | def request(self, path, api='public', method='GET', params={}, headers=None, body=None, config={}): |
| 806 | response = self.fetch2(path, api, method, params, headers, body, config) |
| 807 | if isinstance(response, str): |
| 808 | # sometimes the exchange returns whitespace prepended to json |
| 809 | response = self.strip(response) |
| 810 | if not self.is_json_encoded_object(response): |
| 811 | raise ExchangeError(self.id + ' ' + response) |
| 812 | response = json.loads(response) |
| 813 | return response |
nothing calls this directly
no test coverage detected