Skip to content

Commit 3926dd7

Browse files
Resolve "Websocket reconnect should be mentioned in the logged warning" (#388)
1 parent 9ec0c88 commit 3926dd7

File tree

12 files changed

+44
-22
lines changed

12 files changed

+44
-22
lines changed

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,27 @@
22

33
## [Unreleased](https://github.com/btschwertfeger/python-kraken-sdk/tree/HEAD)
44

5-
[Full Changelog](https://github.com/btschwertfeger/python-kraken-sdk/compare/v3.2.2...HEAD)
5+
[Full Changelog](https://github.com/btschwertfeger/python-kraken-sdk/compare/v3.2.3...HEAD)
6+
7+
Uncategorized merged pull requests:
8+
9+
- Bump the all group with 2 updates [\#386](https://github.com/btschwertfeger/python-kraken-sdk/pull/386) ([dependabot[bot]](https://github.com/apps/dependabot))
10+
- Update egress rules in CI [\#383](https://github.com/btschwertfeger/python-kraken-sdk/pull/383) ([btschwertfeger](https://github.com/btschwertfeger))
11+
12+
## [v3.2.3](https://github.com/btschwertfeger/python-kraken-sdk/tree/v3.2.3) (2025-07-07)
13+
14+
[Full Changelog](https://github.com/btschwertfeger/python-kraken-sdk/compare/v3.2.2...v3.2.3)
15+
16+
**Fixed bugs:**
17+
18+
- Resolve "Futures endpoint maxordersize is no longer available" [\#382](https://github.com/btschwertfeger/python-kraken-sdk/pull/382) ([btschwertfeger](https://github.com/btschwertfeger))
619

720
Uncategorized merged pull requests:
821

922
- Bump the all group with 2 updates [\#380](https://github.com/btschwertfeger/python-kraken-sdk/pull/380) ([dependabot[bot]](https://github.com/apps/dependabot))
10-
- Update project settings [\#379](https://github.com/btschwertfeger/python-kraken-sdk/pull/379) ([btschwertfeger](https://github.com/btschwertfeger))
1123
- Bump the all group with 5 updates [\#378](https://github.com/btschwertfeger/python-kraken-sdk/pull/378) ([dependabot[bot]](https://github.com/apps/dependabot))
1224
- Bump the all group with 7 updates [\#377](https://github.com/btschwertfeger/python-kraken-sdk/pull/377) ([dependabot[bot]](https://github.com/apps/dependabot))
25+
- Update project settings [\#379](https://github.com/btschwertfeger/python-kraken-sdk/pull/379) ([btschwertfeger](https://github.com/btschwertfeger))
1326

1427
## [v3.2.2](https://github.com/btschwertfeger/python-kraken-sdk/tree/v3.2.2) (2025-04-11)
1528

CITATION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ authors:
77
title: "python-kraken-sdk"
88
doi: 10.5281/zenodo.7653259
99
url: "https://github.com/btschwertfeger/python-kraken-sdk"
10-
keywords: ["Python", "Kraken", "cryptocurrency", "exchange", "API", "SDK"]
10+
keywords: ["Python", "Kraken", "Crypto", "Exchange", "API", "SDK"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">Futures and Spot REST and Websocket API Python SDK for the Kraken Cryptocurrency Exchange 🐙</h1>
1+
<h1 align="center">Futures and Spot REST and Websocket API Python SDK for the Kraken Crypto Asset Exchange 🐙</h1>
22

33
<div align="center">
44

@@ -23,7 +23,7 @@
2323
</div>
2424

2525
> ⚠️ This is an unofficial collection of REST and websocket clients for Spot and
26-
> Futures trading on the Kraken cryptocurrency exchange using Python. Payward
26+
> Futures trading on the Kraken Crypto Asset Exchange using Python. Payward
2727
> Ltd. and Kraken are in no way associated with the authors of this package and
2828
> documentation.
2929
>
@@ -160,7 +160,7 @@ kraken futures --api-key=<api-key> --secret-key=<secret-key> https://futures.kra
160160
# 📍 Spot Clients
161161
162162
The python-kraken-sdk provides lots of functions to easily access most of the
163-
REST and websocket endpoints of the Kraken Cryptocurrency Exchange API. Since
163+
REST and websocket endpoints of the Kraken Crypto Asset Exchange API. Since
164164
these endpoints and their parameters may change, all implemented endpoints are
165165
tested on a regular basis.
166166

doc/examples/rest_example_usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Usage Examples
2222
==============
2323

2424
The python-kraken-sdk provides lots of functions to easily access most of the
25-
REST and websocket endpoints of the Kraken Cryptocurrency Exchange API. Since
25+
REST and websocket endpoints of the Kraken Crypto Asset Exchange API. Since
2626
these endpoints and their parameters may change, all implemented endpoints are
2727
tested on a regular basis.
2828

doc/examples/trading_bot_templates/futures_bot_template.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Futures Trading Bot Template
2020
----------------------------
2121

2222
The template presented below serves as a starting point for the development of
23-
a trading algorithm for trading futures contracts on the cryptocurrency exchange
23+
a trading algorithm for trading futures contracts on the crypto asset exchange
2424
`Kraken`_ using the `python-kraken-sdk`_.
2525

2626
The trading strategy can be implemented in the ``TradingBot`` class. This class

doc/examples/trading_bot_templates/spot_bot_templates.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Spot Trading Bot Templates
2020
--------------------------
2121

2222
The templates presented below serve as starting points for the development of
23-
a trading algorithms for Spot trading on the cryptocurrency exchange `Kraken`_
23+
a trading algorithms for Spot trading on the crypto asset exchange `Kraken`_
2424
using the `python-kraken-sdk`_.
2525

2626
The trading strategy can be implemented using the ``TradingBot`` class. This

doc/introduction.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ python-kraken-sdk
2626

2727

2828
**This is the documentation of the unofficial Python SDK to interact with the
29-
Kraken cryptocurrency exchange.**
29+
Kraken Crypto Asset Exchange.**
3030

3131
*Payward Ltd. and Kraken are in no way associated with the authors of this
3232
package and documentation. Please note that this project is independent and not
@@ -36,7 +36,7 @@ any issues, losses, or risks associated with its usage.*
3636

3737
This documentation refers to the `python-kraken-sdk`_ and serves to simplify the
3838
application of trading strategies, in which as far as possible all interaction
39-
possibilities with the cryptocurrency exchange Kraken are implemented, tested
39+
possibilities with the crypto asset exchange Kraken are implemented, tested
4040
and documented.
4141

4242
- Gladly open an issue on GitHub on make if something is incorrect or missing

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ authors = [
1818
maintainers = [
1919
{ name = "Benjamin Thomas Schwertfeger", email = "contact@b-schwertfeger.de" },
2020
]
21-
description = "Command-line tool and collection of REST and websocket clients to interact with the Kraken cryptocurrency exchange."
21+
description = "Command-line tool and collection of REST and websocket clients to interact with the Kraken Crypto Asset Exchange."
2222
readme = "README.md"
2323
license = "Apache-2.0"
2424
license-files = ["LICENSE"]
@@ -32,7 +32,7 @@ dependencies = [
3232
"orjson",
3333
"aiohttp",
3434
]
35-
keywords = ["crypto", "trading", "kraken", "exchange", "api"]
35+
keywords = ["crypto", "trading", "kraken", "exchange", "api", "sdk", "kraken crypto asset exchange", "automation",]
3636
classifiers = [
3737
"Development Status :: 5 - Production/Stable",
3838
"Framework :: AsyncIO",
@@ -53,8 +53,9 @@ classifiers = [
5353

5454
[project.urls]
5555
Homepage = "https://github.com/btschwertfeger/python-kraken-sdk"
56-
"Bug Tracker" = "https://github.com/btschwertfeger/python-kraken-sdk/issues"
5756
Documentation = "https://python-kraken-sdk.readthedocs.io/en/stable/"
57+
Changelog = "https://github.com/btschwertfeger/python-kraken-sdk/releases"
58+
"Bug Tracker" = "https://github.com/btschwertfeger/python-kraken-sdk/issues"
5859

5960
[project.optional-dependencies]
6061
dev = [

src/kraken/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def print_version(ctx: Context, param: Any, value: Any) -> None: # noqa: ANN401
8989
)
9090
@pass_context
9191
def cli(ctx: Context, **kwargs: dict) -> None:
92-
"""Command-line tool to access the Kraken Cryptocurrency Exchange API"""
92+
"""Command-line tool to access the Kraken Crypto Asset Exchange API"""
9393
ctx.obj = kwargs
9494

9595
logging.basicConfig(

src/kraken/futures/websocket/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,16 +214,20 @@ async def __reconnect(self: ConnectFuturesWebsocket) -> None:
214214
self.state = WSState.ERRORHANDLING
215215
exception_occur = True
216216
self.__challenge_ready = False
217-
message = f"{task} got an exception {task.exception()}\n {task.get_stack()}"
218-
LOG.warning(message)
217+
LOG.warning(
218+
"%s got an exception %s:\n%s\n"
219+
"The connection will be recovered in the background.",
220+
task,
221+
task.exception(),
222+
task.get_stack(),
223+
)
219224
for process in pending:
220225
LOG.warning("Pending %s", process)
221226
try:
222227
process.cancel()
223228
LOG.warning("Cancelled %s", process)
224229
except asyncio.CancelledError:
225230
LOG.error("Failed to cancel %s", process)
226-
await self.__callback({"python-kraken-sdk": {"error": message}})
227231
if exception_occur:
228232
break
229233
self.state = WSState.CLOSED

0 commit comments

Comments
 (0)