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