Commit Graph

117 Commits

Author SHA1 Message Date
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
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
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
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
63ab433710 Apply refactoring to some relative import directives. 2023-04-20 15:38:10 +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
34f583cfff Add bfxapi/version.py to contain the package version. 2023-03-22 21:26:09 +01:00
Davide Casale
41fd46dec7 Align code with new Bitfinex API documentation improvements. 2023-03-14 20:58:56 +01:00
Davide Casale
bd09cc4ae4 Remove skip parameter in _Serializer::parse, add flat argument in _Serializer::__init__. Add _Serializer::__flatten class method. Fix small bugs in bfxapi.rest.endpoints.rest_public_endpoints and bfxapi.rest.endpoints.rest_authenticated_endpoints. 2023-03-08 19:31:48 +01:00
Davide Casale
87ea765281 Apply refactoring with pylint to bfxapi.rest.endpoints sub-package. 2023-03-08 18:32:03 +01:00
Davide Casale
0ee8a8ab29 Edit .pylintrc with new rules. 2023-03-08 16:50:16 +01:00
Davide Casale
894391256d Rewrite long strings using \ instead of + (concatenation). 2023-03-08 16:30:52 +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
844c2526b9 Apply pylint's linting rules to bfxapi/rest/endpoints/rest_merchant_endpoints.py. 2023-03-07 18:12:32 +01:00
Davide Casale
06482ea3d3 Apply pylint's linting rules to bfxapi/rest/endpoints/rest_authenticated_endpoints.py. 2023-03-07 18:02:26 +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
5c707d7929 Apply pylint's linting rules to bfxapi/websocket/client/*.py. 2023-03-06 18:46:04 +01:00
Davide Casale
7288d05939 Apply pylint's linting rules to bfxapi/utils/*.py. 2023-03-06 17:22:00 +01:00
Davide Casale
7562b21ada settings
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-03-03 20:03:23 +01:00
Davide Casale
0300e6261a get invoices paginated
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-03-03 18:30:25 +01:00
itsdeka
b06476e0d4 nonce must be str 2023-03-03 15:53:06 +01:00
Davide Casale
6f61b983a5 Rewrite, edit and organize examples/websocket demos. 2023-02-20 18:22:57 +01:00
Davide Casale
cec9d6ba68 Rewrite, edit and organize examples/rest demos. 2023-02-20 18:11:10 +01:00
Davide Casale
e3eb3d6a56 Merge pull request #1 from itsdeka/patch-1
Nonce generation must be the same of the previous version.
2023-02-20 15:23:05 +01:00
Dario Moceri
3c760eacf6 Nonce generation must be the same of the previous version 2023-02-20 11:14:34 +01:00
Davide Casale
ab66170cf3 Apply refactoring to root package bfxapi. 2023-02-17 18:38:07 +01:00
Davide Casale
49517f9709 Small fix in package import statements. 2023-02-14 17:03:16 +01:00
Davide Casale
f0f150cec2 Split websocket package in multiple sub-package. Split handlers.py in public_channels_handler.py and authenticated_channels_handler.py. Rename files attaining to new conventions. 2023-02-13 19:09:38 +01:00
Davide Casale
6a7577f98b Remove Optional typing in bfxapi.rest.types. 2023-02-13 17:32:46 +01:00
Davide Casale
821541134a Fix bug and refactor code in bfxapi.rest.types sub-package. 2023-02-13 17:29:35 +01:00
Davide Casale
39f317ba40 Rename bfxapi.utils.camel_and_snake_case_adapters to bfxapi.utils.camel_and_snake_case_helpers. 2023-02-13 16:22:39 +01:00
Davide Casale
f0d14a230f Fix bug in bfxapi.rest.endpoints.merchant sub-package. 2023-02-12 23:27:26 +01:00
Davide Casale
e5b0c1af9c Move merchant endpoints in bfxapi.rest.endpoints.rest_merchant_endpoints sub-package. 2023-02-12 22:09:44 +01:00
Davide Casale
52bc475971 add currency endpoints
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-12 22:03:10 +01:00
Davide Casale
917a4a8367 add Payment
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-12 22:01:12 +01:00
Davide Casale
c41c00259f add endpoints
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-12 21:45:01 +01:00
Davide Casale
3c377928b2 fix errors merchant
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-12 21:41:33 +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
56476b96fc Add new serializers to __serializers__ constant in bfxapi.rest.serializers. 2023-02-10 04:33:29 +01:00
Davide Casale
180e92fcb4 merchant
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-10 04:27:35 +01:00
Davide Casale
7e7c4ef23a Fix all mypy errors and warnings. 2023-02-09 04:22:22 +01:00
Davide Casale
5cf3b18ff3 Fix bug in composing data object inside bfxapi/rest/endpoints/rest_authenticated_endpoints.py file. 2023-02-09 04:16:31 +01:00
itsdeka
48583786f7 login history + balance available 2023-02-09 03:33:03 +01:00
itsdeka
15a2e41e43 user info + fixs 2023-02-09 03:27:15 +01:00
Davide Casale
6693e376fc Fix bug in bfxapi.middleware sub-package. 2023-02-08 14:57:36 +01:00
Davide Casale
2d01261182 Organize rest sub-package. Create new endpoints and middleware sub-packages. Rename class Requests to Middleware. 2023-02-07 18:55:17 +01:00