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
36725a183e
Move _BfxWebsocketBucket class in its own file bfxapi/websocket/_BfxWebsocketBucket.py.
2023-01-19 18:12:12 +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
c471a3b52b
Sync demos in examples/websocket with new bfxapi improvements.
2023-01-19 16:35:17 +01:00
Davide Casale
578882b4c2
Small sync with new documentation improvements.
2023-01-18 19:00:37 +01:00
Davide Casale
3d5dfe48ca
Merge pull request #19 from Davi0kProgramsThings/fix/refactoring
...
Merge branch `fix/refactoring` in branch `feature/rest`.
2023-01-18 17:25:30 +01:00
itsdeka
430f7be51d
add wallet deposit/transfer
2023-01-18 17:23:53 +01:00
itsdeka
7ea8b5ae1c
add seed candles
2023-01-18 16:17:03 +01:00
itsdeka
061ca22752
add seed candles
2023-01-17 12:40:09 +01:00
itsdeka
89c921335c
Use namespace
2023-01-17 12:13:06 +01:00
itsdeka
ace074edda
Merge branch 'fix/refactoring' of https://github.com/Davi0kProgramsThings/bitfinex-api-py into add-rest-examples
2023-01-17 12:08:09 +01:00
itsdeka
b48a882f5e
Merge branch 'master' of https://github.com/Davi0kProgramsThings/bitfinex-api-py into add-rest-examples
2023-01-17 11:54:59 +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
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
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
itsdeka
e9ef39c1d6
add rest examples
2023-01-15 23:19:09 +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
b5b3e7718a
Merge pull request #17 from Davi0kProgramsThings/master
...
Sync branch `fix/refactoring` with branch `master`.
2023-01-13 17:14:20 +01:00
Davide Casale
c23bb25395
Merge pull request #16 from Davi0kProgramsThings/feature/rest
...
Merge branch `feature/rest` in branch `master`.
2023-01-13 17:12:26 +01:00
Davide Casale
35cc360e37
Add authenticated data example
2023-01-13 17:11:28 +01:00
Davide Casale
c66c0f00a2
Merge pull request #15 from Davi0kProgramsThings/master
...
Sync branch `feature/rest` with branch `master`.
2023-01-13 16:09:17 +01:00
Davide Casale
c039d316bf
Merge pull request #13 from Davi0kProgramsThings/fix/refactoring
...
Merge branch `fix/refactoring` in branch `master`.
2023-01-12 18:42:43 +01:00
Davide Casale
e64c25bf19
Implement bfxapi/notifications.py in websocket subpackage.
2023-01-12 18:36:23 +01:00
Davide Casale
ff58f049a7
Separate _BfxWebsocketInputs from bfxapi/websocket/BfxWebsocketClient.py to _BfxWebsocketInputs.py. Rename websocket authenticated inputs methods. Refactoring to maintain consistency across the library.
2023-01-12 18:10:00 +01:00
Davide Casale
ccabb0f2c2
Merge pull request #12 from Davi0kProgramsThings/feature/rest
...
Merge branch `feature/rest` in branch `master`.
2023-01-12 17:15:49 +01:00
Davide Casale
a8748774dd
Merge pull request #11 from itsdeka/ws-examples
...
Add wss example to create order
2023-01-12 17:00:22 +01:00
Davide Casale
99726b8e25
Roll-back to previous BfxRestInterface.py code. Remove CID enforcement with generate_unique_cid. Fix small bug in Requests._POST method.
2023-01-12 16:48:24 +01:00
itsdeka
1ff16e26b9
Add lines
2023-01-11 11:51:59 +01:00
itsdeka
f9f72a4ebb
Add lines
2023-01-11 11:51:41 +01:00
itsdeka
44ba7e780a
Add wss exmaple to create order, refactoring
2023-01-11 11:51:16 +01:00
Dario Moceri
876e05e9f3
Merge pull request #10 from itsdeka/fix-rest-feature
...
Fix mistakes in BfxRestInterface.py
2023-01-11 10:37:54 +01:00
itsdeka
bb79a58ee5
Fix mistakes in BfxRestInterface.py
2023-01-11 10:35:09 +01:00
Davide Casale
10862aea79
Fix bug in bfxapi/notifications.py.
2023-01-10 18:19:30 +01:00
Davide Casale
e215cf6a45
Merge pull request #9 from Davi0kProgramsThings/temp
...
Add funding related rest endpoints, refactor pre-existent rest endpoints to use get_ prefix. Add function to calculate flags easily. Add example test to create a funding offer.
2023-01-10 16:44:29 +01:00
itsdeka
22f6fe01fd
Add example to submit, cancel, edit order and adjust issue in labeler.py
2023-01-10 16:42:20 +01:00
itsdeka
ef836bbe1a
Add funding related rest endpoints, refactor pre-existent rest endpoints to use get_ prefix. Add function to calculate flags easily. Add example test to create a funding offer.
2023-01-10 16:03:40 +01:00
Davide Casale
72a3252e32
Add support for new rest authenticated endpoints.
2022-12-23 16:36:51 +01:00
Davide Casale
db4438144d
Add new values in Error enumeration (bxapi/enums.py) according to new documentation update.
2022-12-22 18:57:57 +01:00
Davide Casale
18f9fef12d
Fix some mypy errors and warnings.
2022-12-22 18:48:23 +01:00
Davide Casale
454a7542ed
Add bfxapi/enums.py file. Split enumerations in bfxapi/rest/enums.py and bfxapi/websocket/enums.py. Rename enumeration classes to use singular name identifiers.
2022-12-22 18:42:55 +01:00
Davide Casale
4f63f4068e
Add and implement notification.py in root package (bfxapi).
2022-12-22 18:24:56 +01:00
Davide Casale
d5ace49555
Add implementation for submit_order, update_order and cancel_order endpoint handlers in BfxRestInterface.py.
2022-12-22 17:08:15 +01:00
Davide Casale
79ae0b48e0
Fix bug in _Requests's _GET and _POST methods. Add submit_order to handle POST auth/w/order/submit endpoint. Add OrderType enumeration in bfxapi/rest/enums.py.
2022-12-21 18:27:54 +01:00
Davide Casale
6217f9040c
Rename bfxapi/utils/decimal.py to encoder.py. Add support for datetime JSON serialization. Update class reference in BfxWebsocketClient.py.
2022-12-20 18:40:41 +01:00
Davide Casale
87bb6dc5c7
Add generic error handling (UnknownGenericError in bfxapi/rest/exceptions.py). Add support for new endpoints in _RestAuthenticatedEndpoints class. Extend serializers.py and typings.py.
2022-12-20 17:48:38 +01:00
Davide Casale
7d16c4e4b8
Merge pull request #6 from Davi0kProgramsThings/fix/refactoring
...
Split BfxRestInterface methods in t_ and f_ handlers.
2022-12-16 18:45:11 +01:00
Davide Casale
ea3eefd32c
Apply refactoring with new standards in examples/websockets/*.py demos.
2022-12-16 18:42:59 +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