This commit is contained in:
aaron 2025-05-15 19:40:10 +08:00
parent e799afccc3
commit 124d4a609f
2 changed files with 5 additions and 5 deletions

View File

@ -38,13 +38,13 @@ async def get_crypto_kline(symbol: str, timeframe: Optional[str] = None, limit:
kline = binance_api.get_historical_klines(symbol=symbol, interval=timeframe, limit=limit, ts_transform=False)
data_processor = DataProcessor()
# data_processor = DataProcessor()
result = data_processor.add_technical_indicators(kline).to_dict(orient="records")
# result = data_processor.add_technical_indicators(kline).to_dict(orient="records")
print(f"total kline: {len(result)}")
print(f"total kline: {len(kline)}")
return result
return kline
@router.post("/analysis_v2")

View File

@ -29,7 +29,7 @@ services:
cryptoai-api:
build: .
container_name: cryptoai-api
image: cryptoai-api:0.0.27
image: cryptoai-api:0.1.0
restart: always
ports:
- "8000:8000"