This commit is contained in:
aaron 2025-05-18 22:53:03 +08:00
parent 429bb78457
commit 4a7aa7140e
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ async def get_crypto_kline(symbol: str, timeframe: Optional[str] = None, limit:
result = {}
if timeframe is None:
result["15m"] = binance_api.get_historical_klines(symbol=symbol, interval="15m", limit=limit).to_dict(orient="records")
result["1h"] = binance_api.get_historical_klines(symbol=symbol, interval="1h", limit=limit).to_dict(orient="records")
result["4h"] = binance_api.get_historical_klines(symbol=symbol, interval="4h", limit=limit).to_dict(orient="records")
result["1d"] = binance_api.get_historical_klines(symbol=symbol, interval="1d", limit=limit).to_dict(orient="records")

View File

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