diff --git a/datamaxi/__version__.py b/datamaxi/__version__.py index 5963297..8b301a7 100644 --- a/datamaxi/__version__.py +++ b/datamaxi/__version__.py @@ -1 +1 @@ -__version__ = "0.22.0" +__version__ = "0.23.0" diff --git a/datamaxi/datamaxi/cex_candle.py b/datamaxi/datamaxi/cex_candle.py index 1decc3e..83c7cfa 100644 --- a/datamaxi/datamaxi/cex_candle.py +++ b/datamaxi/datamaxi/cex_candle.py @@ -166,7 +166,7 @@ def symbols(self, exchange: str = None, market: str = None) -> List[Dict]: url_path = "/api/v1/cex/candle/symbols" return self.query(url_path, params) - def intervals(self, exchange: str, market: str = "spot") -> List[str]: + def intervals(self) -> List[str]: """Fetch supported intervals accepted by [datamaxi.CexCandle.get](./#datamaxi.datamaxi.CexCandle.get) API. @@ -175,20 +175,8 @@ def intervals(self, exchange: str, market: str = "spot") -> List[str]: - Args: - exchange (str): Exchange name - market (str): Market type (spot/futures) - Returns: List of supported intervals """ - check_required_parameters( - [ - [exchange, "exchange"], - [market, "market"], - ] - ) - - params = {"exchange": exchange, "market": market} url_path = "/api/v1/cex/candle/intervals" - return self.query(url_path, params) + return self.query(url_path) diff --git a/pyproject.toml b/pyproject.toml index 8e51c84..288c679 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "datamaxi" -version = "0.22.0" +version = "0.23.0" authors = [ { name="Bisonai", email="business@bisonai.com" }, ]