Commit Graph

  • c471a3b52b Sync demos in examples/websocket with new bfxapi improvements. Davide Casale 2023-01-19 16:35:17 +01:00
  • 578882b4c2 Small sync with new documentation improvements. Davide Casale 2023-01-18 19:00:37 +01:00
  • 3d5dfe48ca Merge pull request #19 from Davi0kProgramsThings/fix/refactoring Davide Casale 2023-01-18 17:25:30 +01:00
  • 430f7be51d add wallet deposit/transfer itsdeka 2023-01-17 13:14:55 +01:00
  • 7ea8b5ae1c add seed candles itsdeka 2023-01-17 12:40:09 +01:00
  • 061ca22752 add seed candles itsdeka 2023-01-17 12:40:09 +01:00
  • 89c921335c Use namespace itsdeka 2023-01-17 12:13:06 +01:00
  • ace074edda Merge branch 'fix/refactoring' of https://github.com/Davi0kProgramsThings/bitfinex-api-py into add-rest-examples itsdeka 2023-01-17 12:08:09 +01:00
  • b48a882f5e Merge branch 'master' of https://github.com/Davi0kProgramsThings/bitfinex-api-py into add-rest-examples itsdeka 2023-01-17 11:54:59 +01:00
  • 6f8e37cad0 Fix all mypy errors and warnings due to new dataclass implementation. Davide Casale 2023-01-16 18:27:03 +01:00
  • 2afcc76647 Fix bug regarding new typing with dataclasses. Davide Casale 2023-01-16 18:18:12 +01:00
  • e185da4cc9 Rename bfxapi/websocket/typings.py to types.py. Replace TypedDicts with dataclasses (with _Type as base class). Update demos in examples/websocket to use new implementation. Davide Casale 2023-01-16 17:07:16 +01:00
  • 1613a56d81 Rename bfxapi/rest/typings.py to bfxapi/rest/types.py. Davide Casale 2023-01-16 16:40:14 +01:00
  • 0bb9f65a19 Replace SimpleNamespaces with dataclasses. Add base class _Typing in labeler.py to convert dictionaries to dataclasses. Remove SimpleNamespace references. Davide Casale 2023-01-16 16:30:06 +01:00
  • e9ef39c1d6 add rest examples itsdeka 2023-01-15 23:19:09 +01:00
  • 903f68c6e3 Add support for SimpleNamespace (instead of TypedDict) in bfxapi/labeler.py and bfxapi/notifications.py. Add generics Notification type in notifications.py. Add support for new changes in bfxapi/rest/BfxRestInterface.py. Davide Casale 2023-01-13 18:15:29 +01:00
  • b5b3e7718a Merge pull request #17 from Davi0kProgramsThings/master Davide Casale 2023-01-13 17:14:20 +01:00
  • c23bb25395 Merge pull request #16 from Davi0kProgramsThings/feature/rest Davide Casale 2023-01-13 17:12:26 +01:00
  • 35cc360e37 Add authenticated data example Davide Casale 2023-01-13 17:11:28 +01:00
  • c66c0f00a2 Merge pull request #15 from Davi0kProgramsThings/master Davide Casale 2023-01-13 16:09:17 +01:00
  • c039d316bf Merge pull request #13 from Davi0kProgramsThings/fix/refactoring Davide Casale 2023-01-12 18:42:43 +01:00
  • e64c25bf19 Implement bfxapi/notifications.py in websocket subpackage. Davide Casale 2023-01-12 18:36:23 +01:00
  • ff58f049a7 Separate _BfxWebsocketInputs from bfxapi/websocket/BfxWebsocketClient.py to _BfxWebsocketInputs.py. Rename websocket authenticated inputs methods. Refactoring to maintain consistency across the library. Davide Casale 2023-01-12 18:10:00 +01:00
  • ccabb0f2c2 Merge pull request #12 from Davi0kProgramsThings/feature/rest Davide Casale 2023-01-12 17:15:49 +01:00
  • a8748774dd Merge pull request #11 from itsdeka/ws-examples Davide Casale 2023-01-12 17:00:22 +01:00
  • 99726b8e25 Roll-back to previous BfxRestInterface.py code. Remove CID enforcement with generate_unique_cid. Fix small bug in Requests._POST method. Davide Casale 2023-01-11 16:43:40 +01:00
  • 1ff16e26b9 Add lines itsdeka 2023-01-11 11:51:59 +01:00
  • f9f72a4ebb Add lines itsdeka 2023-01-11 11:51:41 +01:00
  • 44ba7e780a Add wss exmaple to create order, refactoring itsdeka 2023-01-11 11:51:16 +01:00
  • 876e05e9f3 Merge pull request #10 from itsdeka/fix-rest-feature Dario Moceri 2023-01-11 10:37:54 +01:00
  • bb79a58ee5 Fix mistakes in BfxRestInterface.py itsdeka 2023-01-11 10:35:09 +01:00
  • 10862aea79 Fix bug in bfxapi/notifications.py. Davide Casale 2023-01-10 18:19:30 +01:00
  • e215cf6a45 Merge pull request #9 from Davi0kProgramsThings/temp Davide Casale 2023-01-10 16:44:29 +01:00
  • 22f6fe01fd Add example to submit, cancel, edit order and adjust issue in labeler.py itsdeka 2023-01-06 18:22:39 +01:00
  • 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. itsdeka 2023-01-06 15:18:57 +01:00
  • 72a3252e32 Add support for new rest authenticated endpoints. Davide Casale 2022-12-23 16:36:51 +01:00
  • db4438144d Add new values in Error enumeration (bxapi/enums.py) according to new documentation update. Davide Casale 2022-12-22 18:57:57 +01:00
  • 18f9fef12d Fix some mypy errors and warnings. Davide Casale 2022-12-22 18:48:23 +01:00
  • 454a7542ed Add bfxapi/enums.py file. Split enumerations in bfxapi/rest/enums.py and bfxapi/websocket/enums.py. Rename enumeration classes to use singular name identifiers. Davide Casale 2022-12-22 18:42:55 +01:00
  • 4f63f4068e Add and implement notification.py in root package (bfxapi). Davide Casale 2022-12-22 18:24:56 +01:00
  • d5ace49555 Add implementation for submit_order, update_order and cancel_order endpoint handlers in BfxRestInterface.py. Davide Casale 2022-12-22 17:07:36 +01:00
  • 79ae0b48e0 Fix bug in _Requests's _GET and _POST methods. Add submit_order to handle POST auth/w/order/submit endpoint. Add OrderType enumeration in bfxapi/rest/enums.py. Davide Casale 2022-12-21 18:27:54 +01:00
  • 6217f9040c Rename bfxapi/utils/decimal.py to encoder.py. Add support for datetime JSON serialization. Update class reference in BfxWebsocketClient.py. Davide Casale 2022-12-20 18:40:41 +01:00
  • 87bb6dc5c7 Add generic error handling (UnknownGenericError in bfxapi/rest/exceptions.py). Add support for new endpoints in _RestAuthenticatedEndpoints class. Extend serializers.py and typings.py. Davide Casale 2022-12-20 17:48:12 +01:00
  • 7d16c4e4b8 Merge pull request #6 from Davi0kProgramsThings/fix/refactoring Davide Casale 2022-12-16 18:45:11 +01:00
  • ea3eefd32c Apply refactoring with new standards in examples/websockets/*.py demos. Davide Casale 2022-12-16 18:42:59 +01:00
  • 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. Davide Casale 2022-12-16 18:30:41 +01:00
  • 0e4cbd40a6 Fix other mypy errors and warnings. Davide Casale 2022-12-16 16:03:28 +01:00
  • 2595b8a760 Fix mypy errors and warnings in bfxapi/labeler.py script. Davide Casale 2022-12-15 19:21:19 +01:00
  • 24b105378a Add hierarchy logic to custom exceptions. Davide Casale 2022-12-15 19:14:00 +01:00
  • c9f86d6d03 Add labeler.py to root package (bfxapi). Remove List aliases in bfxapi/rest/typings.py. Update BfxRestInterface.py to use new standards. Davide Casale 2022-12-15 19:07:55 +01:00
  • 851184bf75 Add authentication logic to _Requests class in BfxRestInterface.py. Add _RestAuthenticatedEndpoints class. Add InvalidAuthenticationCredentials in bfxapi/rest/exceptions.py. Davide Casale 2022-12-14 18:56:03 +01:00
  • 07241b1ba8 Add _Requests and _RestPublicEndpoints classes in bfxapi/rest/BfxRestInterface.py. Davide Casale 2022-12-14 18:17:29 +01:00
  • ec821a0752 Split BfxRestInterface methods in t_ and f_ handlers. Davide Casale 2022-12-14 18:05:45 +01:00
  • 862ba6d481 Add support for GET conf/pub:{Action}:{Object}:{Detail} endpoint. Add bfxapi/rest/enums.py script. Add Configs enumeration in enums.py. Davide Casale 2022-12-12 17:14:58 +01:00
  • 32d698285e Add new endpoints in BfxRestInterfaces.py (with serializers and typings). Davide Casale 2022-12-12 17:06:33 +01:00
  • 376ac37273 Fix small bug in BfxRestInterface.py file. Davide Casale 2022-12-12 15:23:43 +01:00
  • 6a368d139d Add support for GET liquidations/hist endpoint. Davide Casale 2022-12-09 16:23:51 +01:00
  • cd5ef42118 Add support for new various endpoints. Add ResourceNotFound error in bfxapi/rest/exceptions.py. Fix bug in BfxRestInterface.__GET method. Davide Casale 2022-12-09 16:16:15 +01:00
  • e0785f9f4a Add support for GET book/{Symbol}/{Precision} endpoint. Davide Casale 2022-12-08 17:35:39 +01:00
  • 1df0a565c8 Merge pull request #5 from Davi0kProgramsThings/feature/examples Davide Casale 2022-12-05 18:27:16 +01:00
  • 8c9d52c186 Rename class members in order_book.py and raw_order_book.py. Davide Casale 2022-12-02 18:57:21 +01:00
  • 52d007c05d Add examples/websocket/order_book.py and raw_order_book.py demos. Davide Casale 2022-12-01 18:24:02 +01:00
  • 6e470dc925 Fix type hinting bug in rest section. Davide Casale 2022-12-01 17:53:57 +01:00
  • ea6044a5eb Add support for new rest public endpoints (in BfxRestInterface.py, serializers.py and typings.py). Davide Casale 2022-12-01 17:48:50 +01:00
  • 8e8719e3d7 Add bfxapi.rest subpackage to setup.py. Davide Casale 2022-11-30 18:25:50 +01:00
  • 4cfeab8a79 Add barebone files for rest section. Davide Casale 2022-11-30 18:25:15 +01:00
  • 48f1745f10 Add MAXIMUM_BUCKETS_AMOUNT constant to BfxWebsocketClient class. Davide Casale 2022-11-30 17:55:10 +01:00
  • 509223ae9b Add order_multiple_operations input in _BfxWebsocketInputs. Davide Casale 2022-11-30 17:34:13 +01:00
  • e71d4b6e26 Add new websocket authenticated inputs in _BfxWebsocketInputs class. Add new type hinting inside bfxapi/websocket/typings.py. Davide Casale 2022-11-30 17:24:51 +01:00
  • d9ecbaa9f0 Change exception formatting inside error .add_listener in BfxWebsocketClient. Davide Casale 2022-11-29 18:05:20 +01:00
  • bfd05cf7c7 Add traceback import and implementation. Davide Casale 2022-11-29 17:53:39 +01:00
  • e262c81f97 Change default log_level value (from 'INFO' to 'ERROR'). Implement error event into AsyncIOEventEmitter. Add error logging. Davide Casale 2022-11-29 17:17:17 +01:00
  • b308bbacbd Add Flags enumeration to enums.py. Rename new_order and new_position to order_new and position_new to mantain consistency. Add _BfxWebsocketInputs class with order_new, order_update and order_cancel inputs. Davide Casale 2022-11-29 15:26:02 +01:00
  • fa073823ce Add .run method in BfxWebsocketClient class. Davide Casale 2022-11-28 17:08:27 +01:00
  • 4bb62a942f Allow users to use .on and .once as non-decorators methods. Davide Casale 2022-11-28 16:58:09 +01:00
  • 9e8bea905a Rename .chanIds field in _BfxWebsocketBucket to .subscriptions. Davide Casale 2022-11-28 16:50:07 +01:00
  • a5083c36cf Add type hinting using typings.py in bfxapi/websocket/serializers.py. Davide Casale 2022-11-24 17:48:41 +01:00
  • 3a09ba2e90 Add filter parameter to BfxWebsocketClient's __init__.py. Rewrite .notify coroutine adding new feature. Add Notifications channel handlers in handlers.py. Add Notification serializer in serializers.py. Davide Casale 2022-11-24 17:31:47 +01:00
  • 6f1befbcf0 Rewrite and apply some refactoring to AuthenticatedChannelsHandler in handlers.py. Davide Casale 2022-11-24 16:24:31 +01:00
  • c8d8586841 Add bfxapi/websocket/enums.py file. Rewrite bfxapi.websocket's __init__.py. Rename HEARTBEAT constant to _HEARTBEAT to make it internal. Davide Casale 2022-11-23 16:56:13 +01:00
  • 4933ae6d9a Add new_order (coroutine) websocket authenticated input. Fix bug in BfxWebsocketClient.__require_websocket_authentication decorator. Davide Casale 2022-11-23 16:45:33 +01:00
  • 45a9565cf4 Fix bug regarding closing websocket connection with .close coroutine method. Davide Casale 2022-11-23 16:28:05 +01:00
  • 16bbe19634 Add bfx.api subpackage to setup.py. Davide Casale 2022-11-22 19:10:43 +01:00
  • 729a3ce8a3 Add examples/websocket/ticker.py demo. Davide Casale 2022-11-22 19:01:57 +01:00
  • acbed0bc57 Fix small bug from merge conflicts resolving. Davide Casale 2022-11-22 18:58:36 +01:00
  • 256841099b Merge pull request #2 from Davi0kProgramsThings/add-logging-system Davide Casale 2022-11-22 18:50:04 +01:00
  • 29abf2d7ea Merge branch 'master' into add-logging-system Davide Casale 2022-11-22 18:49:55 +01:00
  • 958134b0f4 Add bfxapi/utils subpackage. Add bfxapi/utils/logger.py. Implement logger with log_level in BfxWebsocketClient.py. itsdeka 2022-11-21 13:04:59 +01:00
  • a9902648b7 Merge pull request #4 from Davi0kProgramsThings/feature/asyncio Davide Casale 2022-11-22 18:17:09 +01:00
  • f24ed52075 Add setup.py file in project root. Davide Casale 2022-11-22 18:13:06 +01:00
  • a8dec5c6bc Rename bfxapi/websocket/errors.py to exceptions.py. Add Errors enumeration inside BfxWebsocketClient.py and bfxapi/websocket/__init__.py. Davide Casale 2022-11-22 18:11:05 +01:00
  • 999766a307 Add .close coroutine to BfxWebsocketClient and _BfxWebsocketBucket classes. Davide Casale 2022-11-22 18:02:19 +01:00
  • 721e82b86d Add pendings in _BfxWebsocketBucket. Add new logic for selecting the bucket with less connections. Add ._unsubscribe coroutine. Davide Casale 2022-11-22 17:21:21 +01:00
  • 2f561a4fba Fix small bug in bfxapi/websocket/errors.py (__all__). Davide Casale 2022-11-21 18:41:40 +01:00
  • 92f6e691f5 Add BfxWebsocketBucket class in bfxapi/websocket/BfxWebsocketClient.py. Implement running multiple websocket client concurrently using asyncio to allow more than 25 connections to public channels. Rewrite BfxWebsocketClient to handle only websocket authenticated channels. Davide Casale 2022-11-21 18:41:05 +01:00
  • 8e56e9971e Rename error event to wss-error. Davide Casale 2022-11-21 16:28:55 +01:00
  • ba992d34b3 Change tp_ and fc_ prefixes to t_ and f_. Davide Casale 2022-11-21 16:24:10 +01:00
  • 7314578dd7 Separate _require_websocket_connection decorator from BfxWebsocketClient class. Add _require_websocket_authentication decorator. Implement .notify method in bfxapi/websocket/BfxWebsocketClient.py. Davide Casale 2022-11-17 18:54:43 +01:00
  • 971e4759fa Add and implement serializers for websocket authenticated channels in bfxapi/websocket/handlers.py. Davide Casale 2022-11-17 17:44:18 +01:00