Commit Graph

16 Commits

Author SHA1 Message Date
Davide Casale
f0d14a230f Fix bug in bfxapi.rest.endpoints.merchant sub-package. 2023-02-12 23:27:26 +01:00
Davide Casale
9ada3b05a2 Fix bug in submit_invoice method (bfxapi.rest.endpoints.rest_authenticated_endpoints). 2023-02-12 21:29:06 +01:00
Davide Casale
0a9384e670 Add new bfxapi/tests/test_notification unit test. 2023-02-07 17:45:03 +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
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
itsdeka
ae42fb7d93 Add _RecursiveSerializer class in bfxapi/labeler.py file. Add support to new pulse endpoints (with serializers and types). Add examples/rest/get_pulse_data.py demo. 2023-01-24 18:16:11 +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
6f8e37cad0 Fix all mypy errors and warnings due to new dataclass implementation. 2023-01-16 18:27:03 +01:00
Davide Casale
2afcc76647 Fix bug regarding new typing with dataclasses. 2023-01-16 18:18:12 +01:00
Davide Casale
1613a56d81 Rename bfxapi/rest/typings.py to bfxapi/rest/types.py. 2023-01-16 16:40:14 +01:00
Davide Casale
0bb9f65a19 Replace SimpleNamespaces with dataclasses. Add base class _Typing in labeler.py to convert dictionaries to dataclasses. Remove SimpleNamespace references. 2023-01-16 16:30:06 +01:00
Davide Casale
903f68c6e3 Add support for SimpleNamespace (instead of TypedDict) in bfxapi/labeler.py and bfxapi/notifications.py. Add generics Notification type in notifications.py. Add support for new changes in bfxapi/rest/BfxRestInterface.py. 2023-01-13 18:15:29 +01:00
Davide Casale
4f63f4068e Add and implement notification.py in root package (bfxapi). 2022-12-22 18:24:56 +01:00
Davide Casale
2595b8a760 Fix mypy errors and warnings in bfxapi/labeler.py script. 2022-12-15 19:21:19 +01:00
Davide Casale
24b105378a Add hierarchy logic to custom exceptions. 2022-12-15 19:14:00 +01:00
Davide Casale
c9f86d6d03 Add labeler.py to root package (bfxapi). Remove List aliases in bfxapi/rest/typings.py. Update BfxRestInterface.py to use new standards. 2022-12-15 19:07:55 +01:00