Skip to content

Commit

Permalink
feat: remove deprecated params
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkersner committed Oct 28, 2024
1 parent bb2b6d8 commit 2137bc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion datamaxi/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.22.0"
__version__ = "0.23.0"
16 changes: 2 additions & 14 deletions datamaxi/datamaxi/cex_candle.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -175,20 +175,8 @@ def intervals(self, exchange: str, market: str = "spot") -> List[str]:
<https://docs.datamaxiplus.com/rest/cex/candle/intervals>
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)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "datamaxi"
version = "0.22.0"
version = "0.23.0"
authors = [
{ name="Bisonai", email="[email protected]" },
]
Expand Down

0 comments on commit 2137bc5

Please sign in to comment.