Skip to content

Commit

Permalink
add the missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Mar 1, 2024
1 parent 55e7e0a commit 214b6dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion kraken/spot/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def get_orders_info(
extra_params=extra_params,
)

def get_trades_history(
def get_trades_history( # noqa: PLR0913 # pylint: disable=too-many-arguments
self: User,
type_: Optional[str] = "all",
start: Optional[int] = None,
Expand All @@ -527,6 +527,7 @@ def get_trades_history(
*,
trades: Optional[bool] = False,
consolidate_taker: bool = True,
ledgers: bool = False,
extra_params: Optional[dict] = None,
) -> dict:
"""
Expand All @@ -551,6 +552,9 @@ def get_trades_history(
:param consolidate_taker: Consolidate trades by individual taker trades
(default: ``True``)
:type consolidate_taker: bool
:param ledgers: Include related leger entries for filtered trade
(default: ``False``)
:type ledgers: bool
.. code-block:: python
:linenos:
Expand Down Expand Up @@ -586,6 +590,7 @@ def get_trades_history(
params: dict = {
"type": type_,
"trades": trades,
"ledgers": ledgers,
"consolidate_taker": consolidate_taker,
}
if defined(start):
Expand Down

0 comments on commit 214b6dd

Please sign in to comment.