Commit Graph

611 Commits

Author SHA1 Message Date
Davide Casale
41fd46dec7 Align code with new Bitfinex API documentation improvements. 2023-03-14 20:58:56 +01:00
Davide Casale
464d942fb0 Replace BfxWebsocketClient::on_open_events with BfxWebsocketBucket::on_open_event field. 2023-03-14 19:16:12 +01:00
Davide Casale
249f19fe41 Add ZeroConnectionsError in bfxapi.websocket.exceptions. Add log if connections = 0 in BfxWebsocketClient::start. Add raise ZeroConnectionError in BfxWebsocketClient::subscribe if connections equals 0. 2023-03-14 19:03:05 +01:00
Davide Casale
98c3e4f352 Change branch from feature/ci-cd to v3-beta in .github/workflows/bitfinex-api-py-ci.yml. 2023-03-09 18:37:13 +01:00
Davide Casale
dbbe625369 Merge pull request #4 from Davi0kProgramsThings/feature/ci-cd
Merge branch `feature/ci-cd` into branch `master`.
2023-03-09 18:33:28 +01:00
Davide Casale
e8c7374cf2 Fix bug in .github/workflows/bitfinex-api-py-ci.yml. 2023-03-09 18:13:35 +01:00
Davide Casale
87bc19da48 Add .travis.yml for Travis-CI support. 2023-03-09 18:06:04 +01:00
Davide Casale
e99230b0cb Add .github/workflows/bitfinex-api-py-ci.yml workflow for Github Actions. 2023-03-09 18:05:28 +01:00
Davide Casale
0157433664 Merge pull request #3 from Davi0kProgramsThings/fix/pylint
Merge branch `fix/pylint` in branch `master`.
2023-03-08 22:08:43 +01:00
Davide Casale
1bb3c95eff Apply refactoring to .pylintrc file. 2023-03-08 22:08:22 +01:00
Davide Casale
ac08071ab1 Add pylint to .github/PULL_REQUEST_TEMPLATE.md's checklist. 2023-03-08 22:00:50 +01:00
Davide Casale
bba1493043 Apply pylint's linting rules to setup.py. 2023-03-08 21:50:41 +01:00
Davide Casale
d04ebb96d5 Apply pylint's linting rules to examples/websocket/public/*.py. 2023-03-08 21:36:25 +01:00
Davide Casale
834a664034 Apply pylint's linting rules to examples/websocket/authenticated/*.py. 2023-03-08 21:28:32 +01:00
Davide Casale
b0da5e2fb1 Apply pylint's linting rules to examples/rest/public/*.py. 2023-03-08 21:27:46 +01:00
Davide Casale
7311ffae4f Apply pylint's linting rules to examples/rest/merchant/*.py. 2023-03-08 19:40:06 +01:00
Davide Casale
88c016e1f8 Apply pylint's linting rules to examples/rest/authenticated/*.py. 2023-03-08 19:39:00 +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
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
08af0c8c90 Add .github folder. Add ISSUE_TEMPLATE.md and PULL_REQUEST_TEMPLATE.md. 2023-03-06 19:09:32 +01:00
Davide Casale
af25f25d3b Apply pylint's linting rules to bfxapi/tests/*.py. 2023-03-06 19:06:32 +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
7e627dd239 Apply pylint's linting rules to bfxapi/websocket/handlers/*.py. 2023-03-06 17:53:54 +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
7288d05939 Apply pylint's linting rules to bfxapi/utils/*.py. 2023-03-06 17:22:00 +01:00
Davide Casale
ae14a5d0d1 Apply pylint's linting rules to bfxapi/__init__.py, bfxapi/enums.py, bfxapi/exceptions.py, bfxapi/labeler.py, bfxapi/notification.py and bfxapi/urls.py. 2023-03-06 17:14:03 +01:00
Davide Casale
a4c1418113 Install and configure pylint. Add pylint to dev-requirements.txt. Start rewriting code to follow pylint's linting rules. 2023-03-06 16:43:08 +01:00
Davide Casale
6c99d3aacf Add dev-requirements.txt. Split requirements between requirements.txt and dev-requirements.txt. Change install_requires in setup.py. 2023-03-06 16:03:08 +01:00
Davide Casale
b3e1e27331 Add and implement FileLogger in bfxapi.utils.logger. 2023-03-03 21:12:34 +01:00
Davide Casale
3645c6badd Add .vscode, *.pyc and *.log in .gitignore. 2023-03-03 20:17:58 +01:00
Davide Casale
dc17b8f54a Remove STAGING_REST_HOST and STAGING_WSS_HOST urls from bfxapi/urls.py. 2023-03-03 20:14:51 +01:00
Davide Casale
5f2c2e25e9 Merge pull request #2 from Davi0kProgramsThings/feature/add-missing-endpoints
Merge branch `feature/add-missing-endpoints` into branch `master`.
2023-03-03 20:06:02 +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
8266898212 Merge branch v3-beta in branch master. 2023-02-23 17:08:24 +01:00
Davide Casale
846cec1dcd Merge pull request #2 from Davi0k/fix/examples
Merge branch `fix/examples` in branch `master`.
2023-02-20 18:30:18 +01:00
Davide Casale
442155b48e Rename .notify_info to .data in Notification (bfxapi.notifications). 2023-02-20 18:29:08 +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
5914d7fa8c Add dist to .gitignore file. 2023-02-17 20:50:31 +01:00