diff --git a/README.md b/README.md index d059acc1..fee9d750 100644 --- a/README.md +++ b/README.md @@ -405,7 +405,7 @@ Note: Authenticated Futures websocket clients can also un-/subscribe from/to pub # 🆕 Contributions -... are welcome! - Please have a look at [CONTRIBUTION.md](./CONTRIBUTING.md). +… are welcome! - Please have a look at [CONTRIBUTION.md](./CONTRIBUTING.md). --- @@ -422,7 +422,7 @@ Note: Authenticated Futures websocket clients can also un-/subscribe from/to pub -# 📝 Notes: +# 📝 Notes - Coding standards are not always followed to make arguments and function names as similar as possible to those in the Kraken API documentations. diff --git a/kraken/spot/market.py b/kraken/spot/market.py index 838aa9c6..80c1648b 100644 --- a/kraken/spot/market.py +++ b/kraken/spot/market.py @@ -329,7 +329,10 @@ def get_order_book(self: "Market", pair: str, count: Optional[int] = 100) -> dic ) def get_recent_trades( - self: "Market", pair: str, since: Optional[Union[str, int]] = None + self: "Market", + pair: str, + since: Optional[Union[str, int]] = None, + count: Optional[int] = None, ) -> dict: """ Get the latest trades for a specific trading pair (up to 1000). @@ -340,6 +343,8 @@ def get_recent_trades( :type pair: str :param since: Filter trades since given timestamp (default: ``None``) :type since: str | int, optional + :param count: The max number of results + :type count: int, optional :return: The last public trades (up to 1000 results) :rtype: dict @@ -361,7 +366,9 @@ def get_recent_trades( """ params: dict = {"pair": pair} if defined(since): - params["since"] = None + params["since"] = since + if defined(count): + params["count"] = count return self._request( # type: ignore[return-value] method="GET", uri="/public/Trades", params=params, auth=False )