Commit Graph

138 Commits

Author SHA1 Message Date
Davide Casale
a57c0d81e0 Add support for endpoint: GET /auth/r/ledgets/hist. 2024-11-14 05:55:06 +01:00
Davide Casale
847d887bab Add support for event funding_info_update. 2024-04-24 17:24:09 +02:00
Davide Casale
a72a9475c0 Add support for event base_margin_info and symbol_margin_info. 2024-04-24 17:23:16 +02:00
Davide Casale
65318beee9 Handle unexpected errors in HTTP requests (bfxapi.rest._interface). 2024-04-04 16:42:08 +02:00
Davide Casale
bdd78a817d Merge branch Davi0kProgramsThings:fix/refactoring into branch bitfinexcom:master. (#238)
# Description
<!--- Describe your changes in detail -->
PR includes some global refactoring in preparation for the v3.0.0 stable release.

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
-

## Related Issue
<!--- If suggesting a new feature or change, please discuss it in an issue first -->
<!--- If fixing a bug, there should be an issue describing it with steps to reproduce -->
<!--- Please link to the issue here: -->
PR fixes the following issue: -

## Type of change
<!-- Select the most suitable choice and remove the others from the checklist -->

- [X] Bug fix (non-breaking change which fixes an issue);

# Checklist:

- [X] I've done a self-review of my code;
- [X] I've made corresponding changes to the documentation;
- [X] I've made sure my changes generate no warnings;
- [X] mypy returns no errors when run on the root package;
<!-- If you use pre-commit hooks you can always check off the following tasks -->
- [X] I've run black to format my code;
- [X] I've run isort to format my code's import statements;
- [X] flake8 reports no errors when run on the entire code base;
2024-04-03 22:34:23 +02:00
Davide Casale
1a6f4eaa21 Fix flake8 configuration to respect Black's 10% rule. 2024-02-27 18:14:47 +01:00
Davide Casale
5543b0b1d2 Fix all flake8 errors in all python files (+ edit configuration files). 2024-02-27 17:24:47 +01:00
Davide Casale
2344d44aa0 Remove all old '# pylint:' comments from all python files. 2024-02-26 20:04:09 +01:00
Davide Casale
38dbff1141 Apply black to all python files (bfxapi/**/*.py). 2024-02-26 19:43:14 +01:00
Davide Casale
2b7dfc5b8a Apply isort to all python files (bfxapi/**/*.py). 2024-02-26 19:36:10 +01:00
Davide Casale
1ec6c49428 Rewrite all rest examples according to v3.0.0b3's changes. 2023-10-26 17:47:06 +02:00
Davide Casale
9287723678 Fix several bugs in sub-package bfxapi.rest.endpoints. 2023-10-26 16:48:41 +02:00
Davide Casale
8c65ba54e9 Rename property 'renew' to 'op_renew' in get_deposit_address. 2023-10-26 16:48:41 +02:00
Davide Casale
2bed2f6672 Fix bug in cancel_order_multi (both rest and websocket). 2023-10-26 16:48:41 +02:00
Davide Casale
b082891c41 Remove useless and redundant docstrings from custom exceptions. 2023-10-26 06:53:35 +02:00
Davide Casale
2734ff9e1a Drop modules bfxapi.enums, bfxapi.rest.enums and bfxapi.websocket.enums. 2023-10-26 06:53:35 +02:00
Davide Casale
8e915e42eb Improve fidelity to pylint's standard rules. 2023-10-26 06:53:11 +02:00
Davide Casale
378e89b504 Fix small bug in module bfxapi.exceptions. 2023-10-09 16:27:04 +02:00
Davide Casale
25881e77c8 Fix and rewrite some logic in class BfxWebSocketClient. 2023-10-09 16:25:46 +02:00
Davide Casale
de0ee54900 Add new module bfxapi._utils.json_decoder. 2023-10-09 04:58:34 +02:00
Davide Casale
9872adf60f Fix type hinting in module bfxapi._utils.json_encoder. 2023-10-09 04:58:25 +02:00
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