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
|
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
|
a7f5aa684a
|
Apply pylint's linting rules to bfxapi/websocket/__init__.py, bfxapi/websocket/enums.py, bfxapi/websocket/exceptions.py, bfxapi/websocket/serializers.py and bfxapi/websocket/subscriptions.py.
|
2023-03-06 17:28:56 +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
|
2afcc76647
|
Fix bug regarding new typing with dataclasses.
|
2023-01-16 18:18:12 +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 |
|
Davide Casale
|
e64c25bf19
|
Implement bfxapi/notifications.py in websocket subpackage.
|
2023-01-12 18:36:23 +01:00 |
|
Davide Casale
|
0a53ab7f7e
|
Apply lots of refactoring to the websocket subpackage (fix every mypy error and warning). Add integers.py and decimal.py to bfxapi.utils package. Update requirements.txt and setup.py with new mypy dependencies.
|
2022-12-16 18:30:41 +01:00 |
|
Davide Casale
|
a5083c36cf
|
Add type hinting using typings.py in bfxapi/websocket/serializers.py.
|
2022-11-24 17:48:41 +01:00 |
|
Davide Casale
|
3a09ba2e90
|
Add filter parameter to BfxWebsocketClient's __init__.py. Rewrite .notify coroutine adding new feature. Add Notifications channel handlers in handlers.py. Add Notification serializer in serializers.py.
|
2022-11-24 17:31:47 +01:00 |
|
Davide Casale
|
a8dec5c6bc
|
Rename bfxapi/websocket/errors.py to exceptions.py. Add Errors enumeration inside BfxWebsocketClient.py and bfxapi/websocket/__init__.py.
|
2022-11-22 18:11:05 +01:00 |
|
Davide Casale
|
971e4759fa
|
Add and implement serializers for websocket authenticated channels in bfxapi/websocket/handlers.py.
|
2022-11-17 17:44:18 +01:00 |
|
Davide Casale
|
1cda4fcb3c
|
Wrap type hinting for subscription objects inside Subscriptions namespace class. Update _Serializer class in serializers.py. Separate Books and Raw Books channels into tp_ and fc_ versions.
|
2022-11-17 16:54:32 +01:00 |
|
Davide Casale
|
d58c60b02d
|
Add EventNotSupported exception in errors.py.
|
2022-11-16 19:01:52 +01:00 |
|
Davide Casale
|
41aa49d2bb
|
Add derivatives_status_update event in handlers.py. Add DerivativesStatus in serializers.py and typings.py.
|
2022-11-16 18:45:25 +01:00 |
|
Davide Casale
|
6448fd59b9
|
Add bfxapi/websocket/serializers.py. Implement _Serializer internal class. Separate labeling from PublicChannelsHandler in handlers.py.
|
2022-11-16 18:33:33 +01:00 |
|