Davide Casale
6d868a8287
Fix bug about wss_timeout by changing reconnection logic (in BfxWebsocketClient and BfxWebsocketBucket).
2023-04-16 21:01:36 +02:00
Davide Casale
734375ec9f
Add and implement wss_timeout in BfxWebsocketClient (and Client).
2023-04-16 20:04:46 +02:00
Davide Casale
464d942fb0
Replace BfxWebsocketClient::on_open_events with BfxWebsocketBucket::on_open_event field.
2023-03-14 19:16:12 +01:00
Davide Casale
249f19fe41
Add ZeroConnectionsError in bfxapi.websocket.exceptions. Add log if connections = 0 in BfxWebsocketClient::start. Add raise ZeroConnectionError in BfxWebsocketClient::subscribe if connections equals 0.
2023-03-14 19:03:05 +01:00
Davide Casale
894391256d
Rewrite long strings using \ instead of + (concatenation).
2023-03-08 16:30:52 +01:00
Davide Casale
9e1b336a67
Move _Delay local class in global scope (bfxapi.websocket.client.bfx_websocket_client).
...
Apply pylint's linting rules to bfxapi/rest/__init__.py, bfxapi/rest/enums.py, bfxapi/rest/exceptions.py, bfxapi/rest/serializers.py and bfxapi/rest/types.py."
Apply pylint's linting rules to bfxapi/rest/endpoints/__init__.py, bfxapi/rest/endpoints/bfx_rest_interface.py and bfxapi/rest/endpoints/rest_public_endpoints.py.
2023-03-07 17:08:37 +01:00
Davide Casale
9e566bbc5a
Switch from max-line-length=130 to more standard max-line-length=120 in .pylintrc.
2023-03-07 15:28:02 +01:00
Davide Casale
af25f25d3b
Apply pylint's linting rules to bfxapi/tests/*.py.
2023-03-06 19:06:32 +01:00
Davide Casale
5c707d7929
Apply pylint's linting rules to bfxapi/websocket/client/*.py.
2023-03-06 18:46:04 +01:00
Davide Casale
7288d05939
Apply pylint's linting rules to bfxapi/utils/*.py.
2023-03-06 17:22:00 +01:00
Davide Casale
a4c1418113
Install and configure pylint. Add pylint to dev-requirements.txt. Start rewriting code to follow pylint's linting rules.
2023-03-06 16:43:08 +01:00
Davide Casale
b3e1e27331
Add and implement FileLogger in bfxapi.utils.logger.
2023-03-03 21:12:34 +01:00
itsdeka
b06476e0d4
nonce must be str
2023-03-03 15:53:06 +01:00
Davide Casale
e3eb3d6a56
Merge pull request #1 from itsdeka/patch-1
...
Nonce generation must be the same of the previous version.
2023-02-20 15:23:05 +01:00
Davide Casale
ab66170cf3
Apply refactoring to root package bfxapi.
2023-02-17 18:38:07 +01:00
Davide Casale
d72fcf3981
Add better handling for info code 20051.
2023-02-17 17:21:57 +01:00
Davide Casale
fde27e933f
Add handling for <20051 : Stop/Restart Websocket Server (please reconnect)>.
2023-02-17 04:15:38 +01:00
Davide Casale
9eb2c73407
Fix small bug in examples/websocket/ticker.py demo.
2023-02-17 04:07:44 +01:00
Davide Casale
4d0fa49e22
Rewrite bfxapi/utils/logger.py with new ColoredLogger.
2023-02-17 04:01:47 +01:00
Davide Casale
e536515bbd
Fix bugs and rewrite code in bfxapi.websocket.client sub-package.
2023-02-17 02:58:53 +01:00
Davide Casale
b8a5bcb515
Fix bugs and rewrite regions of new reconnection system.
2023-02-16 20:12:02 +01:00
Davide Casale
fa9bdfc333
Rewrite reconnection system with numerous fixes.
2023-02-15 21:58:01 +01:00
Davide Casale
99f58ddb04
Add new packages to setup.py. Add new feature in .on and .once methods in bfxapi.websocket.client.bfx_websocket_client. Fix small typo in __init__.py.
2023-02-14 18:49:45 +01:00
Davide Casale
f0f150cec2
Split websocket package in multiple sub-package. Split handlers.py in public_channels_handler.py and authenticated_channels_handler.py. Rename files attaining to new conventions.
2023-02-13 19:09:38 +01:00