Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active February 11, 2026 00:27
Show Gist options
  • Select an option

  • Save quantra-go-algo/5aab0e9477c4b51ab2d95e9acfcfeaf1 to your computer and use it in GitHub Desktop.

Select an option

Save quantra-go-algo/5aab0e9477c4b51ab2d95e9acfcfeaf1 to your computer and use it in GitHub Desktop.
--- Market is OPEN. Starting trading loop for 2026-01-12 until 16:00:00 ---
--- Running Engine Iteration at 15:32:35 ---
INFO: Fetching 90 observations of 5min data for AAPL...
INFO: Searching web for 10 news links about AAPL since 2026-01-12 15:22
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
INFO: Fetching 90 observations of 5min data for MSFT...
INFO: Searching web for 10 news links about MSFT since 2026-01-12 15:22
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
INFO: Fetching 90 observations of 5min data for GOOG...
INFO: Searching web for 10 news links about GOOG since 2026-01-12 15:22
Both GOOGLE_API_KEY and GEMINI_API_KEY are set. Using GOOGLE_API_KEY.
/home/josgt/anaconda3/envs/alpaca_bot/lib/python3.12/site-packages/empyrical/stats.py:1424: RuntimeWarning: invalid value encountered in scalar divide
return np.abs(np.percentile(returns, 95)) / np.abs(np.percentile(returns, 5))
INFO: Data spans less than two months. Skipping monthly returns plot.
/home/josgt/Downloads/testing11/AI-in-Trading-Workflow/LLMs/example_02_Agentic_AI_based_Portfolio_manager_using_Alpaca_API/agentic_AI_portfolio_manager.py:240: UserWarning: tight_layout not applied: number of rows in subplot specifications must be multiples of one another.
plt.tight_layout(pad=4.0, h_pad=5.0) # Add vertical padding
INFO: Custom performance report generated at performance_report_AAPL_MSFT_GOOG_20260112.png
--- Iteration Complete ---
Email Status: Failed to send email: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8 https://support.google.com/mail/?p=BadCredentials a1e0cc1a2514c-944122ad97esm17385274241.3 - gsmtp')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment