8b3317e15b
CI / tests (py3.12) (push) Failing after 0s
CI / tests (py3.11) (push) Failing after 0s
CI / tests (py3.10) (push) Failing after 2s
CI / clean-install smoke (push) Failing after 1s
CI / ruff (strict, full repo) (push) Failing after 1s
CI / tests (py3.13) (push) Failing after 3s
15 lines
419 B
Python
15 lines
419 B
Python
import time
|
|
|
|
from tradingagents.dataflows.y_finance import (
|
|
get_stock_stats_indicators_window,
|
|
)
|
|
|
|
print("Testing optimized implementation with 30-day lookback:")
|
|
start_time = time.time()
|
|
result = get_stock_stats_indicators_window("AAPL", "macd", "2024-11-01", 30)
|
|
end_time = time.time()
|
|
|
|
print(f"Execution time: {end_time - start_time:.2f} seconds")
|
|
print(f"Result length: {len(result)} characters")
|
|
print(result)
|