Commit Graph

760 Commits

Author SHA1 Message Date
Davide Casale
21117f62d0 Merge pull request #35 from Davi0kProgramsThings/fix/refactoring
Merge branch `fix/refactoring` in branch `feature/rest`.
2023-02-17 20:26:43 +01:00
Davide Casale
f4c6a21ef4 Ws examples
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-17 20:23:59 +01:00
Vigan Abdurrahmani
0079580180 Merge pull request #215 from itsdeka/add-id-to-parse-trade
Added id field to _parse_trade
2023-02-17 19:17:56 +01:00
Vigan Abdurrahmani
21688ec990 Merge branch 'master' into add-id-to-parse-trade 2023-02-17 19:17:13 +01:00
Davide Casale
32a179fc00 Add LICENSE.md file (Apache-V2). Edit setup.py with new arguments. Prepare to distribute on PyPI. 2023-02-17 19:08:59 +01:00
Davide Casale
ab66170cf3 Apply refactoring to root package bfxapi. 2023-02-17 18:38:07 +01:00
Davide Casale
d72fcf3981 Add better handling for info code 20051. 2023-02-17 17:21:57 +01:00
Vigan Abdurrahmani
a5bdcc16ef Merge pull request #211 from itsdeka/fix-withdraw-fees
Fix withdraw fees
2023-02-17 15:46:00 +01:00
itsdeka
7f3b62c6b6 use correct index 2023-02-17 15:16:32 +01:00
itsdeka
55f4765271 Added id field to _parse_trade 2023-02-17 11:35:15 +01:00
Davide Casale
16d0ee525e Remove test_rest_serializers_and_types.py and test_websocket_serializers_and_types.py. Add new test_rest_serializers.py and test_websocket_serializers.py unit tests. Edit bfxapi.tests.__init__.py's test suite. 2023-02-17 04:29:26 +01:00
Davide Casale
fde27e933f Add handling for <20051 : Stop/Restart Websocket Server (please reconnect)>. 2023-02-17 04:15:38 +01:00
Davide Casale
9eb2c73407 Fix small bug in examples/websocket/ticker.py demo. 2023-02-17 04:07:44 +01:00
Davide Casale
4d0fa49e22 Rewrite bfxapi/utils/logger.py with new ColoredLogger. 2023-02-17 04:01:47 +01:00
Davide Casale
e536515bbd Fix bugs and rewrite code in bfxapi.websocket.client sub-package. 2023-02-17 02:58:53 +01:00
Davide Casale
b8a5bcb515 Fix bugs and rewrite regions of new reconnection system. 2023-02-16 20:12:02 +01:00
Davide Casale
fa9bdfc333 Rewrite reconnection system with numerous fixes. 2023-02-15 21:58:01 +01:00
Davide Casale
99f58ddb04 Add new packages to setup.py. Add new feature in .on and .once methods in bfxapi.websocket.client.bfx_websocket_client. Fix small typo in __init__.py. 2023-02-14 18:49:45 +01:00
Davide Casale
49517f9709 Small fix in package import statements. 2023-02-14 17:03:16 +01:00
Davide Casale
17c9502733 Apply fixes and refactoring to the bfxapi.handlers sub-package. 2023-02-14 16:29:50 +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
7e421d3803 Fix bug in examples/rest/merchant.py demo. 2023-02-10 04:47:03 +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
998eadf99b Merge pull request #32 from Davi0kProgramsThings/fix/refactoring
Merge branch `fix/refactoring` in branch `feature/rest`.
2023-02-10 03:07:10 +01:00
Davide Casale
7dc043bbe5 Small fix in BfxWebsocketClient class. 2023-02-09 04:35:43 +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
851521c63f Remove bfxapi/utils/flags.py file from bfxapi.utils sub-package. 2023-02-07 19:00:50 +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
Davide Casale
0a9384e670 Add new bfxapi/tests/test_notification unit test. 2023-02-07 17:45:03 +01:00
Davide Casale
168b2eae25 Implement new unit tests in bfxapi/tests/test_labeler.py. 2023-02-07 17:21:51 +01:00
Davide Casale
52ff5006b1 Add bfxapi/tests/test_labeler.py unit test. 2023-02-06 19:36:54 +01:00
Davide Casale
c588d9f20c Rewrite bfxapi/rest/_Requests.py with type hinting. Add None values erasement in bfxapi/utils/JSONEncoder.py. Update code with new improvements. 2023-02-06 19:15:58 +01:00
Davide Casale
929ae62d2f Fix bug in bfxapi.tests sub-package. 2023-02-06 16:16:11 +01:00
Davide Casale
0dd6fa9dbb Reorder and rename some method inside _RestAuthenticatedEndpoints class. 2023-02-01 18:00:00 +01:00
Davide Casale
06dc9e1c0a Remove cid.py and integers.py from bfxapi.utils subpackage. Rename encoder.py file to JSONEncoder.py. Remove IntegerUnderflowError and IntegerOverflowflowError exceptions from bfxapi/exceptions.py. 2023-02-01 17:18:05 +01:00