bitunix-automated-crypto-trading 2.6.3__py3-none-any.whl → 2.6.6__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 +6 -6
- bitunix_automated_crypto_trading/config.py +1 -1
- {bitunix_automated_crypto_trading-2.6.3.dist-info → bitunix_automated_crypto_trading-2.6.6.dist-info}/METADATA +1 -1
- {bitunix_automated_crypto_trading-2.6.3.dist-info → bitunix_automated_crypto_trading-2.6.6.dist-info}/RECORD +7 -7
- {bitunix_automated_crypto_trading-2.6.3.dist-info → bitunix_automated_crypto_trading-2.6.6.dist-info}/WHEEL +0 -0
- {bitunix_automated_crypto_trading-2.6.3.dist-info → bitunix_automated_crypto_trading-2.6.6.dist-info}/entry_points.txt +0 -0
- {bitunix_automated_crypto_trading-2.6.3.dist-info → bitunix_automated_crypto_trading-2.6.6.dist-info}/top_level.txt +0 -0
@@ -7,11 +7,13 @@ import json
|
|
7
7
|
import time
|
8
8
|
from datetime import datetime
|
9
9
|
import pytz
|
10
|
+
|
10
11
|
from .ThreadManager import ThreadManager
|
11
12
|
from .BitunixApi import BitunixApi
|
12
13
|
from .BitunixSignal import BitunixSignal
|
13
14
|
from .NotificationManager import NotificationManager
|
14
|
-
|
15
|
+
from .DataFrameHtmlRenderer import DataFrameHtmlRenderer
|
16
|
+
from .config import Settings
|
15
17
|
from .logger import Logger
|
16
18
|
logger = Logger(__name__).get_logger()
|
17
19
|
|
@@ -22,16 +24,14 @@ from fastapi.templating import Jinja2Templates
|
|
22
24
|
from fastapi.security import OAuth2PasswordRequestForm
|
23
25
|
from fastapi_login import LoginManager
|
24
26
|
from fastapi_login.exceptions import InvalidCredentialsException
|
25
|
-
from DataFrameHtmlRenderer import DataFrameHtmlRenderer
|
26
27
|
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,7 @@ 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="./static"), name="static")
|
86
86
|
app.add_middleware(
|
87
87
|
CORSMiddleware,
|
88
88
|
allow_origins=["*"], # Adjust this for production
|
@@ -90,7 +90,7 @@ app.add_middleware(
|
|
90
90
|
allow_methods=["*"],
|
91
91
|
allow_headers=["*"],
|
92
92
|
)
|
93
|
-
templates = Jinja2Templates(directory="
|
93
|
+
templates = Jinja2Templates(directory="./templates")
|
94
94
|
SECRET=os.getenv('SECRET')
|
95
95
|
login_manager = LoginManager(SECRET, token_url="/auth/login", use_cookie=True)
|
96
96
|
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=iq-c9Pravz6o-5htMy1y6Qy27ee9nXZML7zJM5p_SeU,25115
|
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.6.dist-info/METADATA,sha256=q7kgNhOy0I6gIPLfzp8X820Gn2a6OYqU9TDGbcbcAzY,1032
|
28
|
+
bitunix_automated_crypto_trading-2.6.6.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
29
|
+
bitunix_automated_crypto_trading-2.6.6.dist-info/entry_points.txt,sha256=UXREYHuSl2XYd_tOtLIq0zg3d1kX3lixX5SpN8yGBw4,82
|
30
|
+
bitunix_automated_crypto_trading-2.6.6.dist-info/top_level.txt,sha256=uyFzHUCOsp8elnG2Ovor6xXcf7dxRxY-C-Txiwix64Q,33
|
31
|
+
bitunix_automated_crypto_trading-2.6.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|