Davide Casale
d80b8b8721
Rename BfxWebsocketClient, BfxWebsocketBucket and BfxWebsocketInputs to BfxWebSocketClient, BfxWebSocketBucket and BfxWebSocketInputs.
2023-04-20 01:36:09 +02:00
Davide Casale
41fd46dec7
Align code with new Bitfinex API documentation improvements.
2023-03-14 20:58:56 +01:00
Davide Casale
88e6c79532
Add #pylint: disable=duplicate-code comment in serializers.py and types.py (both rest and websocket).
2023-03-07 18:14:50 +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
af25f25d3b
Apply pylint's linting rules to bfxapi/tests/*.py.
2023-03-06 19:06:32 +01:00
Davide Casale
7288d05939
Apply pylint's linting rules to bfxapi/utils/*.py.
2023-03-06 17:22:00 +01:00
Davide Casale
6f61b983a5
Rewrite, edit and organize examples/websocket demos.
2023-02-20 18:22:57 +01:00
Davide Casale
49517f9709
Small fix in package import statements.
2023-02-14 17:03:16 +01:00
Davide Casale
929ae62d2f
Fix bug in bfxapi.tests sub-package.
2023-02-06 16:16:11 +01:00
Davide Casale
06dc9e1c0a
Remove cid.py and integers.py from bfxapi.utils subpackage. Rename encoder.py file to JSONEncoder.py. Remove IntegerUnderflowError and IntegerOverflowflowError exceptions from bfxapi/exceptions.py.
2023-02-01 17:18:05 +01:00
Davide Casale
05784cc8ec
Add tests subpackage. Add TestRestSerializersAndTypes and TestWebsocketSerializersAndTypes unit tests. Fix consistency bugs between serializers and types.
2023-02-01 17:05:25 +01:00
Davide Casale
40a48184da
Fix bugs and differences in namings/types/fields between bfxapi.rest.types, bfxapi.rest.serializers and bfxapi.websocket.types, bfxapi.websocket.serializers.
2023-01-31 18:54:15 +01:00
Davide Casale
7b313ddcab
Merge TradeExecutionUpdate and TradeExecuted serializers and types in websocket subpackage.
2023-01-31 17:27:14 +01:00
Davide Casale
d767e5dcfe
Replace every snake case (uppercase) to snake case (lowercase) in serializers, types and notification.
2023-01-26 19:00:13 +01:00
Davide Casale
ed12bf473f
Rewrite and extend custom JSONEncoder in bfxapi/utils/encoder.py to automatically convert floats to strs. Change every Union[Decimal, str] type to Union[Decimal, float, str]. Fix type hinting bug in labeler.py.
2023-01-25 18:18:15 +01:00
Davide Casale
5fe4d83902
Move subscriptions type hinting from bfxapi/websocket/types.py to bfxapi/websocket/subscriptions.py.
2023-01-19 18:00:51 +01:00
Davide Casale
e185da4cc9
Rename bfxapi/websocket/typings.py to types.py. Replace TypedDicts with dataclasses (with _Type as base class). Update demos in examples/websocket to use new implementation.
2023-01-16 17:07:16 +01:00