Commit Graph

20 Commits

Author SHA1 Message Date
Davide Casale
34f583cfff Add bfxapi/version.py to contain the package version. 2023-03-22 21:26:09 +01:00
Davide Casale
0ee8a8ab29 Edit .pylintrc with new rules. 2023-03-08 16:50:16 +01:00
Davide Casale
7288d05939 Apply pylint's linting rules to bfxapi/utils/*.py. 2023-03-06 17:22:00 +01:00
Davide Casale
b3e1e27331 Add and implement FileLogger in bfxapi.utils.logger. 2023-03-03 21:12:34 +01:00
Davide Casale
4d0fa49e22 Rewrite bfxapi/utils/logger.py with new ColoredLogger. 2023-02-17 04:01:47 +01:00
Davide Casale
49517f9709 Small fix in package import statements. 2023-02-14 17:03:16 +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
9ada3b05a2 Fix bug in submit_invoice method (bfxapi.rest.endpoints.rest_authenticated_endpoints). 2023-02-12 21:29:06 +01:00
Davide Casale
180e92fcb4 merchant
Co-Authored-By: itsdeka <dario.moceri@bitfinex.com>
2023-02-10 04:27:35 +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
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
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
Davide Casale
ed12bf473f Rewrite and extend custom JSONEncoder in bfxapi/utils/encoder.py to automatically convert floats to strs. Change every Union[Decimal, str] type to Union[Decimal, float, str]. Fix type hinting bug in labeler.py. 2023-01-25 18:18:15 +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
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
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
itsdeka
958134b0f4 Add bfxapi/utils subpackage. Add bfxapi/utils/logger.py. Implement logger with log_level in BfxWebsocketClient.py. 2022-11-22 17:40:26 +00:00