diff --git a/CHANGELOG.md b/CHANGELOG.md index a8d1609..52b12fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.4] - 2024-01-09 +### Fixed +- Consider delisted symbol if `ticker_time` is None + ## [1.0.3] - 2024-01-08 ### Fixed - Add `None` check before restoring `best_triplet` diff --git a/README.md b/README.md index 035e22d..6b35258 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Triangular illustration

-# Triangular Arbitrage by OctoBot [1.0.3](https://github.com/Drakkar-Software/Triangular-Arbitrage/blob/master/CHANGELOG.md) +# Triangular Arbitrage by OctoBot [1.0.4](https://github.com/Drakkar-Software/Triangular-Arbitrage/blob/master/CHANGELOG.md) [![PyPI](https://img.shields.io/pypi/v/OctoBot-Triangular-Arbitrage.svg)](https://pypi.python.org/pypi/OctoBot-Triangular-Arbitrage/) [![Dockerhub](https://img.shields.io/docker/pulls/drakkarsoftware/octobot-triangular-arbitrage.svg?logo=docker)](https://hub.docker.com/r/drakkarsoftware/octobot-triangular-arbitrage) diff --git a/triangular_arbitrage/__init__.py b/triangular_arbitrage/__init__.py index 1d0ac9c..1092de0 100644 --- a/triangular_arbitrage/__init__.py +++ b/triangular_arbitrage/__init__.py @@ -1,2 +1,2 @@ PROJECT_NAME = "OctoBot-Triangular-Arbitrage" -VERSION = "1.0.3" +VERSION = "1.0.4" diff --git a/triangular_arbitrage/detector.py b/triangular_arbitrage/detector.py index 032a765..f1f0a21 100644 --- a/triangular_arbitrage/detector.py +++ b/triangular_arbitrage/detector.py @@ -27,7 +27,7 @@ def get_symbol_from_key(key_symbol: str) -> symbols.Symbol: def is_delisted_symbols(exchange_time, ticker, threshold = 1 * constants.DAYS_TO_SECONDS * constants.MSECONDS_TO_SECONDS) -> bool: ticker_time = ticker['timestamp'] - return not (exchange_time - ticker_time <= threshold) + return ticker_time is None or not (exchange_time - ticker_time <= threshold) def get_last_prices(exchange_time, tickers, ignored_symbols): return [