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.
- {pybinbot-2.1.2/pybinbot.egg-info → pybinbot-2.1.3}/PKG-INFO +1 -1
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/enums.py +1 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3/pybinbot.egg-info}/PKG-INFO +1 -1
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/SOURCES.txt +1 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pyproject.toml +1 -1
- pybinbot-2.1.3/tests/test_closed_bot_status.py +12 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/LICENSE +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/MANIFEST.in +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/README.md +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/__init__.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binance/base.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binance/exceptions.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binbot/base.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/binbot/exceptions.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/coingecko.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/base.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/exceptions.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/futures.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/market.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/orders.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/apis/kucoin/rest.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/__init__.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/autotrade_settings.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/bot.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/bot_base.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/deal.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/derivatives.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/grid_ladder.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/order.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/routes.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/signals.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/models/symbol.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/py.typed +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/__init__.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/beta.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/breadth.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/cache.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/candles.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/handlers.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/heikin_ashi.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/indicators.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/logging_config.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/maths.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/price_crossings.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/telegram_delivery.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/timestamps.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/types.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/shared/utils.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/async_socket_client.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/socket_client.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/binance/socket_manager.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot/streaming/kucoin/kucoin_async_client.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/dependency_links.txt +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/requires.txt +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/pybinbot.egg-info/top_level.txt +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/setup.cfg +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_beta.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_binbot_api.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_bot_futures_leverage.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_breadth.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_candles.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_coingecko.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_conditional_entry.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_conditional_futures_orders.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_deal_model.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_derivatives_api.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_futures_place_order.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_grid_ladder.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_handlers.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_heikin_ashi.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_indicators.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_kucoin_api.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_logging_config.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_matching_engine.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_maths.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_price_crossings.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_symbol_model.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_telegram_delivery.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_timestamps.py +0 -0
- {pybinbot-2.1.2 → pybinbot-2.1.3}/tests/test_utils.py +0 -0
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|