update
This commit is contained in:
parent
e799afccc3
commit
124d4a609f
@ -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")
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user