Skip to content

Commit 132d532

Browse files
committed
Fix ticket_time None check
1 parent c76ca00 commit 132d532

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

triangular_arbitrage/detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def get_symbol_from_key(key_symbol: str) -> symbols.Symbol:
2727

2828
def is_delisted_symbols(exchange_time, ticker, threshold = 1 * constants.DAYS_TO_SECONDS * constants.MSECONDS_TO_SECONDS) -> bool:
2929
ticker_time = ticker['timestamp']
30-
return ticker_time is None or not (exchange_time - ticker_time <= threshold)
30+
return ticker_time is not None or not (exchange_time - ticker_time <= threshold)
3131

3232
def get_last_prices(exchange_time, tickers, ignored_symbols):
3333
return [

0 commit comments

Comments
 (0)