Skip to content

Commit

Permalink
remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoscon committed Apr 28, 2019
1 parent d148ab7 commit 4166d4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cryptofeed/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'''
from cryptofeed.callback import Callback
from cryptofeed.standards import pair_std_to_exchange, feed_to_exchange, load_exchange_pair_mapping
from cryptofeed.defines import TRADES, TICKER, L2_BOOK, L3_BOOK, VOLUME, FUNDING, BOOK_DELTA, BITFINEX
from cryptofeed.defines import TRADES, TICKER, L2_BOOK, L3_BOOK, VOLUME, FUNDING, BOOK_DELTA


class Feed:
Expand Down
3 changes: 1 addition & 2 deletions cryptofeed/rest/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import requests
import base64
from time import sleep
from datetime import datetime as dt
import logging
from decimal import Decimal

Expand Down Expand Up @@ -172,7 +171,7 @@ def trades(self, symbol: str, start=None, end=None, retry=None, retry_wait=10):
data = r.json()
try:
data = list(reversed(data))
except:
except Exception:
LOG.warning("Error %s: %s", r.status_code, r.text)
sleep(60)
continue
Expand Down
5 changes: 1 addition & 4 deletions cryptofeed/rest/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,7 @@ def _trade_normalize(trade):
yield data

if start:
try:
params['since'] = int(data[-1]['timestamp'] * 1000) + 1
except:
print(data)
params['since'] = int(data[-1]['timestamp'] * 1000) + 1
if len(data) < 500:
break
if not start and not end:
Expand Down

0 comments on commit 4166d4f

Please sign in to comment.