Skip to content

Commit 5b17beb

Browse files
committed
Refactor imports in coingecko_api.py and drift_data_api.py
- Updated import statements to reference the new module path for market recommender constants, changing from `backend.api.market_recommender` to `backend.api.market_recommender_api`. - This change ensures consistency in module usage following recent refactoring of the market recommender components.
1 parent c11d663 commit 5b17beb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

backend/utils/coingecko_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def fetch_all_coingecko_market_data(number_of_tokens: int = 250) -> dict:
238238
Returns:
239239
Dict mapping coin IDs to their market data
240240
"""
241-
from backend.api.market_recommender import IGNORED_SYMBOLS
241+
from backend.api.market_recommender_api import IGNORED_SYMBOLS
242242

243243
all_markets_data = {}
244244
total_tokens_received = 0

backend/utils/drift_data_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def fetch_drift_data_api_data(discovered_markets: Dict = None) -> Dict:
281281

282282
def clean_market_name(market_name: str) -> str:
283283
"""Clean market name by removing basket prefixes and -PERP suffix."""
284-
from backend.api.market_recommender import BASKET_MARKET_PREFIXES
284+
from backend.api.market_recommender_api import BASKET_MARKET_PREFIXES
285285

286286
# First remove any -PERP suffix
287287
name = market_name.split('-')[0].strip()

0 commit comments

Comments
 (0)