Skip to content

Commit fb2f0d6

Browse files
committed
remove raise and comment out time.sleep
1 parent 23f8949 commit fb2f0d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gdax/public_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_product_trades(self, product_id, before='', after='', limit='', result=[
157157
params['limit'] = limit
158158

159159
r = requests.get(url, params=params)
160-
r.raise_for_status()
160+
# r.raise_for_status()
161161

162162
result.extend(r.json())
163163

@@ -167,8 +167,8 @@ def get_product_trades(self, product_id, before='', after='', limit='', result=[
167167
if limit <= 0:
168168
return result
169169

170-
# ensure that we don't get rate-limited/blocked
171-
time.sleep(0.4)
170+
# TODO: need a way to ensure that we don't get rate-limited/blocked
171+
# time.sleep(0.4)
172172
return self.get_product_trades(product_id=product_id, after=r.headers['cb-after'], limit=limit, result=result)
173173

174174
return result

0 commit comments

Comments
 (0)