pybinbot 0.1.6__py3-none-any.whl → 0.4.0__py3-none-any.whl
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/__init__.py +160 -0
- pybinbot/models/__init__.py +0 -0
- {models → pybinbot/models}/bot_base.py +5 -5
- {models → pybinbot/models}/deal.py +24 -16
- {models → pybinbot/models}/order.py +41 -33
- pybinbot/models/routes.py +6 -0
- {models → pybinbot/models}/signals.py +5 -10
- pybinbot/py.typed +0 -0
- pybinbot/shared/__init__.py +0 -0
- pybinbot/shared/cache.py +32 -0
- {shared → pybinbot/shared}/enums.py +33 -22
- pybinbot/shared/handlers.py +89 -0
- pybinbot/shared/heikin_ashi.py +198 -0
- pybinbot/shared/indicators.py +271 -0
- {shared → pybinbot/shared}/logging_config.py +1 -3
- {shared → pybinbot/shared}/timestamps.py +5 -4
- {shared → pybinbot/shared}/types.py +4 -1
- {pybinbot-0.1.6.dist-info → pybinbot-0.4.0.dist-info}/METADATA +22 -2
- pybinbot-0.4.0.dist-info/RECORD +23 -0
- pybinbot-0.4.0.dist-info/top_level.txt +1 -0
- pybinbot-0.1.6.dist-info/RECORD +0 -15
- pybinbot-0.1.6.dist-info/top_level.txt +0 -3
- pybinbot.py +0 -93
- {shared → pybinbot/shared}/maths.py +0 -0
- {pybinbot-0.1.6.dist-info → pybinbot-0.4.0.dist-info}/WHEEL +0 -0
- {pybinbot-0.1.6.dist-info → pybinbot-0.4.0.dist-info}/licenses/LICENSE +0 -0
pybinbot.py
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
from shared.maths import (
|
|
2
|
-
supress_trailling,
|
|
3
|
-
round_numbers,
|
|
4
|
-
round_numbers_ceiling,
|
|
5
|
-
round_numbers_floor,
|
|
6
|
-
supress_notation,
|
|
7
|
-
interval_to_millisecs,
|
|
8
|
-
format_ts,
|
|
9
|
-
zero_remainder,
|
|
10
|
-
)
|
|
11
|
-
from shared.timestamps import (
|
|
12
|
-
timestamp,
|
|
13
|
-
round_timestamp,
|
|
14
|
-
ts_to_day,
|
|
15
|
-
ms_to_sec,
|
|
16
|
-
sec_to_ms,
|
|
17
|
-
ts_to_humandate,
|
|
18
|
-
timestamp_to_datetime,
|
|
19
|
-
)
|
|
20
|
-
from shared.enums import (
|
|
21
|
-
CloseConditions,
|
|
22
|
-
KafkaTopics,
|
|
23
|
-
DealType,
|
|
24
|
-
BinanceOrderModel,
|
|
25
|
-
Status,
|
|
26
|
-
Strategy,
|
|
27
|
-
OrderType,
|
|
28
|
-
TimeInForce,
|
|
29
|
-
OrderSide,
|
|
30
|
-
OrderStatus,
|
|
31
|
-
TrendEnum,
|
|
32
|
-
BinanceKlineIntervals,
|
|
33
|
-
KucoinKlineIntervals,
|
|
34
|
-
AutotradeSettingsDocument,
|
|
35
|
-
UserRoles,
|
|
36
|
-
QuoteAssets,
|
|
37
|
-
ExchangeId,
|
|
38
|
-
MarketDominance,
|
|
39
|
-
)
|
|
40
|
-
from shared.types import Amount
|
|
41
|
-
from shared.logging_config import configure_logging
|
|
42
|
-
from models.bot_base import BotBase
|
|
43
|
-
from models.order import OrderBase
|
|
44
|
-
from models.deal import DealBase
|
|
45
|
-
from models.signals import HABollinguerSpread, SignalsConsumer
|
|
46
|
-
|
|
47
|
-
__all__ = [
|
|
48
|
-
# models
|
|
49
|
-
"BotBase",
|
|
50
|
-
"OrderBase",
|
|
51
|
-
"DealBase",
|
|
52
|
-
# misc
|
|
53
|
-
"Amount",
|
|
54
|
-
"configure_logging",
|
|
55
|
-
# maths helpers
|
|
56
|
-
"supress_trailling",
|
|
57
|
-
"round_numbers",
|
|
58
|
-
"round_numbers_ceiling",
|
|
59
|
-
"round_numbers_floor",
|
|
60
|
-
"supress_notation",
|
|
61
|
-
"interval_to_millisecs",
|
|
62
|
-
"format_ts",
|
|
63
|
-
"zero_remainder",
|
|
64
|
-
# timestamp helpers
|
|
65
|
-
"timestamp",
|
|
66
|
-
"round_timestamp",
|
|
67
|
-
"ts_to_day",
|
|
68
|
-
"ms_to_sec",
|
|
69
|
-
"sec_to_ms",
|
|
70
|
-
"ts_to_humandate",
|
|
71
|
-
"timestamp_to_datetime",
|
|
72
|
-
# enums
|
|
73
|
-
"CloseConditions",
|
|
74
|
-
"KafkaTopics",
|
|
75
|
-
"DealType",
|
|
76
|
-
"BinanceOrderModel",
|
|
77
|
-
"Status",
|
|
78
|
-
"Strategy",
|
|
79
|
-
"OrderType",
|
|
80
|
-
"TimeInForce",
|
|
81
|
-
"OrderSide",
|
|
82
|
-
"OrderStatus",
|
|
83
|
-
"TrendEnum",
|
|
84
|
-
"BinanceKlineIntervals",
|
|
85
|
-
"KucoinKlineIntervals",
|
|
86
|
-
"AutotradeSettingsDocument",
|
|
87
|
-
"UserRoles",
|
|
88
|
-
"QuoteAssets",
|
|
89
|
-
"ExchangeId",
|
|
90
|
-
"HABollinguerSpread",
|
|
91
|
-
"SignalsConsumer",
|
|
92
|
-
"MarketDominance",
|
|
93
|
-
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|