bitunix-automated-crypto-trading 2.6.4__py3-none-any.whl → 2.6.7__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.
- bitunix_automated_crypto_trading/bitunix.py +5 -4
- bitunix_automated_crypto_trading/config.py +1 -1
- {bitunix_automated_crypto_trading-2.6.4.dist-info → bitunix_automated_crypto_trading-2.6.7.dist-info}/METADATA +1 -1
- {bitunix_automated_crypto_trading-2.6.4.dist-info → bitunix_automated_crypto_trading-2.6.7.dist-info}/RECORD +7 -7
- {bitunix_automated_crypto_trading-2.6.4.dist-info → bitunix_automated_crypto_trading-2.6.7.dist-info}/WHEEL +0 -0
- {bitunix_automated_crypto_trading-2.6.4.dist-info → bitunix_automated_crypto_trading-2.6.7.dist-info}/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-2.6.4.dist-info → bitunix_automated_crypto_trading-2.6.7.dist-info}/top_level.txt +0 -0
@@ -13,6 +13,7 @@ from .BitunixApi import BitunixApi
|
|
13
13
|
from .BitunixSignal import BitunixSignal
|
14
14
|
from .NotificationManager import NotificationManager
|
15
15
|
from .DataFrameHtmlRenderer import DataFrameHtmlRenderer
|
16
|
+
from .config import Settings
|
16
17
|
from .logger import Logger
|
17
18
|
logger = Logger(__name__).get_logger()
|
18
19
|
|
@@ -27,11 +28,10 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
27
28
|
from fastapi.staticfiles import StaticFiles
|
28
29
|
|
29
30
|
from dotenv import load_dotenv, dotenv_values, set_key
|
30
|
-
from config import Settings
|
31
31
|
from pydantic import ValidationError
|
32
32
|
|
33
33
|
ENV_FILE = ".env"
|
34
|
-
CONFIG_FILE = "
|
34
|
+
CONFIG_FILE = "./config.txt"
|
35
35
|
LOG_FILE = "app.log"
|
36
36
|
|
37
37
|
#load environment variables
|
@@ -82,7 +82,8 @@ class bitunix():
|
|
82
82
|
await ws.send_text(message)
|
83
83
|
|
84
84
|
app = FastAPI()
|
85
|
-
app.mount("/static", StaticFiles(directory="
|
85
|
+
app.mount("/static", StaticFiles(directory=os.path.abspath("./static")), name="static")
|
86
|
+
|
86
87
|
app.add_middleware(
|
87
88
|
CORSMiddleware,
|
88
89
|
allow_origins=["*"], # Adjust this for production
|
@@ -90,7 +91,7 @@ app.add_middleware(
|
|
90
91
|
allow_methods=["*"],
|
91
92
|
allow_headers=["*"],
|
92
93
|
)
|
93
|
-
templates = Jinja2Templates(directory="
|
94
|
+
templates = Jinja2Templates(directory="./templates")
|
94
95
|
SECRET=os.getenv('SECRET')
|
95
96
|
login_manager = LoginManager(SECRET, token_url="/auth/login", use_cookie=True)
|
96
97
|
login_manager.cookie_name = "auth_token"
|
@@ -7,8 +7,8 @@ bitunix_automated_crypto_trading/NotificationManager.py,sha256=tHwfL60h7qIVhNIDA
|
|
7
7
|
bitunix_automated_crypto_trading/ThreadManager.py,sha256=nYbllySsmC4v0HdhMuPhfCywfxlfbUo5YJ-Di2o6w4Q,2399
|
8
8
|
bitunix_automated_crypto_trading/TickerManager.py,sha256=TxKrN67Ld9BKqsLxk56IeZHBhanMcK11dtzlDqbR8ro,31890
|
9
9
|
bitunix_automated_crypto_trading/__init__.py,sha256=1hzk6nX8NnUCr1tsq8oFq1qGCNhNwnwldWE75641Eew,78
|
10
|
-
bitunix_automated_crypto_trading/bitunix.py,sha256=
|
11
|
-
bitunix_automated_crypto_trading/config.py,sha256
|
10
|
+
bitunix_automated_crypto_trading/bitunix.py,sha256=AGxORSoI6eMdC9sjOSnEVQRt_rWEv4CVuBwRm-v2EIc,25134
|
11
|
+
bitunix_automated_crypto_trading/config.py,sha256=6bcaCWCuX_-VFktknNP83ZR8I0xDBoaK5rhkXRpSYvI,3619
|
12
12
|
bitunix_automated_crypto_trading/config.txt,sha256=XzVjYlv6iRMr7C5zEAaRvpvwk-U3pgFLnhk1hYJ5-UM,1269
|
13
13
|
bitunix_automated_crypto_trading/logger.py,sha256=2NL1l8zJTryFILo3AKIFH7MCpDDfsH20bunmUVBZj7E,3014
|
14
14
|
bitunix_automated_crypto_trading/sampleenv.txt,sha256=s2k1WgPugwKWU0ksrWuCOezuSBrbWpe1ZTzDCpHwg3U,141
|
@@ -24,8 +24,8 @@ bitunix_automated_crypto_trading/templates/main.html,sha256=_OBclFmhhsjsdzqwqFA0
|
|
24
24
|
bitunix_automated_crypto_trading/templates/modal-chart.html,sha256=Y0OKMEqI2I1dciu0TVj19AsltNqOvm8hm1ScmDd3qCQ,1057
|
25
25
|
bitunix_automated_crypto_trading/templates/modal-config.html,sha256=zQwkOY6XJiYcdV8UaP19coyCUZfEINn8Nhu5FnJ7lm4,1332
|
26
26
|
bitunix_automated_crypto_trading/templates/modal-logs.html,sha256=TNM21tE2jMXpm5X3pAYT5ZX5XdWQWLlFEKofZUA1lVA,631
|
27
|
-
bitunix_automated_crypto_trading-2.6.
|
28
|
-
bitunix_automated_crypto_trading-2.6.
|
29
|
-
bitunix_automated_crypto_trading-2.6.
|
30
|
-
bitunix_automated_crypto_trading-2.6.
|
31
|
-
bitunix_automated_crypto_trading-2.6.
|
27
|
+
bitunix_automated_crypto_trading-2.6.7.dist-info/METADATA,sha256=Yesz9lpsLRwggHqJExxZ_tbuJwTEkinaWQrnQec6e04,1032
|
28
|
+
bitunix_automated_crypto_trading-2.6.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
29
|
+
bitunix_automated_crypto_trading-2.6.7.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
|
30
|
+
bitunix_automated_crypto_trading-2.6.7.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
|
31
|
+
bitunix_automated_crypto_trading-2.6.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|