Commit Graph

  • 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. Davide Casale 2023-03-06 17:14:03 +01:00
  • a4c1418113 Install and configure pylint. Add pylint to dev-requirements.txt. Start rewriting code to follow pylint's linting rules. Davide Casale 2023-03-06 16:36:56 +01:00
  • 6c99d3aacf Add dev-requirements.txt. Split requirements between requirements.txt and dev-requirements.txt. Change install_requires in setup.py. Davide Casale 2023-03-06 16:03:08 +01:00
  • b3e1e27331 Add and implement FileLogger in bfxapi.utils.logger. Davide Casale 2023-03-03 21:12:34 +01:00
  • 3645c6badd Add .vscode, *.pyc and *.log in .gitignore. Davide Casale 2023-03-03 20:17:58 +01:00
  • dc17b8f54a Remove STAGING_REST_HOST and STAGING_WSS_HOST urls from bfxapi/urls.py. Davide Casale 2023-03-03 20:14:51 +01:00
  • 5f2c2e25e9 Merge pull request #2 from Davi0kProgramsThings/feature/add-missing-endpoints Davide Casale 2023-03-03 20:06:02 +01:00
  • 7562b21ada settings Davide Casale 2023-03-03 20:03:23 +01:00
  • 0300e6261a get invoices paginated Davide Casale 2023-03-03 18:30:25 +01:00
  • b06476e0d4 nonce must be str itsdeka 2023-02-27 19:55:53 +01:00
  • 8266898212 Merge branch v3-beta in branch master. Davide Casale 2023-02-23 17:07:14 +01:00
  • 846cec1dcd Merge pull request #2 from Davi0k/fix/examples Davide Casale 2023-02-20 18:30:18 +01:00
  • 442155b48e Rename .notify_info to .data in Notification (bfxapi.notifications). Davide Casale 2023-02-20 18:29:08 +01:00
  • 6f61b983a5 Rewrite, edit and organize examples/websocket demos. Davide Casale 2023-02-20 18:22:57 +01:00
  • cec9d6ba68 Rewrite, edit and organize examples/rest demos. Davide Casale 2023-02-20 18:11:10 +01:00
  • e3eb3d6a56 Merge pull request #1 from itsdeka/patch-1 Davide Casale 2023-02-20 15:19:05 +01:00
  • 3c760eacf6 Nonce generation must be the same of the previous version Dario Moceri 2023-02-20 11:14:34 +01:00
  • 5914d7fa8c Add dist to .gitignore file. Davide Casale 2023-02-17 20:50:31 +01:00
  • 4b9364b318 Merge pull request #36 from Davi0kProgramsThings/feature/rest Davide Casale 2023-02-17 20:27:31 +01:00
  • 21117f62d0 Merge pull request #35 from Davi0kProgramsThings/fix/refactoring Davide Casale 2023-02-17 20:26:43 +01:00
  • f4c6a21ef4 Ws examples Davide Casale 2023-02-17 20:23:59 +01:00
  • 0079580180 Merge pull request #215 from itsdeka/add-id-to-parse-trade Vigan Abdurrahmani 2023-02-17 19:17:56 +01:00
  • 21688ec990 Merge branch 'master' into add-id-to-parse-trade Vigan Abdurrahmani 2023-02-17 19:17:13 +01:00
  • 32a179fc00 Add LICENSE.md file (Apache-V2). Edit setup.py with new arguments. Prepare to distribute on PyPI. Davide Casale 2023-02-17 19:08:28 +01:00
  • ab66170cf3 Apply refactoring to root package bfxapi. Davide Casale 2023-02-17 18:38:07 +01:00
  • d72fcf3981 Add better handling for info code 20051. Davide Casale 2023-02-17 17:02:09 +01:00
  • a5bdcc16ef Merge pull request #211 from itsdeka/fix-withdraw-fees Vigan Abdurrahmani 2023-02-17 15:46:00 +01:00
  • 7f3b62c6b6 use correct index itsdeka 2023-02-17 15:16:32 +01:00
  • 55f4765271 Added id field to _parse_trade itsdeka 2023-02-17 11:35:15 +01:00
  • 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. Davide Casale 2023-02-17 04:29:26 +01:00
  • fde27e933f Add handling for <20051 : Stop/Restart Websocket Server (please reconnect)>. Davide Casale 2023-02-17 04:15:38 +01:00
  • 9eb2c73407 Fix small bug in examples/websocket/ticker.py demo. Davide Casale 2023-02-17 04:04:50 +01:00
  • 4d0fa49e22 Rewrite bfxapi/utils/logger.py with new ColoredLogger. Davide Casale 2023-02-17 04:01:47 +01:00
  • e536515bbd Fix bugs and rewrite code in bfxapi.websocket.client sub-package. Davide Casale 2023-02-17 02:58:53 +01:00
  • b8a5bcb515 Fix bugs and rewrite regions of new reconnection system. Davide Casale 2023-02-16 20:08:05 +01:00
  • fa9bdfc333 Rewrite reconnection system with numerous fixes. Davide Casale 2023-02-15 21:48:34 +01:00
  • 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. Davide Casale 2023-02-14 18:49:45 +01:00
  • 49517f9709 Small fix in package import statements. Davide Casale 2023-02-14 17:03:16 +01:00
  • 17c9502733 Apply fixes and refactoring to the bfxapi.handlers sub-package. Davide Casale 2023-02-14 16:29:50 +01:00
  • 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. Davide Casale 2023-02-13 19:09:38 +01:00
  • 6a7577f98b Remove Optional typing in bfxapi.rest.types. Davide Casale 2023-02-13 17:32:46 +01:00
  • 821541134a Fix bug and refactor code in bfxapi.rest.types sub-package. Davide Casale 2023-02-13 17:29:35 +01:00
  • 39f317ba40 Rename bfxapi.utils.camel_and_snake_case_adapters to bfxapi.utils.camel_and_snake_case_helpers. Davide Casale 2023-02-13 16:22:39 +01:00
  • f0d14a230f Fix bug in bfxapi.rest.endpoints.merchant sub-package. Davide Casale 2023-02-12 23:26:44 +01:00
  • e5b0c1af9c Move merchant endpoints in bfxapi.rest.endpoints.rest_merchant_endpoints sub-package. Davide Casale 2023-02-12 22:09:44 +01:00
  • 52bc475971 add currency endpoints Davide Casale 2023-02-12 22:03:10 +01:00
  • 917a4a8367 add Payment Davide Casale 2023-02-12 22:01:12 +01:00
  • c41c00259f add endpoints Davide Casale 2023-02-12 21:45:01 +01:00
  • 3c377928b2 fix errors merchant Davide Casale 2023-02-12 21:41:33 +01:00
  • 9ada3b05a2 Fix bug in submit_invoice method (bfxapi.rest.endpoints.rest_authenticated_endpoints). Davide Casale 2023-02-12 21:24:42 +01:00
  • 7e421d3803 Fix bug in examples/rest/merchant.py demo. Davide Casale 2023-02-10 04:47:03 +01:00
  • 56476b96fc Add new serializers to __serializers__ constant in bfxapi.rest.serializers. Davide Casale 2023-02-10 04:33:29 +01:00
  • 180e92fcb4 merchant Davide Casale 2023-02-10 04:27:35 +01:00
  • 998eadf99b Merge pull request #32 from Davi0kProgramsThings/fix/refactoring Davide Casale 2023-02-10 03:07:10 +01:00
  • 7dc043bbe5 Small fix in BfxWebsocketClient class. Davide Casale 2023-02-09 04:31:52 +01:00
  • 7e7c4ef23a Fix all mypy errors and warnings. Davide Casale 2023-02-09 04:22:22 +01:00
  • 5cf3b18ff3 Fix bug in composing data object inside bfxapi/rest/endpoints/rest_authenticated_endpoints.py file. Davide Casale 2023-02-09 04:16:31 +01:00
  • 48583786f7 login history + balance available itsdeka 2023-02-08 12:39:51 +01:00
  • 15a2e41e43 user info + fixs itsdeka 2023-02-08 11:56:45 +01:00
  • 6693e376fc Fix bug in bfxapi.middleware sub-package. Davide Casale 2023-02-08 14:57:36 +01:00
  • 851521c63f Remove bfxapi/utils/flags.py file from bfxapi.utils sub-package. Davide Casale 2023-02-07 19:00:50 +01:00
  • 2d01261182 Organize rest sub-package. Create new endpoints and middleware sub-packages. Rename class Requests to Middleware. Davide Casale 2023-02-07 18:31:02 +01:00
  • 0a9384e670 Add new bfxapi/tests/test_notification unit test. Davide Casale 2023-02-07 17:45:03 +01:00
  • 168b2eae25 Implement new unit tests in bfxapi/tests/test_labeler.py. Davide Casale 2023-02-07 17:21:51 +01:00
  • 52ff5006b1 Add bfxapi/tests/test_labeler.py unit test. Davide Casale 2023-02-06 19:36:54 +01:00
  • c588d9f20c Rewrite bfxapi/rest/_Requests.py with type hinting. Add None values erasement in bfxapi/utils/JSONEncoder.py. Update code with new improvements. Davide Casale 2023-02-06 19:15:58 +01:00
  • 929ae62d2f Fix bug in bfxapi.tests sub-package. Davide Casale 2023-02-06 16:16:11 +01:00
  • 0dd6fa9dbb Reorder and rename some method inside _RestAuthenticatedEndpoints class. Davide Casale 2023-02-01 18:00:00 +01:00
  • 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. Davide Casale 2023-02-01 17:17:38 +01:00
  • 05784cc8ec Add tests subpackage. Add TestRestSerializersAndTypes and TestWebsocketSerializersAndTypes unit tests. Fix consistency bugs between serializers and types. Davide Casale 2023-02-01 17:05:25 +01:00
  • 40a48184da Fix bugs and differences in namings/types/fields between bfxapi.rest.types, bfxapi.rest.serializers and bfxapi.websocket.types, bfxapi.websocket.serializers. Davide Casale 2023-01-31 18:54:15 +01:00
  • 7b313ddcab Merge TradeExecutionUpdate and TradeExecuted serializers and types in websocket subpackage. Davide Casale 2023-01-31 17:27:14 +01:00
  • 0ddbd6e76e funding trades Davide Casale 2023-01-30 17:36:50 +01:00
  • b9850fa451 funding info Davide Casale 2023-01-30 17:31:07 +01:00
  • 01d638cf9c keep taken funding itsdeka 2023-01-30 16:16:18 +01:00
  • 0ac14dfeb5 funding auto renew itsdeka 2023-01-30 15:16:48 +01:00
  • 374739b656 return taken funding itsdeka 2023-01-30 14:51:57 +01:00
  • 0dd23b3ba5 fix example itsdeka 2023-01-30 13:12:06 +01:00
  • a924721bbe Merge pull request #24 from Davi0kProgramsThings/fix/refactoring Davide Casale 2023-01-27 17:24:43 +01:00
  • 2fc31db7a3 Add get_funding_loans and get_funding_loans_history endpoints to _RestAuthenticatedEndpoints.py. Davide Casale 2023-01-27 17:23:41 +01:00
  • 17fc29d4fa Separate in different classes the content of BfxRestInterface.py script. Davide Casale 2023-01-27 16:38:58 +01:00
  • f12981b841 Refactor some _RestPublicEndpoints's methods. Davide Casale 2023-01-27 16:10:11 +01:00
  • 6e96cda584 Edit demos in examples/ folder to use lowercase property identifiers. Davide Casale 2023-01-27 15:57:36 +01:00
  • d767e5dcfe Replace every snake case (uppercase) to snake case (lowercase) in serializers, types and notification. Davide Casale 2023-01-26 18:59:01 +01:00
  • 48433fbb01 derivatives itsdeka 2023-01-26 16:44:32 +01:00
  • ca91588067 cancel all funding offers itsdeka 2023-01-26 15:36:00 +01:00
  • 4fbe1b89c6 positions endpoint itsdeka 2023-01-26 15:25:00 +01:00
  • 3565811ec9 position history itsdeka 2023-01-25 20:46:55 +01:00
  • 374f65d660 increase position itsdeka 2023-01-25 20:14:00 +01:00
  • 05827ff5d1 Change comment line in all examples/folder demos. Davide Casale 2023-01-25 18:33:27 +01:00
  • 0278825d35 add endpoints, minor fixs, use format instead of str Davide Casale 2023-01-25 18:25:47 +01:00
  • 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. Davide Casale 2023-01-25 18:18:15 +01:00
  • 3a6a863796 Merge pull request #22 from Davi0kProgramsThings/fix/subscriptions Davide Casale 2023-01-24 19:04:20 +01:00
  • 28c00d460b Exclude subId field from every subscription dictionary. Davide Casale 2023-01-24 19:02:44 +01:00
  • 8047e3609d rename subdata to sub_data, add margin info endpoints itsdeka 2023-01-24 15:23:48 +01:00
  • 01c8192d10 fx rate itsdeka 2023-01-24 12:49:01 +01:00
  • 02a2e962d3 Add support to new calculation endpoints. itsdeka 2023-01-24 12:35:12 +01:00
  • ae42fb7d93 Add _RecursiveSerializer class in bfxapi/labeler.py file. Add support to new pulse endpoints (with serializers and types). Add examples/rest/get_pulse_data.py demo. itsdeka 2023-01-24 12:10:57 +01:00
  • 36725a183e Move _BfxWebsocketBucket class in its own file bfxapi/websocket/_BfxWebsocketBucket.py. Davide Casale 2023-01-19 18:12:12 +01:00
  • 5fe4d83902 Move subscriptions type hinting from bfxapi/websocket/types.py to bfxapi/websocket/subscriptions.py. Davide Casale 2023-01-19 18:00:51 +01:00