Riorganizzazione degli import per utilizzare il percorso corretto in tutti i moduli

This commit is contained in:
2025-10-03 10:24:28 +02:00
parent ba44f6e902
commit 5e13287e06
8 changed files with 16 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
import os import os
import json import json
from typing import List, Dict from typing import List, Dict
from pipeline import Pipeline from app.pipeline import Pipeline
SAVE_DIR = os.path.join(os.path.dirname(__file__), "..", "saves") SAVE_DIR = os.path.join(os.path.dirname(__file__), "..", "saves")
os.makedirs(SAVE_DIR, exist_ok=True) os.makedirs(SAVE_DIR, exist_ok=True)

View File

@@ -28,6 +28,7 @@ class MarketAPIs(BaseWrapper):
:return: Lista di istanze delle API di mercato disponibili :return: Lista di istanze delle API di mercato disponibili
""" """
wrapper_builders = [ wrapper_builders = [
BinanceWrapper,
CoinBaseWrapper, CoinBaseWrapper,
CryptoCompareWrapper, CryptoCompareWrapper,
] ]

View File

@@ -2,8 +2,8 @@ import os
from typing import Optional from typing import Optional
from datetime import datetime, timedelta from datetime import datetime, timedelta
from binance.client import Client from binance.client import Client
from base import ProductInfo, BaseWrapper, Price from app.markets.base import ProductInfo, BaseWrapper, Price
from error_handler import retry_on_failure, handle_api_errors, MarketAPIError from app.markets.error_handler import retry_on_failure, handle_api_errors, MarketAPIError
class BinanceWrapper(BaseWrapper): class BinanceWrapper(BaseWrapper):

View File

@@ -8,8 +8,8 @@ con l'architettura del modulo markets.
from typing import Optional, Dict, Any from typing import Optional, Dict, Any
from datetime import datetime, timedelta from datetime import datetime, timedelta
from binance.client import Client from binance.client import Client
from base import BaseWrapper, ProductInfo, Price from app.markets.base import BaseWrapper, ProductInfo, Price
from error_handler import retry_on_failure, handle_api_errors, MarketAPIError from app.markets.error_handler import retry_on_failure, handle_api_errors, MarketAPIError
class PublicBinanceAgent(BaseWrapper): class PublicBinanceAgent(BaseWrapper):

View File

@@ -2,8 +2,8 @@ import os
from typing import Optional from typing import Optional
from datetime import datetime, timedelta from datetime import datetime, timedelta
from coinbase.rest import RESTClient from coinbase.rest import RESTClient
from base import ProductInfo, BaseWrapper, Price from app.markets.base import ProductInfo, BaseWrapper, Price
from error_handler import retry_on_failure, handle_api_errors, MarketAPIError, RateLimitError from app.markets.error_handler import retry_on_failure, handle_api_errors, MarketAPIError, RateLimitError
class CoinBaseWrapper(BaseWrapper): class CoinBaseWrapper(BaseWrapper):
""" """

View File

@@ -1,8 +1,8 @@
import os import os
import requests import requests
from typing import Optional, Dict, Any from typing import Optional, Dict, Any
from base import ProductInfo, BaseWrapper, Price from app.markets.base import ProductInfo, BaseWrapper, Price
from error_handler import retry_on_failure, handle_api_errors, MarketAPIError from app.markets.error_handler import retry_on_failure, handle_api_errors, MarketAPIError
BASE_URL = "https://min-api.cryptocompare.com" BASE_URL = "https://min-api.cryptocompare.com"

View File

@@ -1,11 +1,11 @@
from agno.run.agent import RunOutput from agno.run.agent import RunOutput
from agno.team import Team from agno.team import Team
from agents.market_agent import MarketAgent from app.agents.market_agent import MarketAgent
from agents.news_agent import NewsAgent from app.agents.news_agent import NewsAgent
from agents.social_agent import SocialAgent from app.agents.social_agent import SocialAgent
from models import AppModels from app.models import AppModels
from predictor import PredictorInput, PredictorOutput, PredictorStyle, PREDICTOR_INSTRUCTIONS from app.predictor import PredictorInput, PredictorOutput, PredictorStyle, PREDICTOR_INSTRUCTIONS
class Pipeline: class Pipeline:

View File

@@ -2,7 +2,7 @@ from enum import Enum
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from markets.base import ProductInfo from app.markets.base import ProductInfo
class PredictorStyle(Enum): class PredictorStyle(Enum):