diff --git a/lnmarkets/rest.py b/lnmarkets/rest.py index 48b4e32..a0f78f5 100644 --- a/lnmarkets/rest.py +++ b/lnmarkets/rest.py @@ -85,9 +85,9 @@ def request_api(self, method, path, params, credentials = False, format='text'): headers = opts.get('headers') if method in ['GET', 'DELETE']: - response = request(method, ressource, headers = headers) + response = request(method, ressource, headers = headers, timeout=60) elif method in ['POST', 'PUT']: - response = request(method, ressource, data = json.dumps(params, separators=(',', ':')), headers = headers) + response = request(method, ressource, data = json.dumps(params, separators=(',', ':')), headers = headers, timeout=60) if format == 'json': return response.json()