pybinbot 1.3.2__tar.gz → 1.3.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-1.3.2/pybinbot.egg-info → pybinbot-1.3.3}/PKG-INFO +1 -1
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/signals.py +2 -7
- {pybinbot-1.3.2 → pybinbot-1.3.3/pybinbot.egg-info}/PKG-INFO +1 -1
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pyproject.toml +1 -1
- {pybinbot-1.3.2 → pybinbot-1.3.3}/LICENSE +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/MANIFEST.in +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/README.md +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/__init__.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/binance/base.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/binance/exceptions.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/binbot/base.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/binbot/exceptions.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/base.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/exceptions.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/futures.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/market.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/orders.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/apis/kucoin/rest.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/__init__.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/bot_base.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/deal.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/order.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/models/routes.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/py.typed +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/__init__.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/cache.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/candles.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/enums.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/handlers.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/heikin_ashi.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/indicators.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/logging_config.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/maths.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/timestamps.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/types.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/shared/utils.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/streaming/async_producer.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/streaming/binance/async_socket_client.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/streaming/binance/socket_client.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/streaming/binance/socket_manager.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot/streaming/kucoin/kucoin_async_client.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot.egg-info/SOURCES.txt +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot.egg-info/dependency_links.txt +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot.egg-info/requires.txt +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/pybinbot.egg-info/top_level.txt +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/setup.cfg +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_binbot_api.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_handlers.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_heikin_ashi.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_indicators.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_matching_engine.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_maths.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_timestamps.py +0 -0
- {pybinbot-1.3.2 → pybinbot-1.3.3}/tests/test_utils.py +0 -0
|
@@ -3,7 +3,7 @@ from pydantic import BaseModel, ConfigDict, Field, field_validator
|
|
|
3
3
|
from pybinbot.shared.enums import MarketType, Position
|
|
4
4
|
from pandera.typing import Series
|
|
5
5
|
from pandera.pandas import DataFrameModel
|
|
6
|
-
|
|
6
|
+
from pybinbot.models.bot_base import BotBase
|
|
7
7
|
|
|
8
8
|
class HABollinguerSpread(BaseModel):
|
|
9
9
|
"""
|
|
@@ -27,14 +27,9 @@ class SignalsConsumer(BaseModel):
|
|
|
27
27
|
score: float = Field(default=0, description="Score for ranking signals")
|
|
28
28
|
spread: float = Field(default=0)
|
|
29
29
|
current_price: float = Field(default=0)
|
|
30
|
-
symbol: str
|
|
31
|
-
algo: str = Field(description="Algorithm name generating the signal")
|
|
32
|
-
bot_strategy: Position = Field(default=Position.long)
|
|
33
30
|
bb_spreads: HABollinguerSpread | None = Field(default=None)
|
|
34
31
|
autotrade: bool = Field(default=True, description="If it is in testing mode, False")
|
|
35
|
-
|
|
36
|
-
default=MarketType.SPOT, description="spot or futures"
|
|
37
|
-
)
|
|
32
|
+
bot_params: BotBase | None = Field(default=None, description="Parameters for bot creation")
|
|
38
33
|
|
|
39
34
|
model_config = ConfigDict(
|
|
40
35
|
extra="allow",
|
|
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
|