Skip to content

Commit

Permalink
add parameters to kraken.spot.Funding.get_recent_withdraw_status
Browse files Browse the repository at this point in the history
  • Loading branch information
btschwertfeger committed Dec 6, 2023
1 parent 93cd118 commit b61505c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions kraken/spot/funding.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ def get_recent_withdraw_status(
self: Funding,
asset: Optional[str] = None,
method: Optional[str] = None,
start: Optional[str] = None,
end: Optional[str] = None,
cursor: Optional[str | bool] = None,
*,
extra_params: Optional[dict] = None,
) -> list[dict]:
Expand All @@ -371,6 +374,13 @@ def get_recent_withdraw_status(
:type asset: str, optional
:param method: Filter by withdraw method (default: ``None``)
:type method: str, optional
:param start: Filter by start timestamp
:type start: str, optional
:param end: Filter by end timestamp
:type end: str, optional
:param cursor: en-/disable paginated responses via ``True``/``False`` or
define the page as str.
:type cursor: str | bool, optional
:return: Withdrawal information
:rtype: list[dict]
Expand Down Expand Up @@ -401,6 +411,12 @@ def get_recent_withdraw_status(
params["asset"] = asset
if defined(method):
params["method"] = method
if defined(start):
params["start"] = start
if defined(end):
params["end"] = end
if defined(cursor):
params["cursor"] = cursor
return self._request( # type: ignore[return-value]
method="POST",
uri="/private/WithdrawStatus",
Expand Down

0 comments on commit b61505c

Please sign in to comment.