Skip to content

Commit a19b87d

Browse files
committed
(feat) get the instance of backend api correctly
1 parent 7d29288 commit a19b87d

File tree

4 files changed

+2
-30
lines changed

4 files changed

+2
-30
lines changed

frontend/pages/config/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import pandas as pd
44
import streamlit as st
55

6-
from backend.services.backend_api_client import BackendAPIClient
7-
from CONFIG import BACKEND_API_HOST, BACKEND_API_PORT
6+
from frontend.st_utils import get_backend_api_client
87

98

109
def get_max_records(days_to_download: int, interval: str) -> int:
@@ -16,7 +15,7 @@ def get_max_records(days_to_download: int, interval: str) -> int:
1615

1716
@st.cache_data
1817
def get_candles(connector_name="binance", trading_pair="BTC-USDT", interval="1m", days=7):
19-
backend_client = BackendAPIClient(BACKEND_API_HOST, BACKEND_API_PORT)
18+
backend_client = get_backend_api_client()
2019
end_time = datetime.datetime.now() - datetime.timedelta(minutes=15)
2120
start_time = end_time - datetime.timedelta(days=days)
2221

frontend/pages/orchestration/launch_bot_v2_st/README.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

frontend/pages/orchestration/launch_bot_v2_st/__init__.py

Whitespace-only changes.

frontend/pages/orchestration/launch_bot_v2_st/app.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)