Commit Graph

685 Commits

Author SHA1 Message Date
Davide Casale
f39b054397 Add implementation for BfxWebSocketClient::resubscribe and BfxWebSocketBucket::resubscribe. 2023-10-08 19:08:18 +02:00
Davide Casale
26f25e5848 Fix bug in method BfxWebSocketBucket::unsubscribe. 2023-10-08 19:08:18 +02:00
Davide Casale
ce23a8991a Block negative checksums for possible race condition (PublicChannelsHandler::__checksum_handler). 2023-10-08 19:08:18 +02:00
Davide Casale
3c02232f42 Add event handler for checksum messages (PublicChannelsHandler). 2023-10-08 19:08:18 +02:00
Davide Casale
d9267de009 Add config to enable checksums in BfxWebSocketBucket. 2023-10-08 19:08:18 +02:00
Davide Casale
3038027f35 Add fix to handle InvalidStatusCode exception (for 408 Request Timeout). 2023-10-08 19:08:18 +02:00
Davide Casale
da2b411265 Fix missing return statement in public_channels_handler.__raw_book_channel_handler. 2023-10-08 19:08:18 +02:00
Davide Casale
4ba6b28f5b Rename bfxapi._utils.logger to bfxapi._utils.logging (and update references). 2023-10-08 19:08:18 +02:00
Davide Casale
faffb7fe82 Add and implement new IncompleteCredentialError in bfxapi.client. 2023-10-08 19:07:44 +02:00
Davide Casale
755ee767a8 Improve bfxapi._utils.logger (and update usage in Client). 2023-06-23 17:09:03 +02:00
Davide Casale
bae48b2901 Improve wss_timeout implementation in BfxWebSocketClient. 2023-06-20 20:34:59 +02:00
Davide Casale
9edbd7a415 Rename bfxapi.utils to _utils (and update references). 2023-06-20 18:37:33 +02:00
Davide Casale
f1e678e043 Add type hinting support to bfxapi.websocket.client.bfx_websocket_client. 2023-06-20 18:37:21 +02:00
Davide Casale
8b196b8f9c Add type hinting support to bfxapi.websocket.client.bfx_websocket_bucket. 2023-06-18 17:44:09 +02:00
Davide Casale
080ec40395 Add sub-package bfxapi.websocket._event_emitter (with bfx_event_emitter.py). 2023-06-18 16:46:12 +02:00
Davide Casale
1d911a250c Rename bfxapi.websocket.client to _client and bfxapi.websocket.handlers to _handlers (according to PEP8). 2023-06-18 01:02:59 +02:00
Davide Casale
fc84389564 Remove support for BfxWebSocketClient's instance variable events_for_subscription. 2023-06-18 00:54:56 +02:00
Davide Casale
d9733e8d38 Change visibility of decorators require_websocket_connection and require_websocket_authentication (and hardcode HEARTBEAT). 2023-06-17 22:24:27 +02:00
Davide Casale
b12fedb7a3 Replace use of asyncio.locks.Event with asyncio.locks.Condition in bfx_websocket_bucket.py. 2023-06-17 22:20:31 +02:00
Davide Casale
cc5f9f5b0e Remove type hinting for decorators _require_websocket_connection and _require_websocket_authentication. 2023-06-12 16:17:45 +02:00
Davide Casale
d63c2c63c3 Rename RestAuthenticatedEndpoints to RestAuthEndpoints (and bfxapi.rest.endpoints.rest_authenticated_endpoints to rest_auth_endpoints). 2023-06-12 15:58:17 +02:00
Davide Casale
f343fce20f Fix comment on top of examples in both examples.rest.auth and examples.websocket.auth. 2023-06-12 15:42:52 +02:00
Davide Casale
708fdc87c7 Add new event liquidation_feed_update to PublicChannelsHandler (and improve overall type hinting). 2023-06-12 15:37:05 +02:00
Davide Casale
7059846843 Remove support for datetime type and improve typing in several files. 2023-05-26 18:48:27 +02:00
Davide Casale
bc0f83d408 Improve JSONEncoder class in bfxapi.utils.json_encoder. 2023-05-26 18:02:41 +02:00
Davide Casale
dbc61ab275 Add type hints and type checks in bfxapi.websocket.client.bfx_websocket_inputs. 2023-05-25 20:42:55 +02:00
Davide Casale
c8290f144b Upgrade to Mypy 1.3.0 (old: 0.991). Fix compatibility problems with Mypy. Add type hints to bfxapi.websocket.handlers. 2023-05-19 22:13:15 +02:00
Davide Casale
57680abd06 Rename bfxapi.websocket.handlers.authenticated_events_handler to auth_events_handler (AuthenticatedEventsHandler -> AuthEventsHandler). 2023-05-19 15:43:35 +02:00
Davide Casale
59a0dca66e Improve and rewrite bfxapi.websocket.subscriptions. 2023-05-19 15:37:03 +02:00
Vigan Abdurrahmani
8d0df0f3c2 Merge pull request #220 from Davi0kProgramsThings/feature/documentation
Merge branch `Davi0kProgramsThings:feature/documentation` into branch `bitfinexcom:v3-beta`.
2023-04-26 17:08:40 +02:00
Davide Casale
353b433247 Update package version to 3.0.0b2. 2023-04-26 17:06:19 +02:00
Vigan Abdurrahmani
e353993b34 Merge pull request #219 from Davi0kProgramsThings/feature/improvements
Merge branch `Davi0kProgramsThings:feature/improvements` into branch `bitfinexcom:v3-beta`.
2023-04-26 17:03:34 +02:00
vigan-abd
65eba2ad92 exclude generated MANIFEST 2023-04-26 17:00:15 +02:00
vigan-abd
c99ac502e6 license fix 2023-04-26 16:59:10 +02:00
Davide Casale
ad5f323ff5 Fix small bug in examples/websocket/auth/wallets.py. 2023-04-20 15:54:43 +02:00
Davide Casale
03a03c6107 Delete HandlerNotFound exception (from bfxapi.websocket.exceptions). 2023-04-20 15:49:46 +02:00
Davide Casale
63ab433710 Apply refactoring to some relative import directives. 2023-04-20 15:38:10 +02:00
Davide Casale
eeb6e975f4 Fix bug in code blocks inside README.md. 2023-04-20 04:08:36 +02:00
Davide Casale
d7ce5630ef Rewrite bfxapi.tests according to latest changes. 2023-04-20 03:49:54 +02:00
Davide Casale
0f9fa1bf6a Merge bfxapi.rest.types and bfxapi.websocket.types in bfxapi.tests sub-package. 2023-04-20 03:44:13 +02:00
Davide Casale
34a1b0099e Improve some endpoints in RestPublicEndpoints (bfxapi.rest.endpoints.rest_public_endpoints). 2023-04-20 02:45:33 +02:00
Davide Casale
6f207010e8 Remove bfxapi.utils.camel_and_snake_case_helpers and move code to bfxapi.rest.endpoints.rest_merchant_endpoints. 2023-04-20 02:02:57 +02:00
Davide Casale
4edbf5d44c Change event trade_executed to trade_execution (and update references). 2023-04-20 01:43:44 +02:00
Davide Casale
1f9d1b719e Fix bug in bfxapi.websocket.subscriptions. 2023-04-20 01:41:08 +02:00
Davide Casale
d80b8b8721 Rename BfxWebsocketClient, BfxWebsocketBucket and BfxWebsocketInputs to BfxWebSocketClient, BfxWebSocketBucket and BfxWebSocketInputs. 2023-04-20 01:36:09 +02:00
Davide Casale
99783c1a5a Allow wss_timeout=None to disable timeout on reconnection. 2023-04-20 01:26:25 +02:00
Davide Casale
92d6630013 Remove oc_multi-notification event from AuthenticatedEventsHandler (bfxapi.websocket.handlers.authenticated_events_handler). 2023-04-20 01:06:54 +02:00
Davide Casale
7231c48465 Improve log messages on reconnection in BfxWebsocketClient (bfxapi.websocket.client.bfx_websocket_client). 2023-04-20 01:04:43 +02:00
Davide Casale
7f788dd239 Improve reconnections by not emitting againg once events. 2023-04-19 18:05:27 +02:00
Davide Casale
3de6eee337 Rename AuthenticatedChannelsHandler to AuthenticatedEventsHandler (and bfxapi.websocket.handlers.authenticated_channels_handler to authenticated_events_handler). 2023-04-19 04:29:26 +02:00