pybinbot 2.1.2__tar.gz → 2.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. {pybinbot-2.1.2/pybinbot.egg-info → pybinbot-2.1.3}/PKG-INFO +1 -1
  2. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/enums.py +1 -0
  3. {pybinbot-2.1.2 → pybinbot-2.1.3/pybinbot.egg-info}/PKG-INFO +1 -1
  4. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/SOURCES.txt +1 -0
  5. {pybinbot-2.1.2 → pybinbot-2.1.3}/pyproject.toml +1 -1
  6. pybinbot-2.1.3/tests/test_closed_bot_status.py +12 -0
  7. {pybinbot-2.1.2 → pybinbot-2.1.3}/LICENSE +0 -0
  8. {pybinbot-2.1.2 → pybinbot-2.1.3}/MANIFEST.in +0 -0
  9. {pybinbot-2.1.2 → pybinbot-2.1.3}/README.md +0 -0
  10. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/__init__.py +0 -0
  11. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binance/base.py +0 -0
  12. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binance/exceptions.py +0 -0
  13. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binbot/base.py +0 -0
  14. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binbot/exceptions.py +0 -0
  15. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/coingecko.py +0 -0
  16. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/base.py +0 -0
  17. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/exceptions.py +0 -0
  18. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/futures.py +0 -0
  19. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/market.py +0 -0
  20. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/orders.py +0 -0
  21. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/rest.py +0 -0
  22. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/__init__.py +0 -0
  23. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/autotrade_settings.py +0 -0
  24. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/bot.py +0 -0
  25. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/bot_base.py +0 -0
  26. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/deal.py +0 -0
  27. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/derivatives.py +0 -0
  28. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/grid_ladder.py +0 -0
  29. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/order.py +0 -0
  30. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/routes.py +0 -0
  31. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/signals.py +0 -0
  32. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/symbol.py +0 -0
  33. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/py.typed +0 -0
  34. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/__init__.py +0 -0
  35. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/beta.py +0 -0
  36. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/breadth.py +0 -0
  37. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/cache.py +0 -0
  38. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/candles.py +0 -0
  39. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/handlers.py +0 -0
  40. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/heikin_ashi.py +0 -0
  41. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/indicators.py +0 -0
  42. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/logging_config.py +0 -0
  43. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/maths.py +0 -0
  44. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/price_crossings.py +0 -0
  45. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/telegram_delivery.py +0 -0
  46. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/timestamps.py +0 -0
  47. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/types.py +0 -0
  48. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/utils.py +0 -0
  49. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/async_socket_client.py +0 -0
  50. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/socket_client.py +0 -0
  51. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/socket_manager.py +0 -0
  52. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/kucoin/kucoin_async_client.py +0 -0
  53. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/dependency_links.txt +0 -0
  54. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/requires.txt +0 -0
  55. {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/top_level.txt +0 -0
  56. {pybinbot-2.1.2 → pybinbot-2.1.3}/setup.cfg +0 -0
  57. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_beta.py +0 -0
  58. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_binbot_api.py +0 -0
  59. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_bot_futures_leverage.py +0 -0
  60. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_breadth.py +0 -0
  61. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_candles.py +0 -0
  62. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_coingecko.py +0 -0
  63. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_conditional_entry.py +0 -0
  64. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_conditional_futures_orders.py +0 -0
  65. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_deal_model.py +0 -0
  66. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_derivatives_api.py +0 -0
  67. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_futures_place_order.py +0 -0
  68. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_grid_ladder.py +0 -0
  69. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_handlers.py +0 -0
  70. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_heikin_ashi.py +0 -0
  71. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_indicators.py +0 -0
  72. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_kucoin_api.py +0 -0
  73. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_logging_config.py +0 -0
  74. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_matching_engine.py +0 -0
  75. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_maths.py +0 -0
  76. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_price_crossings.py +0 -0
  77. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_symbol_model.py +0 -0
  78. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_telegram_delivery.py +0 -0
  79. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_timestamps.py +0 -0
  80. {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybinbot
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: Utility functions for the binbot project.
5
5
  Author-email: Carlos Wu <carkodw@gmail.com>
6
6
  Requires-Python: >=3.15
@@ -57,6 +57,7 @@ class Status(str, Enum):
57
57
  active = "active"
58
58
  pending = "pending"
59
59
  completed = "completed"
60
+ closed = "closed"
60
61
  error = "error"
61
62
 
62
63
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pybinbot
3
- Version: 2.1.2
3
+ Version: 2.1.3
4
4
  Summary: Utility functions for the binbot project.
5
5
  Author-email: Carlos Wu <carkodw@gmail.com>
6
6
  Requires-Python: >=3.15
@@ -56,6 +56,7 @@ tests/test_binbot_api.py
56
56
  tests/test_bot_futures_leverage.py
57
57
  tests/test_breadth.py
58
58
  tests/test_candles.py
59
+ tests/test_closed_bot_status.py
59
60
  tests/test_coingecko.py
60
61
  tests/test_conditional_entry.py
61
62
  tests/test_conditional_futures_orders.py
@@ -22,7 +22,7 @@ build-backend = "setuptools.build_meta"
22
22
 
23
23
  [project]
24
24
  name = "pybinbot"
25
- version = "2.1.2"
25
+ version = "2.1.3"
26
26
  description = "Utility functions for the binbot project."
27
27
  authors = [
28
28
  { name="Carlos Wu", email="carkodw@gmail.com" }
@@ -0,0 +1,12 @@
1
+ from pybinbot import BotBase, BotModel, BotResponse, Status
2
+
3
+
4
+ def test_closed_status_round_trips_through_bot_models_and_responses():
5
+ assert Status("closed") is Status.closed
6
+ candidate = BotBase(pair="BTCUSDT", status=Status.closed)
7
+ bot = BotModel(**candidate.model_dump())
8
+ response = BotResponse(message="Archived candidate", data=bot)
9
+ restored = BotResponse.model_validate_json(response.model_dump_json())
10
+ assert isinstance(restored.data, BotModel)
11
+ assert restored.data.status == Status.closed
12
+ assert restored.model_dump(mode="json")["data"]["status"] == "closed"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes